-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (48 loc) · 1.88 KB
/
index.html
File metadata and controls
54 lines (48 loc) · 1.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Quiz Game</title>
</head>
<body>
<div class="container">
<!-- First screen -->
<div class="screen active" id="start-screen">
<h1> Quiz Time!</h1>
<p>Test Your Knowledge with these fun questions</p>
<button id="start-btn">Start Quiz</button>
</div>
<!-- Screen after clicking start Quiz -->
<div class="screen" id="quiz-screen">
<div class="quiz-header">
<h2 id="question-text">Question goes here</h2>
<div class="quiz-info">
<p>
Question <span id="current-question">1</span> of <span id="total-questions">4</span>
</p>
<p>Score <span id="score">0</span></p>
</div>
</div>
<div id="answers-container" class="answers-container">
<!-- answers button will be inserted here from our js code later at some point -->
</div>
<div class="progress-bar">
<div class="progress" id="progress"></div>
</div>
</div>
<!-- Result screen -->
<div id="result-screen" class="screen">
<h1>Quiz Results</h1>
<div class="result-info">
<p>You Scored <span id="final-score">0</span> out of <span id="max-score">4</span></p>
<div id="result-message">Good Job</div>
</div>
<button id="restart-btn">Restart Quiz</button>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="script.js"></script>
</body>
</html>