-
Notifications
You must be signed in to change notification settings - Fork 2
/
quiz.html
210 lines (169 loc) · 7.83 KB
/
quiz.html
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
<!DOCTYPE html>
<html>
<head>
<title>Quiz</title>
<style>
.answers li {
list-style: upper-alpha;
}
label {
margin-left: 0.5em;
cursor: pointer;
}
#results {
background: #dddada;
color: 000000;
padding: 3px;
text-align: center;
width: 200px;
cursor: pointer;
border: 1px solid gray;
}
#results:hover {
background: #3d91b8;
color: #ffffff;
padding: 3px;
text-align: center;
width: 200px;
cursor: pointer;
border: 1px solid gray;
}
#categorylist {
margin-top: 6px;
display: none;
}
#category1, #category2, #category3, #category4, #category5, #category6, #category7, #category8, #category9, #category10, #category11 {
display: none;
}
#closing {
display: none;
font-style: italic;
}
</style>
</head>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/quiz-1.js"></script>
<body>
<p class="question">1. 1. I ________________ from France.</p>
<ul class="answers">
<input type="radio" name="q1" value="a" id="q1a"><label for="q1a">is</label><br/>
<input type="radio" name="q1" value="b" id="q1b"><label for="q1b">are</label><br/>
<input type="radio" name="q1" value="c" id="q1c"><label for="q1c">am</label><br/>
<input type="radio" name="q1" value="d" id="q1d"><label for="q1d">be</label><br/>
</ul>
<p class="question">2. 2. This is my friend. _____________ name is Peter.</p>
<ul class="answers">
<input type="radio" name="q2" value="a" id="q2a"><label for="q2a">Her</label><br/>
<input type="radio" name="q2" value="b" id="q2b"><label for="q2b">Our</label><br/>
<input type="radio" name="q2" value="c" id="q2c"><label for="q2c">Yours</label><br/>
<input type="radio" name="q2" value="d" id="q2d"><label for="q2d">His</label><br/>
</ul>
<p class="question">3. 3. Mike is ______________.</p>
<ul class="answers">
<input type="radio" name="q3" value="a" id="q3a"><label for="q3a">my sister's friend</label><br/>
<input type="radio" name="q3" value="b" id="q3b"><label for="q3b">friend my sister</label><br/>
<input type="radio" name="q3" value="c" id="q3c"><label for="q3c">friend from my sister</label><br/>
<input type="radio" name="q3" value="d" id="q3d"><label for="q3d">my sister friend's</label><br/>
</ul>
<p class="question">4. 4. My brother is ______________ artist.</p>
<ul class="answers">
<input type="radio" name="q4" value="a" id="q4a"><label for="q4a">the</label><br/>
<input type="radio" name="q4" value="b" id="q4b"><label for="q4b">an</label><br/>
<input type="radio" name="q4" value="c" id="q4c"><label for="q4c">a</label><br/>
<input type="radio" name="q4" value="d" id="q4d"><label for="q4d">--</label><br/>
</ul>
<p class="question">5. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q5" value="a" id="q5a"><label for="q5a">Answer 1</label><br/>
<input type="radio" name="q5" value="b" id="q5b"><label for="q5b">Answer 2</label><br/>
<input type="radio" name="q5" value="c" id="q5c"><label for="q5c">Answer 3</label><br/>
<input type="radio" name="q5" value="d" id="q5d"><label for="q5d">Answer 4</label><br/>
</ul>
<p class="question">6. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q6" value="a" id="q6a"><label for="q6a">Answer 1</label><br/>
<input type="radio" name="q6" value="b" id="q6b"><label for="q6b">Answer 2</label><br/>
<input type="radio" name="q6" value="c" id="q6c"><label for="q6c">Answer 3</label><br/>
<input type="radio" name="q6" value="d" id="q6d"><label for="q6d">Answer 4</label><br/>
</ul>
<p class="question">7. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q7" value="a" id="q7a"><label for="q7a">Answer 1</label><br/>
<input type="radio" name="q7" value="b" id="q7b"><label for="q7b">Answer 2</label><br/>
<input type="radio" name="q7" value="c" id="q7c"><label for="q7c">Answer 3</label><br/>
<input type="radio" name="q7" value="d" id="q7d"><label for="q7d">Answer 4</label><br/>
</ul>
<p class="question">8. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q8" value="a" id="q8a"><label for="q8a">Answer 1</label><br/>
<input type="radio" name="q8" value="b" id="q8b"><label for="q8b">Answer 2</label><br/>
<input type="radio" name="q8" value="c" id="q8c"><label for="q8c">Answer 3</label><br/>
<input type="radio" name="q8" value="d" id="q8d"><label for="q8d">Answer 4</label><br/>
</ul>
<p class="question">9. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q9" value="a" id="q9a"><label for="q9a">Answer 1</label><br/>
<input type="radio" name="q9" value="b" id="q9b"><label for="q9b">Answer 2</label><br/>
<input type="radio" name="q9" value="c" id="q9c"><label for="q9c">Answer 3</label><br/>
<input type="radio" name="q9" value="d" id="q9d"><label for="q9d">Answer 4</label><br/>
</ul>
<p class="question">10. What is the answer to this question?</p>
<ul class="answers">
<input type="radio" name="q10" value="a" id="q10a"><label for="q10a">Answer 1</label><br/>
<input type="radio" name="q10" value="b" id="q10b"><label for="q10b">Answer 2</label><br/>
<input type="radio" name="q10" value="c" id="q10c"><label for="q10c">Answer 3</label><br/>
<input type="radio" name="q10" value="d" id="q10d"><label for="q10d">Answer 4</label><br/>
</ul>
<br/>
<div id="results">
Check my answers
</div>
<div id="category1">
<p>
<strong>Question 1:</strong> The correct answer is the <strong>Answer 1</strong>.</p>
</div>
<div id="category2">
<p>
<strong>Question 2:</strong> The correct answer is <strong>Answer 2</strong>.</p>
</div>
<div id="category3">
<p>
<strong>Question 3:</strong> The correct answer is <strong>Answer 3</strong>.</p>
</div>
<div id="category4">
<p>
<strong>Question 4:</strong> The correct answer is <strong>Answer 4</strong>.</p>
</div>
<div id="category5">
<p>
<strong>Question 5:</strong> The correct answer is <strong>Answer 1</strong>.</p>
</div>
<div id="category6">
<p>
<strong>Question 6:</strong> The correct answer is <strong>Answer 2</strong>.</p>
</div>
<div id="category7">
<p>
<strong>Question 7:</strong> The correct answer is <strong>Answer 3</strong>.</p>
</div>
<div id="category8">
<p>
<strong>Question 8:</strong> The correct answer is <strong>Answer 4</strong>.</p>
</div>
<div id="category9">
<p>
<strong>Question 9:</strong> The correct answer is <strong>Answer 1</strong>.</p>
</div>
<div id="category10">
<p>
<strong>Question 10:</strong> The correct answer is <strong>Answer 2</strong>.</p>
</div>
<div id="category11">
<p>
You answered them all right!</p>
</div>
<div id="backbutton">
<button><a href="index.html">Back to ESLBrampton</a></button>
</div>
</body>
</html>