-
Notifications
You must be signed in to change notification settings - Fork 380
/
Copy pathindex.html
54 lines (47 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>JavaScript Quiz</title>
<link rel="stylesheet" href="styles/style.css" />
</head>
<body>
<div class="container">
<header>
<h1>JavaScript Quiz</h1>
</header>
<!-- Quiz View -->
<!-- Note: this view is shown initially and for each question -->
<div id="quizView" class="view">
<div id="progress">
<div id="progressBar"></div>
</div>
<div id="questionCount"></div>
<div class="content">
<div id="question"></div>
<ul id="choices"></ul>
</div>
<div id="timeRemaining">Remaining Time: <span>00:00</span></div>
<button id="nextButton" class="button-primary">Answer</button>
</div>
<!-- End Quiz View -->
<!-- Note: this view is initially hidden using the style attribute 'display: none' -->
<div id="endView" class="view" style="display: none">
<div id="result-progress">
<div id="resultProgressBar"></div>
</div>
<p class="emphasis">Results</p>
<div class="content">
<div id="result"></div>
</div>
<!-- The below 'Restart Quiz' button is commented out because it is not used initially -->
<!-- <button id="restartButton" class="button-secondary">Restart Quiz</button> -->
</div>
</div>
<!-- The scripts are placed at the end of the document so that all the HTML elements are loaded before we try to access them -->
<!-- Important: Leave this as it is. Do not change the order of the scripts! -->
<script src="src/question.js"></script>
<script src="src/quiz.js"></script>
<script src="src/index.js"></script>
</body>
</html>