-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (67 loc) · 3.1 KB
/
index.html
File metadata and controls
88 lines (67 loc) · 3.1 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!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>JavaScript Multiple-Choice Quiz</title>
<link rel="stylesheet" type="text/css" href="./assets/css/style.css"/>
</head>
<body>
<div class="container">
<button class="scores-btn btn" id="scores-btn">
View High Scores
</button>
<div class="quizStart">
<h1>JavaScript Quick Quiz</h1>
</div>
<section id="startInstructions" class="quizStart">
<h2>Prepare your job interview skills and test your JavaScript knowledge </h2>
<button id="startButton" class="start-btn btn">START</button>
<p><strong>RULES</strong> - Answer as many questions correctly as you can before the time runs out. Any incorrect answers will reduce your time
by an additional 10 seconds. </p>
</section>
<!--MultipleChoice quiz question section -->
<quiz id="question-container" class="hide">
<div id="timer" class="timer">
Time: 70 Sec
</div>
<div id="question"></div>
<div id="answer-buttons" class="btn-grid">
<button class="btn">Answer1</button>
<button class="btn">Answer2</button>
<button class="btn">Answer3</button>
<button class="btn">Answer4</button>
</div>
<div id="status" class="status hide">
<span id="correct">Right</span>
<span id="incorrect">Wrong</span>
</div>
<button id="next-btn" class="next-btn btn">Next</button>
</quiz>
<section id="score-container" class="hide">
<form id="submit-form" class="submit-info">
<p>Good Job !!!</p>
<p id="your-score"></p>
<label id="initials-label">Enter your name to save the score:</label>
<br>
<input type="text" id="initials-field" maxlength="10" placeholder="Enter your name to save the score" />
<br>
<button id="submit-btn" class="submit-btn btn">Submit</button>
<button id="restar-btn" class="restart-btn btn">Start Again</button>
</form>
</section>
<section id="highscores" class="highscores-container hide">
<div id="high-scores">
<h1 class="centered">Leaderboard</h1>
<div id="highscore" class="highscore highscore-list"></div>
<div class="controls">
<button id="restart-btn" class="restart-btn btn">Play Again!</button>
<button id="clear-btn" class="btn">Clear Scores</button>
</div>
</div>
</section>
</div>
<script src="./assets/js/script.js"></script>
</body>
</html>