-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (46 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JavaScript Fundamentals</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap" rel="stylesheet">
</head>
<body>
<div id="menu">
<p>View Highscores</p>
<!-- time counts down -->
<p>Time: <span class="time">60</span></p>
</div>
<div id="homePage">
<h1>JavaScript Fundamentals</h1>
<p>
Try to answer the code-related questions within the time limit. <br>
Keep in mind that incorrect answers will penalize your score/time by ten seconds!</p>
<button id="startQuiz">Start</button>
</div>
<div id="quiz">
<h1>Question</h1>
<div id="questions"></div>
<hr>
<p id="result"></p>
</div>
<div id="finalScore">
<h1>All Done!</h1>
<p>You got <span id="score">0</span> correct answer/s!</p>
<form>
<input id="inputName" name="inputName" type="text" placeholder="Nickname">
<button type="submit">Submit</button>
</form>
</div>
<div id="highScores">
<h1>Highscores</h1>
<p>Final scores are calculated by the amount of correct answers and remaining time left!</p>
<ol id="scoreList"></ol>
<button id="goHome">Go Home</button>
<button id="clearScores">Clear Scores</button>
</div>
<script src='./script.js'></script>
</body>
</html>