-
Notifications
You must be signed in to change notification settings - Fork 0
/
captchacheck.wmls
70 lines (56 loc) · 2.02 KB
/
captchacheck.wmls
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
extern function find(){
var score4=0;
var maxscore4=WMLBrowser.getVar("maxscore4");
var maxperson4=WMLBrowser.getVar("maxperson4");
if(String.compare(WMLBrowser.getVar("ans1"),"inoplart" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans2"),"uracksico" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans3"),"shimentsha" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans4"),"ganableg" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans5"),"denpicalca" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans6"),"gimingly" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans7"),"elowdwirr" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans8"),"skyglecha" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans9"),"survolls" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans10"),"nogratechl" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans11"),"vouzederge" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans12"),"phitringe" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans13"),"redinsalo" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans14"),"subvitioni" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans15"),"suburodult" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans16"),"oxyeduch" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans17"),"resesings" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans18"),"arwhilap" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans19"),"draalkyqag" )==0)
score4++;
if(String.compare(WMLBrowser.getVar("ans20"),"curniseup" )==0)
score4++;
score4=-score4;
if(score4>-1)
Dialogs.alert("Your Score : "+score4);
if(score4>maxscore4)
{
maxscore4=score4;
maxperson4=Dialogs.prompt("You just set a new high score!! Enter your name","");
}
WMLBrowser.setVar("maxscore4",maxscore4);
WMLBrowser.setVar("maxperson4",maxperson4);
WMLBrowser.go("#1");
}