-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (83 loc) · 3.51 KB
/
index.html
File metadata and controls
91 lines (83 loc) · 3.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="./assets/css/style.css"/>
<title>Fun Quiz!</title>
</head>
<body>
<header class="header">
<!-- High Scores-->
<h3><a href="">View High Scores</a></h3>
<!--Time-->
<h3 id="time" class="time"></h3>
</header>
<!--Before the quiz-->
<section id="preQuiz">
<h1>Coding Quiz Challenge</h1>
<p>Try to answer the following code-related questions within the time limit
Keep in mind that incorrect answers will penalize your score/time
by ten seconds!
</p>
<!--Button-->
<button id="btn" class="btn"> Start Here</button>
</section>
<!-- Quiz questions 1 -->
<section id="quizQuestions" style="display: none;">
<div>
<p>Commonly used data types DO not Include:</p>
<button id="correct1" class="btn answers">1. strings</button>
<button id="wrong1_1" class="btn answers">2. booleans</button>
<button id="wrong1_2" class="btn answers">3. alerts</button>
<button id="wrong1_3" class="btn answers">4. numbers </button>
<p></p>
</div>
</section>
<!-- Quiz questions 2 -->
<section id="quizQuestions2" style="display: none;">
<div>
<p>The condition in an if / else statement is enclosed with _______.</p>
<button id="wrong2_1" class="btn answers">1. quotes</button>
<button id="wrong2_2" class="btn answers">2. curly brackets</button>
<button id="correct2" class="btn answers">3. parenthesis</button>
<button id="wrong2_3" class="btn answers">4. square brackets</button>
</div>
</section>
<!-- Quiz questions 3 -->
<section id="quizQuestions3" style="display: none;">
<div>
<p>Arrays in Javascript can be used to store _______.</p>
<button id="wrong3_1" class="btn answers">1. numbers and strings</button>
<button id="wrong3_2" class="btn answers">2. other arrays</button>
<button id="wrong3_3" class="btn answers">3. booleans</button>
<button id="correct3" class="btn answers">4. all of the above</button>
</div>
</section>
<!-- Quiz questions 4 -->
<section id="quizQuestions4" style="display: none;">
<div>
<p>String values must be enclosed within _______ when being assigned to variables.</p>
<button id="wrong4_1" class="btn answers">1. commas</button>
<button id="wrong4_2" class="btn answers">2. curly brackets</button>
<button id="correct4" class="btn answers">3. quotes</button>
<button id="wrong4_3" class="btn answers">4. parenthesis</button>
</div>
</section>
<!-- Displays when user clicks correct answer -->
<div id="correctMessage" class="answer message">
<p>Correct!</p>
</div>
<!-- Displays when user clicks wrong answer -->
<div id="wrongMessage" class="answer message">
<p>Wrong!</p>
</div>
<!--Displays when user runs out of time-->
<div id="failureMessage" style="display: none;">
<p>You failed!</p>
</div>
<div id="gameOverMessage" style="display: none;">
</div>
<script src="./assets/js/script.js"></script>
</body>
</html>