generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
quiz.html
87 lines (72 loc) · 3.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="Quiz me, Sailor!" content="Boat Licence Practice Test">
<link rel="stylesheet" href="assets/css/style.css">
<title>Quiz me Sailor!</title>
<!--favicon links from https://favicon.io/ -->
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
</head>
<body>
<header>
<div class="header-inner">
<img id= "background-image" src="assets/images/logo-welcome-aboard-compressed.jpg" alt="background-image-sailor-salute">
<div class="header-text">
<h1 id="logo">Quiz me Sailor!</h1>
<h1 id="quiz-header">General Boat Licence Practice Test</h1>
</div>
</div>
</header>
<main class="wrapper">
<!-- the container includes the questions and the answers as well as the control button under the answers. -->
<section class="container">
<div class="score">
<span>Score: </span>
<span id= "user-score">0</span>
<span id= "total-score">/ 10</span>
</div>
<div class="content-quiz">
<!-- Questions will be displayed here -->
<div class="quiz-area" id="question-area"></div>
<div id="question-text"></div>
<!-- The four answer options will be displayed here -->
<div class="answer-options">
<button class="btn btn-option" id="answer-a">
<span class="choice-prefix">A.</span>
<span class="choice-text" data-number="1"></span>
</button>
<button class="btn btn-option" id="answer-b">
<span class="choice-prefix">B.</span>
<span class="choice-text" data-number="1"></span>
</button>
<button class="btn btn-option" id="answer-c">
<span class="choice-prefix">C.</span>
<span class="choice-text" data-number="1"></span>
</button>
<button class="btn btn-option" id="answer-d">
<span class="choice-prefix">D.</span>
<span class="choice-text" data-number="1"></span>
</button>
</div>
<!-- The user will have a message confirming what they chose and displaying the correct answer as well -->
<div id="message" class="message"></div>
<!-- Control buttons allow the user to skip a question, end the quiz or restart by being redirected to the home page a.k.a the index -->
<div class="controls">
<form action="index.html">
<button class="btn" type="submit" value="Restart">Restart</button>
</form>
<button class="btn" id="previous">Previous</button>
<button class="btn" id="next">Next</button>
<button class="btn" id="submit">Submit</button>
</div>
</div>
</section>
</main>
<script src="assets/js/script.js"></script>
</body>
</html>