-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeTest.js
More file actions
155 lines (136 loc) · 3.21 KB
/
codeTest.js
File metadata and controls
155 lines (136 loc) · 3.21 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// Question 1 to 2
function correctQ1() {
$(".Q1theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(10000);
});
$("#Q1").hide();
$("#Q2").show();
}
function wrongQ1() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(10000)
});
$("#Q1").hide();
$("#Q2").show();
}
// Question 2 to 3
function correctQ2() {
$(".Q2theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(20000);
});
$("#Q2").hide();
$("#Q3").show();
}
function wrongQ2() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(20000)
});
$("#Q2").hide();
$("#Q3").show();
}
// Question 3 to 4
function correctQ3() {
$(".Q3theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(30000);
});
$("#Q3").hide();
$("#Q4").show();
}
function wrongQ3() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(30000)
});
$("#Q3").hide();
$("#Q4").show();
}
// Question 4 to 5
function correctQ4() {
$(".Q4theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(40000);
});
$("#Q4").hide();
$("#Q5").show();
}
function wrongQ4() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(40000)
});
$("#Q4").hide();
$("#Q5").show();
}
// Question 5 to 6
function correctQ5() {
$(".Q5theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(50000);
});
$("#Q5").hide();
$("#Q6").show();
}
function wrongQ5() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(50000)
});
$("#Q5").hide();
$("#Q6").show();
}
// Question 6 to 7
function correctQ6() {
$(".Q6theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(60000);
});
$("#Q6").hide();
$("#Q7").show();
}
function wrongQ6() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(60000)
});
$("#Q6").hide();
$("#Q7").show();
}
// Question 8 to 9
function correctQ8() {
$(".Q8theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(80000);
});
$("#Q8").hide();
$("#Q9").show();
}
function wrongQ8() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(80000)
});
$("#Q8").hide();
$("#Q9").show();
}
// Question 9 to 10
function correctQ9() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".correct").text("CORRECT!").hide(10000);
});
$("#Q9").hide();
$("#Q10").show();
}
function wrongQ9() {
$(".Q9theFourQuestions").hide();
setTimeout(function () {
$(".wrong").text("WRONG!").animate().hide(10000)
});
$("#Q9").hide();
$("#Q10").show();
}