-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
63 lines (56 loc) · 2.29 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">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code-Quiz</title>
<link rel="stylesheet" href="./assets/css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap" rel="stylesheet">
</head>
<body>
<header class='header'>
<button class='button' id='viewScores'>View high Scores</button>
<h4 id="countdown">Time: 60</h4>
</header>
<main class="page-content" id='start-page'>
<h1>Coding Quiz!</h1>
<p>Try to answer the following coding-related questions within the time limit. At the end add your score and
initials to the
high scores list and view the scores on the top left button.</p>
<button class='btn' id="start">Start</button>
</main>
<div class="page-content" id="quiz-page">
<h2 id='questions'>Question</h2>
<div class='question-content'>
<button class='btn' id='a' onClick="checkAnswer('a')">A</button>
<button class='btn' id='b' onClick="checkAnswer('b')">B</button>
<button class='btn' id='c' onClick="checkAnswer('c')">C</button>
<button class='btn' id='d' onClick="checkAnswer('d')">D</button>
</div>
<hr id="lineBreak" style="display: none" class="mt-4">
<p id="answerCheck" style="display: none;"></p>
</div>
<div id="end-page" class='page-content'>
<h2 id='result'>Your final Score is: </h2>
<form>
<div class='form-group'>
<input type='text' name="score-name" placeholder="Enter name" id='name' />
</div>
<div class='form-group'>
<button class='btn' id='submit-score'>submit</button>
</div>
</form>
</div>
<div class="page-content" id='scores-page'>
<h1>High Scores</h1>
<div id='listOfScores' style='width: 80%'>
<p></p>
</div>
<button id="homePage">Home</button>
</div>
<script src="./assets/js/script.js"></script>
</body>
</html>