Skip to content

Commit e3548cc

Browse files
committed
update index.html, including er.js
1 parent 4160598 commit e3548cc

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

index.html

+27-25
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
var _qevents = _qevents || [];
2323

2424
_qevents.push({
25-
cid : document.getElementById("dcid").value,
26-
uid : document.getElementById("duid").value,
27-
act : document.getElementById("dact").value,
28-
pid : document.getElementById("dpid").value,
29-
cat : document.getElementById("dcat").value,
25+
cid : "saas_testing_ec",
26+
uid : "testbot",
27+
act : "VIEW",
28+
pid : "testproduct",
29+
cat : "testcat",
3030
ptuple : [
3131
{
32-
paypid : document.getElementById("dpaypid").value,
33-
qty : document.getElementById("dqty").value,
34-
unit_price : document.getElementById("dunit_price").value,
35-
pcat : document.getElementById("dpcat").value,
36-
pmk : document.getElementById("dpmk").value,
32+
paypid : "testpay",
33+
qty : "1",
34+
unit_price : "12345",
35+
pcat : "testpcat",
36+
pmk : "testpromo",
3737
}],
38-
ercamp : document.getElementById("dercamp").value,
39-
erad : document.getElementById("derad").value,
38+
ercamp : "testcamp",
39+
erad : "testad",
4040
});
4141

4242
var erUrlPrefix=('https:' == document.location.protocol ?'https://':'http://')+erHostname+'/';
@@ -77,6 +77,7 @@
7777
/** Send action **/
7878
ER.track.send(_qevents, [], '', _qqueryList);
7979
}
80+
8081
(function() {
8182
var er = document.createElement('script');
8283
er.type = 'text/javascript';
@@ -85,8 +86,10 @@
8586
var currentJs=document.getElementById('etu-recommender');
8687
currentJs.parentNode.insertBefore(er,currentJs);
8788
})();
88-
//function getCustomizeActionData(){
89-
//}
89+
90+
function getCustomizeActionData(){
91+
92+
}
9093

9194
</script>
9295
</head>
@@ -106,23 +109,23 @@ <h1>er.js testing EC site</h1>
106109
<label> fill </label>
107110
<input class = "default-action" type = "text" id = "dact" placeholder = "act" value = "VIEW"/><br>
108111
<label> fill </label>
109-
<input class = "default-action" type = "text" id = "dcat" placeholder = "cat" value = "testing"/><br>
112+
<input class = "default-action" type = "text" id = "dcat" placeholder = "cat" value = "testcat"/><br>
110113
<label> fill </label>
111-
<input class = "default-action" type = "text" id = "dpid" placeholder = "pid" value = "test"/><br>
114+
<input class = "default-action" type = "text" id = "dpid" placeholder = "pid" value = "testproduct"/><br>
112115
<label> fill </label>
113-
<input class = "default-action" type = "text" id = "dpcat" placeholder = "pcat" value = ""/><br>
116+
<input class = "default-action" type = "text" id = "dpcat" placeholder = "pcat" value = "testpcat"/><br>
114117
<label> fill </label>
115-
<input class = "default-action" type = "text" id = "dpaypid" placeholder = "paypid" value = ""/><br>
118+
<input class = "default-action" type = "text" id = "dpaypid" placeholder = "paypid" value = "testpay"/><br>
116119
<label> fill </label>
117-
<input class = "default-action" type = "text" id = "dunit_price" placeholder = "unit_price" value = ""/><br>
120+
<input class = "default-action" type = "text" id = "dunit_price" placeholder = "unit_price" value = "12345"/><br>
118121
<label> fill </label>
119-
<input class = "default-action" type = "text" id = "dpmk" placeholder = "pmk" value = ""/><br>
122+
<input class = "default-action" type = "text" id = "dpmk" placeholder = "pmk" value = "testpromo"/><br>
120123
<label> fill </label>
121-
<input class = "default-action" type = "text" id = "dqty" placeholder = "qty" value = ""/><br>
124+
<input class = "default-action" type = "text" id = "dqty" placeholder = "qty" value = "1"/><br>
122125
<label> fill </label>
123-
<input class = "default-action" type = "text" id = "dercamp" placeholder = "ercamp" value = ""/><br>
126+
<input class = "default-action" type = "text" id = "dercamp" placeholder = "ercamp" value = "testcamp"/><br>
124127
<label> fill </label>
125-
<input class = "default-action" type = "text" id = "derad" placeholder = "erad" value = ""/><br>
128+
<input class = "default-action" type = "text" id = "derad" placeholder = "erad" value = "testad"/><br>
126129

127130
<p></p>
128131
</div>
@@ -154,8 +157,7 @@ <h1>er.js testing EC site</h1>
154157
<input class = "custom-action" type = "text" id = "aercamp" placeholder = "ercamp" value = ""/><br>
155158
<label> fill </label>
156159
<input class = "custom-action" type = "text" id = "aerad" placeholder = "erad" value = ""/><br>
157-
158-
<button type="submit" class = "custom-action" id="custom-click" formaction="register.html"> 送出資料 </button>
160+
<button class = "test" type = "button" id="custom-click" onclick = "ERsend()"> 送出資料 </button>
159161
</div>
160162
</body>
161163
</html>

0 commit comments

Comments
 (0)