-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (46 loc) · 1.85 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Knowledge Quiz</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<!--timer that will be counting down. 5 seconds off each wrong answer-->
<header>
<h1 id="countDown"> Time:20</h1>
</header>
<!--quiz container/ contains the main menue, questions, choices-->
<section id="quizContainer">
<div id="questionCard">
<div>
<h3 id="title">Start your coding quiz</h3>
<p id="rules">Rules: Correct answers add 5 points to score and wrong answers deduct 5 seconds from timer</p>
</div>
<button id="startButton"> START</button>
<h3 id="question"></h3>
<div id="choicesContainer">
</div>
</section>
</div>
<!-- score page/ users submit their initials here where the input will be saved to local storage-->
<section id="scoreContainer" class="hide">
<h1 id="entername">Enter Initials</h1>
<h2>Score: <span id="yourScore">0</span></h2>
<input id="yourInitials"type="text">
<button id="submit">SUBMIT</button>
</section>
<!--Result Page -->
<section id="highScorecontainer" class="hide">
<!-- this is where the saved scores will be appended in a li-->
<ol id="high-score-list" class="score-list"></ol>
<!-- when clicked, game can be replayed and timer will restart-->
<button id="replayButton">REPLAY</button>
</section>
<script src="assets/script/questions.js" async defer></script>
<script src="assets/script/script.js" async defer></script>
</body>
</html>