-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquiz.html
More file actions
419 lines (371 loc) · 14.5 KB
/
quiz.html
File metadata and controls
419 lines (371 loc) · 14.5 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Quiz</title>
</head>
<body>
<style>
#frame001 {
background-color: white;
border: 4px solid black;
width: 600px;
height: 600px;
border-radius: 10px;
padding: 10px;
margin: 10px;
margin-inline-start: 450px;
margin-top: 100px;
}
.buttons001 {
background-color: blue;
color: white;
padding: 5px;
margin: 10px;
border-radius: 10px;
width: 100px;
}
.buttons002 {
background-color: lightblue;
color: black;
padding: 5px;
margin: 10px;
border-radius: 10px;
}
#text001 {
text-align: center;
}
#text002 {
text-align: left;
}
#green001 {
color: green;
}
#red001 {
color: red;
}
.option {
width: 200px;
}
</style>
<div id="frame001" class = "body">
<div id="text001">
<h2>Dyslexia Quiz</h2> <p>(Just for fun.)</p>
Question: <text id="number001">0</text><br />
Score: <text id="score001">0</text>
<hr />
<div id="message001">Click Begin to start</div><br />
</div>
<div id="text002">
<div id="question001"></div>
<div id="option001" class = "option"></div>
<div id="option002" class = "option"></div>
<div id="option003" class = "option"></div>
<div id="answer001"></div>
<div id="text001">
<div id="disappear001"><button class="buttons001" onclick= begin001()>Begin</button></div>
</div>
<div id="next001"></div>
</div>
</div>
<script>
var q = ["What is Dyslexia </br></br>", "Is dyslexia curable? </br></br>", "Which one of these is a symptom of dyslexia </br></br>", "A possible sign that a child might have Dyslexia is … </br></br>", "Can you still be successful with dyslexia? </br></br>", "Which is not a basic consequence of Dyslexia </br></br>", "Is Dyslexia a genetic disease? </br></br>", "Dyslexia doesn’t just affect reading. It also affects the ability to … </br></br>", "What did you learn from this? </br></br>", "Did you enjoy doing this quiz? </br></br>"];
var a1 = [
"<button class=buttons002 onclick=q1i()> A disease </button>",
"<button class=buttons002 onclick=q2i()> Yes </button>",
"<button class=buttons002 onclick=q3c()> Late Talking </button>",
"<button class=buttons002 onclick=q4i()> Mirror writing or memorizing words </button>",
"<button class=buttons002 onclick=q5c()> Yes </button>",
"<button class=buttons002 onclick=q6i()> Reading is slow and laborious </button>",
"<button class=buttons002 onclick=q7c()> True </button>",
"<button class=buttons002 onclick=q8c()> Spell words</button>",
"<button class=buttons002 onclick=q9c()> 1 in 5 people have Dyslexia </button>",
"<button class=buttons002 onclick=q10c()> Yes, Absolutely!! (😉 This is the right answer) </button>"
];
var a2 = [
"<button class=buttons002 onclick=q1c()> A learning disorder </button>",
"<button class=buttons002 onclick=q2c()> No </button>",
"<button class=buttons002 onclick=q3i()> Vomiting </button>",
"<button class=buttons002 onclick=q4i()> Left handedness </button>",
"<button class=buttons002 onclick=q5i()> No </button>",
"<button class=buttons002 onclick=q6c()> Has a lower than average IQ </button>",
"<button class=buttons002 onclick=q7i()> False </button>",
"<button class=buttons002 onclick=q8c()> Retrieve words </button>",
"<button class=buttons002 onclick=q9c()> It is not a disease it is just different of learning </button>",
"<button class=buttons002 onclick=q10c()> No, I hated it!! </button>"
];
var a3 = [
"<button class=buttons002 onclick=q1i()> An eating disorder </button>",
"<button class=buttons002 onclick=q2i()> Maybe </button>",
"<button class=buttons002 onclick=q3i()> Losing an Eye </button>",
"<button class=buttons002 onclick=q4c()> Problems having attaching name to a word or a sound to a letter </button>",
"<button class=buttons002 onclick=q5i()> I have no idea what is Dyslexia </button>",
"<button class=buttons002 onclick=q6i()> Handwriting is barely legible </button>",
"<button class=buttons002 onclick=q7i()> I don't know what is Dyslexia </button>",
"<button class=buttons002 onclick=q8c()> Articulate words </button>",
"<button class=buttons002 onclick=q9c()> Having Dyslexia does not mean you cannot be successful </button>",
"<button class=buttons002 onclick=q10c()> Please click A, it took us forever for the creator to create!! </button>"
];
var c = ["Correct", "Correct", "Correct", "Correct", "Correct", "Correct", "Correct", "Correct", "Correct", "Correct"];
var i = ["Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect", "Incorrect"];
var n = 0;
n++;
var s = 0;
s++;
function begin001() {
disappear001.innerHTML = "";
message001.innerHTML = "";
question001.innerHTML = q[0];
option001.innerHTML = a1[0];
option002.innerHTML = a2[0];
option003.innerHTML = a3[0];
number001.innerHTML = n++;
}
function q1c() {
answer001.innerHTML = "<div id=green001>" + c[0] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new002()>Next</button>";
score001.innerHTML = s++;
}
function q1i() {
answer001.innerHTML = "<div id=red001>" + i[0] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new002()>Next</button>";
}
function new002() {
question001.innerHTML = q[1];
option001.innerHTML = a1[1];
option002.innerHTML = a2[1];
option003.innerHTML = a3[1];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q2c() {
answer001.innerHTML = "<div id=green001>" + c[1] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new003()>Next</button>";
score001.innerHTML = s++;
}
function q2i() {
answer001.innerHTML = "<div id=red001>" + i[1] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new003()>Next</button>";
}
function new003() {
question001.innerHTML = q[2];
option001.innerHTML = a1[2];
option002.innerHTML = a2[2];
option003.innerHTML = a3[2];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q3c() {
answer001.innerHTML = "<div id=green001>" + c[2] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new004()>Next</button>";
score001.innerHTML = s++;
}
function q3i() {
answer001.innerHTML = "<div id=red001>" + i[2] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new004()>Next</button>";
}
function new004() {
question001.innerHTML = q[3];
option001.innerHTML = a1[3];
option002.innerHTML = a2[3];
option003.innerHTML = a3[3];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q4c() {
answer001.innerHTML = "<div id=green001>" + c[3] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new005()>Next</button>";
score001.innerHTML = s++;
}
function q4i() {
answer001.innerHTML = "<div id=red001>" + i[3] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new005()>Next</button>";
}
function new005() {
question001.innerHTML = q[4];
option001.innerHTML = a1[4];
option002.innerHTML = a2[4];
option003.innerHTML = a3[4];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q5c() {
answer001.innerHTML = "<div id=green001>" + c[4] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new006()>Next</button>";
// "<button class=buttons001 onclick=end001()>End of Quiz</button>";
score001.innerHTML = s++;
}
function q5i() {
answer001.innerHTML = "<div id=red001>" + i[4] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new006()>Next</button>"
;
}
function new006() {
question001.innerHTML = q[5];
option001.innerHTML = a1[5];
option002.innerHTML = a2[5];
option003.innerHTML = a3[5];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q6c() {
answer001.innerHTML = "<div id=green001>" + c[5] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new007()>Next</button>";
score001.innerHTML = s++;
}
function q6i() {
answer001.innerHTML = "<div id=red001>" + i[5] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new007()>Next</button>";
}
function new007() {
question001.innerHTML = q[6];
option001.innerHTML = a1[6];
option002.innerHTML = a2[6];
option003.innerHTML = a3[6];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q7c() {
answer001.innerHTML = "<div id=green001>" + c[6] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new008()>Next</button>";
score001.innerHTML = s++;
}
function q7i() {
answer001.innerHTML = "<div id=red001>" + i[6] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new008()>Next</button>";
}
function new008() {
question001.innerHTML = q[7];
option001.innerHTML = a1[7];
option002.innerHTML = a2[7];
option003.innerHTML = a3[7];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q8c() {
answer001.innerHTML = "<div id=green001>" + c[7] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new009()>Next</button>";
score001.innerHTML = s++;
}
function q8i() {
answer001.innerHTML = "<div id=red001>" + i[7] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new009()>Next</button>";
}
function new009() {
question001.innerHTML = q[8];
option001.innerHTML = a1[8];
option002.innerHTML = a2[8];
option003.innerHTML = a3[8];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q9c() {
answer001.innerHTML = "<div id=green001>" + c[8] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new0010()>Next</button>";
score001.innerHTML = s++;
}
function q9i() {
answer001.innerHTML = "<div id=red001>" + i[8] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=new0010()>Next</button>";
}
function new0010() {
question001.innerHTML = q[9];
option001.innerHTML = a1[9];
option002.innerHTML = a2[9];
option003.innerHTML = a3[9];
next001.innerHTML = "";
answer001.innerHTML = "";
number001.innerHTML = n++;
}
function q10c() {
answer001.innerHTML = "<div id=green001>" + c[9] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=end001()>End of Quiz</button>";
score001.innerHTML = s++;
}
function q10i() {
answer001.innerHTML = "<div id=red001>" + i[9] + "</div>";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<button class=buttons001 onclick=end001()>End of Quiz</button>";
}
function end001() {
message001.innerHTML = "End of Quiz.";
question001.innerHTML = "";
option001.innerHTML = "";
option002.innerHTML = "";
option003.innerHTML = "";
next001.innerHTML = "<div id=text001>" + "<button class=buttons001 onclick=repeat001()>Repeat</button>" + "</div>";
answer001.innerHTML = "";
}
function repeat001() {
location.reload();
}
</script>
</body>
</html>