-
Notifications
You must be signed in to change notification settings - Fork 1
/
quiz.html
160 lines (132 loc) · 6.3 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
<!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">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.1/css/all.css" integrity="sha384-vp86vTRFVJgpjF9jiIGPEEqYqlDwgyBgEF109VFjmqGmIY/Y4HV4d3Gp2irVfcrp" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css2?family=Rubik&display=swap" rel="stylesheet">
<!-- <link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
/> -->
<link rel="stylesheet" href="./assets/css/quiz.css" />
<link rel="icon" href="./images/favicon.png">
<title>Space Exploring</title>
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark customNav">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarCollapse">
<ul class="navbar-nav justify-content-end">
<li class="nav-item active">
<a class="nav-link" href="index.html">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="learning-space.html">Learning Space<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="mars-rovers.html">Mars Images<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="quiz.html">Quiz<span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
</nav>
</header>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<div class="head">
<div class="scores">
<!-- <a href="index.html">Home</a> -->
<a href="highscores.html">Ranking</a>
</div>
<div class="timer" style="color: black;"><i class="fas fa-stopwatch beat" style="font-size: 25px;"></i> : <span id="time">60</span></div>
</div>
<!-- <div class="scores">
<a href="index.html">Home</a>
<a href="highscores.html">Ranking</a>
</div>
<div class="timer" style="color: white;"><i class="fas fa-stopwatch beat" style="font-size: 25px;"></i> : <span id="time">60</span></div> -->
<div class="wrapper">
<div id="start-screen" class="start">
<h1> Take a quiz <i class="fas fa-rocket " style="line-height: 140px; font-size: 50px; color: rgb(6, 6, 6);"></i></h1>
<i class="fa-thin fa-rocket-launch"></i>
<p>
Try to answer the following code-related questions within the time
limit. Keep in mind that incorrect answers will penalize your
score/time by five seconds!
</p>
<button id="start">Start Quiz</button>
</div>
<div id="questions" class="hide">
<h2 id="question-title"></h2>
<div id="choices" class="choices"></div>
</div>
<div id="questions" class="hide">
<h2 id="question-title">Mateus2 </h2>
<div id="choices" class="choices"></div>
</div>
<div id="end-screen" class="hide">
<h2>All done!</h2>
<p>Your final score is <span id="final-score"></span>.</p>
<p>
Enter initials: <input type="text" id="initials" max="3" />
<button id="submit">Submit</button>
</p>
</div>
<div id="feedback" class="feedback hide"></div>
</div>
<audio id="right-audio" src="./assets/audio/correct.wav"></audio>
<audio id="wrong-audio" src="./assets/audio/incorrect.wav"></audio>
</div>
</div>
<!-- <div class="scores">
<a href="index.html">Home</a>
<a href="highscores.html">Ranking</a>
</div>
<div class="timer">Time: <span id="time">60</span></div>
<div class="wrapper">
<div id="start-screen" class="start">
<h1> Take a quiz <i class="fas fa-rocket " style="line-height: 140px; font-size: 50px; color: rgb(255, 255, 255);"></i></h1>
<i class="fa-thin fa-rocket-launch"></i>
<p>
Try to answer the following code-related questions within the time
limit. Keep in mind that incorrect answers will penalize your
score/time by five seconds!
</p>
<button id="start">Start Quiz</button>
</div>
<div id="questions" class="hide">
<h2 id="question-title"></h2>
<div id="choices" class="choices"></div>
</div>
<div id="questions" class="hide">
<h2 id="question-title">Mateus2 </h2>
<div id="choices" class="choices"></div>
</div>
<div id="end-screen" class="hide">
<h2>All done!</h2>
<p>Your final score is <span id="final-score"></span>.</p>
<p>
Enter initials: <input type="text" id="initials" max="3" />
<button id="submit">Submit</button>
</p>
</div>
<div id="feedback" class="feedback hide"></div>
</div>
<audio id="right-audio" src="./assets/audio/correct.wav"></audio>
<audio id="wrong-audio" src="./assets/audio/incorrect.wav"></audio> -->
<!-- Moment.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<!-- jQuery -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="assets/js/quiz-page.js"></script>
</body>
</html>