-
Notifications
You must be signed in to change notification settings - Fork 0
/
quiz.html
51 lines (51 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quick Quiz</title>
<link rel="stylesheet" href="quiz.css">
</head>
<body>
<div id="hud">
<div id="questionAndBar">
<div id="question-number">Question: 1</div>
<div id="progress-bar-container">
<div id="progressBarFull"></div>
</div>
</div>
<div id="scoreDiv">
<div id="score">Score:</div>
<div id="scoreCount">0</div>
</div>
</div>
<div class="container">
<h1 id="question">What is the answer to this question?</h1>
<div class="choices">
<div class="choice" id="0">
<span class="choice-letter">A</span>
<span class="choice-text" id="c0">Choice 1</span>
</div>
<div class="choice" id="1">
<span class="choice-letter">B</span>
<span class="choice-text" id="c1">Choice 2</span>
</div>
<div class="choice" id="2">
<span class="choice-letter">C</span>
<span class="choice-text" id="c2">Choice 3</span>
</div>
<div class="choice" id="3">
<span class="choice-letter">D</span>
<span class="choice-text" id="c3">Choice 4</span>
</div>
</div>
<div id="end-screen" style="display: none">
<h1>Game Over</h1>
<div id="final-score">Your score: 0</div>
<button id="restart-button">Play Again</button>
<button id="home-button">Go Home</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>