-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (68 loc) · 2.21 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
64
65
66
67
68
69
70
71
72
<!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" />
<script
src="https://kit.fontawesome.com/e26febfc3b.js"
crossorigin="anonymous"
></script>
<link rel="stylesheet" href="style.css" />
<script src="./app.js" defer type="module"></script>
<title>Quiz App</title>
</head>
<body>
<div class="start-btn">
<button class="btn" id="start-btn">Start Quiz</button>
</div>
<!-- INFO -->
<div class="info" id="info">
<div class="info-title flex">
<h2>Rules</h2>
</div>
<div class="info-list">
<p>1. You have 15 seconds for each question.</p>
<p>2. Once answer is selected you cannot undone it.</p>
<p>3. There are 10 questions, each question gives 1 point.</p>
</div>
<div class="info-btns flex">
<button class="btn btn--reverse exit" id="exit">Exit</button>
<button class="btn btn--reverse" id="continue">Continue</button>
</div>
</div>
<!-- QUIZ -->
<div class="title" id="quiz-box">
<header class="flex flex--sb">
<h3>Quiz App</h3>
<div class="timer flex flex--sb">
<p>Time left</p>
<p class="time" id="time">--</p>
</div>
<div class="timer-line" id="timer-line"></div>
</header>
<section class="quiz">
<p class="question" id="question"></p>
<div class="answers-list" id="answers-list"></div>
</section>
<!-- QUIZ FOOTER -->
<footer class="flex flex--sb">
<div>
<p><span id="question-num"></span> of <span>10</span> Questions</p>
</div>
<button class="btn btn--reverse next" id="next">Next</button>
</footer>
</div>
<!-- RESULTS -->
<div class="results" id="result-box">
<h2>Quiz Completed</h2>
<div class="scores">
<h3>Congratulations!</h3>
<p>You got <span id="score"></span> out of 10 Questions.</p>
</div>
<div class="results-btns">
<button class="btn btn--reverse next" id="replay">Replay Quiz</button>
</div>
</div>
</body>
</html>