-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
93 lines (88 loc) · 3.98 KB
/
game.html
File metadata and controls
93 lines (88 loc) · 3.98 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
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Become a Quizard!</title>
<link rel="stylesheet" href="stylesheets/app.css">
<link rel="stylesheet" href="stylesheets/game.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="icon" href="assets/hat-wizard.svg">
</head>
<body>
<div class="transition transition-circle is-active"></div>
<div id="button-container">
<label>
<input type="checkbox" id="dark-light-check">
<ion-icon name="sunny" class="sun"></ion-icon>
<ion-icon name="moon" class="moon"></ion-icon>
<span class="toggle"></span>
</label>
</div>
<span id="animated-background", class="target-background"></span>
<div class="container">
<div id="loader-container"></div>
<div id="game" class="justify-centre flex-column hidden">
<div id="hud">
<div id="hud-item">
<p class="item-prefix" id="question-number" >
Question
</p>
<div id="progress-bar-container">
<div id="progress-bar-fill"></div>
</div>
</div>
<div id="hud-item">
<p class="item-prefix">
Score
</p>
<h1 class="item-text" id="score">
0
</h1>
</div>
</div>
<h2 id="question">Answer the following question...</h2>
<div class="choice-container">
<p class="choice-label">A</p>
<p class="choice-text" data-number="1">Choice 1!</p>
</div>
<div class="choice-container">
<p class="choice-label">B</p>
<p class="choice-text" data-number="2">Choice 2!</p>
</div>
<div class="choice-container">
<p class="choice-label">C</p>
<p class="choice-text" data-number="3">Choice 3!</p>
</div>
<div class="choice-container">
<p class="choice-label">D</p>
<p class="choice-text" data-number="4">Choice 4!</p>
</div>
<div id="sub-hud">
<div id="sub-hud-item">
<p class="sub-item-prefix">
Question Difficulty
</p>
<h3 class="sub-item-text" id="difficulty">
0
</h3>
</div>
<div id="sub-hud-item">
<p class="sub-item-prefix">
Question Category
</p>
<h3 class="sub-item-text" id="category">
0
</h3>
</div>
</div>
</div>
</div>
<h3 id="error-header" class="hidden">Uh-oh! It seems like there is an error with the API we are getting questions from. Please wait 30 seconds and then refresh.</h3>
<div id="star-layer"></div>
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/game.js"></script>
</body>
</html>