forked from jkrieger6/challenge-4-assessment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (51 loc) · 1.85 KB
/
index.html
File metadata and controls
56 lines (51 loc) · 1.85 KB
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
<!DOCTYPE html>
<html lang="en">
<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" />
<link rel="stylesheet" href="style.css" />
<title>JavaScript Quiz</title>
</head>
<body>
<header>
<div>
<a href="highscores.html"><button class="scores-header" id="view-high-scores">View High Scores</button></a>
</div>
<div class="timer">
<p>Time:
<span id="timer">0</span>
</p>
</div>
</header>
<main class="quiz">
<div id="quiz-start">
<div class="landing" id="start-screen">
<h1>JavaScript Timed Quiz</h1>
<p> Answer the code-related questions within the time limit, But remember incorrect answers will result with your time being decreased by ten seconds!</p>
<button id="start">Start Quiz</button>
</div>
<!-- <button id="next-question">Next Question</button> -->
</div>
<div class="hide" id="questions">
<h2 id="question-words"></h2>
<div class="options" id="options"></div>
</div>
<div class="hide" id="quiz-end">
<h2>All Done!</h2>
<p>Your final score is: <span id="score-final"></span></p>
<p>Your name is: <input type="text" id="name" max="3" />
<button id="submit-score">Submit</button>
</p>
</div>
<div id="feedback" class="feedback hide"></div>
<div class="scores">
<h1>Highscores</h1>
<ol id="highscores"></ol>
<a><button>Re-Start</button></a>
<button id="clear">Clear Highscores</button>
</div>
</main>
<script src="script.js"></script>
</body>
</html>