-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
63 lines (62 loc) · 2.98 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Random Knowledge Quiz</title>
<link rel="shortcut icon" type="image/jpg" href="assets/images/favicon.png">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@200;500&family=Nunito+Sans:wght@300;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body>
<div id="top-container">
<div><a href="#" id="view-highscores" class="">View Highscores</a></div>
<div id="countdown-div">Time: <span id="countdown">120</span></div>
</div>
<div id="main-container">
<div id="start">
<h2>The Random Knowledge Quiz</h2>
<p>
How much do you know about <em>everything?</em><br>Test your knowledge on a variety of topics!<br><br>Try to answer all <strong>20 questions within 2 minutes</strong>.<br>An additional <strong>5 seconds will be deducted</strong> every time you select an incorrect answer.<br>Try not to spend too much time on each question.
</p>
<div id="start-btn-div"><button id="start-quiz">Start Quiz</button></div>
</div>
<div id="questions" class="hide">
<h4><span id="question-number"></span>. <span id="question"></span></h4>
<div id="answer-buttons" class="">
<button id="first-option" class=""></button>
<button id="second-option" class=""></button>
<button id="third-option" class=""></button>
<button id="fourth-option" class=""></button>
</div>
<div id="next-div" class="hide">
<button id="next-question">Next</button>
</div>
</div>
<div id="complete" class="hide">
<h3 id="complete-msg">You answered all the questions within the time limit.</h3>
<p id="complete-p">You scored <span id="user-score">0</span><span id="user-score-msg"></span></p>
<h4>Save your score</h4>
<div id="highscore-input-div">
<input type="text" id="highscore-input" placeholder="Enter your initials"><button id="submit-highscore">Submit</button>
</div>
<p id="input-message"></p>
<h4>OR</h4>
<br>
<button id="retake">Retake Quiz</button>
</div>
<div id="highscores" class="hide">
<h2>Highscore List</h2>
<ol id="highscore-list"></ol>
<div id="highscore-list-buttons">
<button id="go-to-start">Go to start menu</button>
<button id="clear-highscores">Clear highscores</button>
</div>
</div>
</div>
<script src="assets/js/questions.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html>