-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (206 loc) · 8.82 KB
/
index.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
255
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./style.css">
<title>Do You Even Code, Bro?!?</title>
</head>
<body>
<div class="container">
<div class="row">
<div class="card col-md-12" id="title-card">
<div class="card-body bg-info">
<h1 class="card-title">DO YOU EVEN CODE, BRO?!?</h1>
<h4 class="card-text">Test your Javascript knowledge, right here, right meow!</h4>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="card">
<div class="card-body text-center">
<h5 class="card-text">Time Remaining</h5>
<div class="time" id="seconds">
<div type="number">60</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-body align-self-center" id="start-button">
<button type="button" class="btn btn-info hide">BEGIN</button>
</div>
</div>
<div class="card" id="q1" style="display: none">
<div class="card-body text-center">
<h6>The 'for' command is used to do what?</h6>
<a class="badge badge-pill badge-info q1-correct">create a loop</a>
<br>
<a class="badge badge-pill badge-info wrong-q1">call a function</a>
<br>
<a class="badge badge-pill badge-info wrong-q1">create a variable</a>
<br>
<a class="badge badge-pill badge-info wrong-q1">close a loop</a>
</div>
</div>
<div class="card" id="q2" style="display: none">
<div class="card-body text-center">
<h6>What is the main purpose of Javascript?</h6>
<a class="badge badge-pill badge-info wrong-q2">place text on the page</a>
<br>
<a class="badge badge-pill badge-info wrong-q2">make stuff pretty</a>
<br>
<a class="badge badge-pill badge-info q2-correct">functionality and interactivity</a>
<br>
<a class="badge badge-pill badge-info wrong-q2">animation</a>
</div>
</div>
<div class="card" id="q3" style="display: none">
<div class="card-body text-center">
<h6>Javascript functions are used to...</h6>
<a class="badge badge-pill badge-info wrong-q3">animation</a>
<br>
<a class="badge badge-pill badge-info wrong-q3">create 'containers' for data</a>
<br>
<a class="badge badge-pill badge-info wrong-q3">clear data</a>
<br>
<a class="badge badge-pill badge-info q3-correct">run sets of code</a>
</div>
</div>
<div class="card" id="q4" style="display: none">
<div class="card-body text-center">
<h6>Javascript is related to Java how?</h6>
<a class="badge badge-pill badge-info wrong-q4">it is the successor to Java</a>
<br>
<a class="badge badge-pill badge-info q4-correct">it ain't</a>
<br>
<a class="badge badge-pill badge-info wrong-q4">it is the predecessor to Java</a>
<br>
<a class="badge badge-pill badge-info wrong-q4">it is a partner with Java</a>
</div>
</div>
<div class="card" id="q5" style="display: none">
<div class="card-body text-center">
<h6>Which symbol(s) is used to 'comment out' text</h6>
<a class="badge badge-pill badge-info wrong-q5">( )</a>
<br>
<a class="badge badge-pill badge-info q5-correct">// , /* */</a>
<br>
<a class="badge badge-pill badge-info wrong-q5">[ ]</a>
<br>
<a class="badge badge-pill badge-info wrong-q5">{ }</a>
</div>
</div>
<div class="card" id="q6" style="display: none">
<div class="card-body text-center">
<h6>Traditional Javascript syntax is now called...</h6>
<a class="badge badge-pill badge-info wrong-q6">"Standard" Javascript</a>
<br>
<a class="badge badge-pill badge-info wrong-q6">"Basic" Javascript</a>
<br>
<a class="badge badge-pill badge-info wrong-q6">"Swirl" Javascript</a>
<br>
<a class="badge badge-pill badge-info q6-correct">"Vanilla" Javascript</a>
</div>
</div>
<div class="card" id="q7" style="display: none">
<div class="card-body text-center">
<h6>Who is the inventor of Javascript?</h6>
<a class="badge badge-pill badge-info wrong-q7">Steve Jobs</a>
<br>
<a class="badge badge-pill badge-info wrong-q7">Steve Wozniak</a>
<br>
<a class="badge badge-pill badge-info q7-correct">Brandon Eich</a>
<br>
<a class="badge badge-pill badge-info wrong-q7">Al Gore</a>
</div>
</div>
<div class="card" id="q8" style="display: none">
<div class="card-body text-center">
<h6>Which of the following commands helps developers verify working code?</h6>
<a class="badge badge-pill badge-info q8-correct">console.log()</a>
<br>
<a class="badge badge-pill badge-info wrong-q8">alert</a>
<br>
<a class="badge badge-pill badge-info wrong-q8">prompt</a>
<br>
<a class="badge badge-pill badge-info wrong-q8">confirm</a>
</div>
</div>
<div class="card" id="q9" style="display: none">
<div class="card-body text-center">
<h6>Working with Javascript can bring developers</h6>
<a class="badge badge-pill badge-info wrong-q9">depression</a>
<br>
<a class="badge badge-pill badge-info wrong-q9">stress</a>
<br>
<a class="badge badge-pill badge-info wrong-q9">anxiety</a>
<br>
<a class="badge badge-pill badge-info q9-correct">all of the above</a>
</div>
</div>
<div class="card" id="q10" style="display: none">
<div class="card-body text-center">
<h6>The following is NOT a command used to declare a variable</h6>
<a class="badge badge-pill badge-info wrong-q9">let</a>
<br>
<a class="badge badge-pill badge-info q10-correct">target</a>
<br>
<a class="badge badge-pill badge-info wrong-q9">const</a>
<br>
<a class="badge badge-pill badge-info wrong-q9">var</a>
</div>
</div>
<div class="card" id="game-over" style="display: none">
<div class="card-body align-self-center" id="game-over-button">
<h1><span class="badge badge-info align-self-center">Game Over!</span></h1>
</div>
</div>
</div>
<div class="col">
<div class="card">
<div class="card-body text-center">
<h5 class="card-text">SCORE</h5>
<div class="score">
<div id="current-score">0</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="card col-md-12" id="title-card">
<div class="card-body bg-secondary">
<div>
<h5><span class="badge badge-secondary">High Score</span></h5>
</div>
<div id="high-score-card">
<h5><span class="badge badge-secondary">0</span></h5>
</div>
<div>
<h5><span class="badge badge-secondary" id="leader">Leader</span></h5>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="./script.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
</body>
</html>