-
Notifications
You must be signed in to change notification settings - Fork 0
/
himym.html
254 lines (250 loc) · 9.39 KB
/
himym.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
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
<!DOCTYPE html>
<html>
<head>
<title>HIMYM Quizzzzz!</title>
<link rel="stylesheet" type="text/css" href="Quiz.css">
</head>
<body>
<style>
body {
background: #adadeb;
}
img {
border-radius: 25px;
}
</style>
<div class=title>
<h1> HIMYM Quizzzzz!</h1>
</div>
<div class=questionBox>
<h1>1. Who invented the Lemon Law?</h1>
<img src="himym_images/lemmon.jpg" alt="lemmon">
</div>
<div class="choice">
<div row>
<button class=button id=1B onclick="QuestOneOne();QuestOneColor()">Barney</button>
</div>
<div row>
<button class=button id=1A onclick="QuestOneZero();QuestOneColor()">Marshall</button>
</div>
<div row>
<button class=button id=1C onclick="QuestOneZero();QuestOneColor()">Lily</button>
</div>
</div>
<div class=questionBox>
<h1>2. What is Robin's occupation?</h1>
<img src="himym_images/robin.jpg" alt="robin">
</div>
<div class="choice">
<div row>
<button class=button id=2A onclick="QuestTwoZero();QuestTwoColor()">Professor</button>
</div>
<div row>
<button class=button id=2B onclick="QuestTwoOne();QuestTwoColor()">News reporter</button>
</div>
<div row>
<button class=button id=2C onclick="QuestTwoZero();QuestTwoColor()"> Columnist</button>
</div>
</div>
<div class=questionBox>
<h1>3. Who does Ted have a crush on, as well as an on-again, off-again relationship? </h1>
<img src="himym_images/ted.jpg" alt="ted">
</div>
<div class="choice">
<div row>
<button class=button id=3A onclick="QuestThreeZero();QuestThreeColor()"> Victoria</button>
</div>
<div row>
<button class=button id=3C onclick="QuestThreeZero();QuestThreeColor()"> Lily</button>
</div>
<div row>
<button class=button id=3B onclick="QuestThreeOne();QuestThreeColor()">Robin</button>
</div>
</div>
<div class=questionBox>
<h1>4. Where does Ranjit, a cab driver, come from? </h1>
<img src="himym_images/ranjit.jpg" alt="ranjit">
</div>
<div class="choice">
<div row>
<button class=button id=4A onclick="QuestFourZero();QuestFourColor()">India</button>
</div>
<div row>
<button class=button id=4B onclick="QuestFourOne();QuestFourColor()">Bangladesh</button>
</div>
<div row>
<button class=button id=4C onclick="QuestFourZero();QuestFourColor()">Pakistan</button>
</div>
</div>
<div class=questionBox>
<h1>5. What is the name of the bartender at MacLaren's, the bar frequented by the main characters? </h1>
<img src="himym_images/carol.jpg" alt="carol">
</div>
<div class="choice">
<div row>
<button class=button id=5B onclick="QuestFiveOne();QuestFiveColor()">Carl</button>
</div>
<div row>
<button class=button id=5A onclick="QuestFiveZero();QuestFiveColor()"> Mark</button>
</div>
<div row>
<button class=button id=5C onclick="QuestFiveZero();QuestFiveColor()">James</button>
</div>
</div>
<div class=questionBox>
<h1>6. What is Robin's middle name? </h1>
<img src="himym_images/robin_2.jpg" alt="robin">
</div>
<div class="choice">
<div row>
<button class=button id=6C onclick="QuestSixZero();QuestSixColor()">Tracy</button>
</div>
<div row>
<button class=button id=6A onclick="QuestSixZero();QuestSixColor()">Evelyn</button>
</div>
<div row>
<button class=button id=6B onclick="QuestSixOne();QuestSixColor()">Charles</button>
</div>
</div>
<div class=questionBox>
<h1>7. What is Barney's biggest fear? </h1>
<img src="himym_images/barny.jpg" alt="barny">
</div>
<div class="choice">
<div row>
<button class=button id=7B onclick="QuestSevenOne();QuestSevenColor()">Spiders</button>
</div>
<div row>
<button class=button id=7A onclick="QuestSevenZero();QuestSevenColor()">Commitment</button>
</div>
<div row>
<button class=button id=7C onclick="QuestSevenZero();QuestSevenColor()">Rejection</button>
</div>
</div>
<div class=questionBox>
<h1>8. What type of barnyard animal beat up Ted? </h1>
<img src="himym_images/ted_2.jpg" alt="ted">
</div>
<div class="choice">
<div row>
<button class=button id=8A onclick="QuestEightZero();QuestEightColor()">Sheep</button>
</div>
<div row>
<button class=button id=8B onclick="QuestEightOne();QuestEightColor()">Goat</button>
</div>
<div row>
<button class=button id=8C onclick="QuestEightZero();QuestEightColor()">Calf</button>
</div>
</div>
<div class=questionBox>
<h1>9. What level of education does Lily teach? </h1>
<img src="himym_images/lily.jpg" alt="lily">
</div>
<div class="choice">
<div row>
<button class=button id=9B onclick="QuestNineOne();QuestNineColor()">Kindergarten</button>
</div>
<div row>
<button class=button id=9A onclick="QuestNineZero();QuestNineColor()">Middle school</button>
</div>
<div row>
<button class=button id=9C onclick="QuestNineZero();QuestNineColor()">High school</button>
</div>
</div>
<div class=questionBox>
<h1>10. What unexplained fruit did Ted find in his apartment after a drunken night out? </h1>
<img src="himym_images/ted3.png" alt="ted">
</div>
<div class="choice">
<div row>
<button class=button id=10A onclick="QuestTenZero();QuestTenColor()">Kiwi</button>
</div>
<div row>
<button class=button id=10C onclick="QuestTenZero();QuestTenColor()">Banana</button>
</div>
<div row>
<button class=button id=10B onclick="QuestTenOne();QuestTenColor()">Pineapple</button>
</div>
</div>
<div class=questionBox>
<h1>11. What US state is Marshall from?
</h1>
<img src="himym_images/marshall.png" alt="marshall">
</div>
<div class="choice">
<div row>
<button class=button id=11A onclick="QuestElevenZero();QuestElevenColor()">North Dakota</button>
</div>
<div row>
<button class=button id=11B onclick="QuestElevenOne();QuestElevenColor()">Minnesota</button>
</div>
<div row>
<button class=button id=11C onclick="QuestElevenZero();QuestElevenColor()">Alaska</button>
</div>
</div>
<div class=questionBox>
<h1>12. How many seasons of How I Met Your Mother were there? </h1>
<img src="himym_images/himym.jpg" alt="himym">
</div>
<div class="choice">
<div row>
<button class=button id=12B onclick="QuestTwelveOne();QuestTwelveColor()">9</button>
</div>
<div row>
<button class=button id=12A onclick="QuestTwelveZero();QuestTwelveColor()">7 </button>
</div>
<div row>
<button class=button id=12C onclick="QuestTwelveZero();QuestTwelveColor()">5</button>
</div>
</div>
<div class=questionBox>
<h1>13. What did Ted steal for Robin? </h1>
<img src="himym_images/ted n robin.jpg" alt="ted n robin">
</div>
<div class="choice">
<div row>
<button class=button id=13A onclick="QuestThirteenZero();QuestThirteenColor()">Blue tuba</button>
</div>
<div row>
<button class=button id=13B onclick="QuestThirteenOne();QuestThirteenColor()">Blue French horn</button>
</div>
<div row>
<button class=button id=13C onclick="QuestThirteenZero();QuestThirteenColor()">Blue violin</button>
</div>
</div>
<div class=questionBox>
<h1>14. Which Breaking Bad actor played Ted’s boss Hammond Druthers? </h1>
<img src="himym_images/breaking.jpg" alt="breaking bad ">
</div>
<div class="choice">
<div row>
<button class=button id=14A onclick="QuestFourteenZero();QuestFourteenColor()">Jon Hamm</button>
</div>
<div row>
<button class=button id=14C onclick="QuestFourteenZero();QuestFourteenColor()">Aaron Paul</button>
</div>
<div row>
<button class=button id=14B onclick="QuestFourteenOne();QuestFourteenColor()">Bryan Cranston</button>
</div>
</div>
<div class=questionBox>
<h1>15. Which game show host does Barney think is his father? </h1>
<img src="himym_images/barny_father.jpg" alt="barny_father">
</div>
<div class="choice">
<div row>
<button class=button id=15A onclick="QuestFifteenZero();QuestFifteenColor()">Steve Harvey</button>
</div>
<div row>
<button class=button id=15C onclick="QuestFifteenZero();QuestFifteenColor()">Alex Trebek</button>
</div>
<div row>
<button class=button id=15B onclick="QuestFifteenOne();QuestFifteenColor()"> Bob Barker</button>
</div>
</div>
<div class=final>
<button id=Submit onclick="result();SubmitColor()">Submit</button>
</div>
<script src="Quiz.js"></script>
</body>
</html>