-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
46 lines (42 loc) · 1.4 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
let li=[];
function Prayut(){
alert("You choose M44 of Prayut Chan-o-cha")
li[0]="M44 of Prayut Chan-o-cha";
}
function Prawit(){
alert("You choose Ring and Watch of Prawit Wongsuwan")
li[0]="Ring and Watch of Prawit Wongsuwan";
}
function Thaksin(){
alert("You choose Thaicom of Thaksin Shinawatra")
li[0]="Thaicom of Thaksin Shinawatra";
}
function Gg() {
if (document.getElementById('g1').checked) {
li[2] = document.getElementById('g1').value;
} else if (document.getElementById('g2').checked) {
li[2] = document.getElementById('g2').value;
} else if (document.getElementById('g3').checked) {
li[2] = document.getElementById('g3').value;
}
li[3] = document.getElementById('namecard').value;
li[4] = document.getElementById('numbercard').value;
if (li[0] === undefined) {
alert("Please check Item choice")
wait(2000);
} else if (li[2] === undefined) {
alert("Please check your Cryptocurrency type");
wait(2000);
} else if (li[3] === "") {
alert("Please check Name of account");
wait(2000);
} else if (li[4] === ""){
alert("Please check Pubile key number");
wait(2000);
}
if (confirm("Are you want to buy?")===true) {
document.getElementById("j").innerHTML ="Buy "+li[0]+"<br>"+" by "
+li[2]+" Name of account is : "+li[3]
+" ,Pubile key number is: "+li[4];
}
}