generated from Code-Institute-Org/ci-full-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
quiz.html
171 lines (169 loc) · 5.46 KB
/
quiz.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta information -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Quiz game to test your knowledge about books and movies."
/>
<!-- Link to external CSS file -->
<link rel="stylesheet" href="assets/css/style.css" />
<!-- Link to external font resources -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@1,400;1,500;1,600&family=Playfair:ital,opsz,wght@1,5..1200,300;1,5..1200,400;1,5..1200,500;1,5..1200,700&family=Roboto:wght@300;400&display=swap"
rel="stylesheet"
/>
<!-- Page title -->
<title>Book/Movie Quiz - Game</title>
<!-- Favicon -->
<link
type="image/png"
sizes="16x16"
rel="icon"
href="assets/images/icons8-clapper-board-emoji-16.png"
/>
</head>
<body>
<!-- Main content container -->
<main class="container">
<!-- Content for the game page -->
<div id="game" class="justify-center flex-column">
<!-- Logo -->
<h1>Book/Movie Quiz</h1>
<!-- Timer section -->
<div id="timer-container">
<p id="timer-count">20/20</p>
</div>
<!-- Timer progress bar -->
<div id="timer-bar-container">
<div id="timer-progress-bar"></div>
</div>
<!-- Question counter -->
<div id="progress-display">
<div class="question-counter">
<p class="count-prefix">
Question: <span id="question-counter" class="count-text"></span>
</p>
</div>
<!-- Score counter -->
<div id="score" class="scoreboard">
<p class="score">
Score: <span id="score-counter" class="score">0</span>
</p>
</div>
</div>
<!-- Progress bar -->
<div id="progress-container">
<div id="progress-bar"></div>
</div>
<!-- Question -->
<h2 id="question" class="text-center">Can you answer correctly?</h2>
<!-- Answer buttons -->
<div id="answer-btns" class="justify-center flex-column"></div>
<!-- Game controls -->
<div class="controls">
<!-- Restart questions button -->
<button id="restart-btn" class="restart-btn btn btn-hover">
<i class="fas fa-redo"></i> Restart
</button>
<!-- Next question button -->
<button id="next-btn" class="next-btn btn btn-hover">
<i class="fas fa-arrow-circle-right"></i> Next
</button>
</div>
<!-- Home button to go back to home screen -->
<a
class="btn btn-hover home-btn"
href="index.html"
aria-label="Go back to home screen(opens in same tab)"
><i class="fas fa-home"></i> Home</a
>
</div>
</main>
<!-- Footer section -->
<footer>
<!-- Links to social media pages -->
<div class="links-page">
<ul>
<li>
<a
id="facebook"
href="https://www.facebook.com"
target="_blank"
rel="noopener"
aria-label="Visit our Facebook page(opens in a new tab)"
><i class="fab fa-facebook-f"></i
></a>
</li>
<li>
<a
id="instagram"
href="https://www.instagram.com"
target="_blank"
rel="noopener"
aria-label="Visit our Instagram page(opens in a new tab)"
><i class="fab fa-instagram"></i
></a>
</li>
<li>
<a
id="twitter"
href="https://www.twitter.com"
target="_blank"
rel="noopener"
aria-label="Visit our Twitter page(opens in a new tab)"
><i class="fab fa-twitter"></i
></a>
</li>
<li>
<a
id="youtube"
href="https://www.youtube.com"
target="_blank"
rel="noopener"
aria-label="Visit our Youtube page(opens in a new tab)"
><i class="fab fa-youtube"></i
></a>
</li>
</ul>
</div>
<!-- What was project created for information and by whom -->
<div class="project-links">
<p>
Created as a project for
<a
id="codeinstitute"
href="https://codeinstitute.net/ie/"
target="_blank"
rel="noopener"
aria-label="Check out Code Institute page(opens in a new tab)"
>
Code Institute
</a>
by
<a
id="my-name"
href="https://www.linkedin.com/in/luka-black-lb96/"
target="_blank"
rel="noopener"
aria-label="You can find me on my LinkedIn page(opens in a new tab)"
>
Luka Black</a
>
</p>
</div>
</footer>
<!-- Font awesome kit import -->
<script
src="https://kit.fontawesome.com/eb70536764.js"
crossorigin="anonymous"
></script>
<!-- Connecting external javascript -->
<script src="assets/javascript/script.js"></script>
</body>
</html>