-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (108 loc) · 4.72 KB
/
Copy pathindex.html
File metadata and controls
115 lines (108 loc) · 4.72 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>code_quiz</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<!-- Container for Header -->
<header class="container-fluid mb-5">
<!-- div for scores link and time -->
<div class="row">
<!-- View highscores -->
<div class="col-6">
<!-- <a href="">View Highscores</a> -->
<button id="view-scores" type="button" class="btn btn-secondary d-inline-block mt-1">View High Scores</button>
</div>
<!-- Timer -->
<div class="col-6">
<p class="d-flex justify-content-end time">Time:75s</p>
</div>
</div>
</header>
<!-- Main Content -->
<main>
<div class="container">
<section id="introduction">
<div class="row">
<div class="col-3"></div>
<div class="col-6">
<h1 class="d-flex justify-content-center text-center">Welcome to the Javascript Coding Quiz Challenge!</h1>
<p class="d-flex justify-content-center text-center"> Answer the following javascript code questions within the time limit. Keeping in mind that incorrect answers will penalize your score/time by ten seconds!</p>
<button id="start" type="button" class="btn btn-success mx-auto d-block">Start Quiz</button></p>
</div>
</div>
</section>
</section>
<!-- Section for Question and Answers // Show upon Start-->
<!-- Section for Question and Answers // Show upon Start-->
<section id="questions">
<div class="row">
<div class="col-3"></div>
<div class="col-6">
<h2 id="question"> Question</h2>
<ul class="px-0 py-0 nobullets">
<li class="mb-3"><button id="answer1" value="0" type="button"
class="btn btn-success ansBtn">Answer1</button></li>
<li class="mb-3"><button id="answer2" value="1" type="button"
class="btn btn-success ansBtn">Answer2</button></li>
<li class="mb-3"><button id="answer3" value="2" type="button"
class="btn btn-success ansBtn">Answer3</button></li>
<li class="mb-3"><button id="answer4" value="3" type="button"
class="btn btn-success ansBtn">Answer4</button></li>
</ul>
<div id="yaynay" class="font-weight-light font-italic">
<hr>
<!-- Correct or Wrong will be added via JS -->
</div>
</div>
</div>
</section>
<section id="final">
<div class="row">
<div class="col-3"></div>
<div class="col-6">
<h2>Well done!</h2>
<p>Your final score is: <span id="score" class="pl-1">0</span></p>
<!-- <p class="score">Your final score is: </p> -->
<p>Enter initials: <span class="ml-1"><input placeholder="initials" id="initials" /></span>
<button id="submit-score" class="btn btn-success mx-1 my-1 d-inline-block">Submit</button>
</p>
</div>
</div>
</section>
<!-- Section for High Scores -->
<section id="highscores">
<div class="row">
<div class="col-3"></div>
<div class="col-6">
<h2>High Scores</h2>
<!-- High scores should be added as a sorted desc list -->
<ol id="score-list">
<!-- <li></li> -->
</ol>
<button id="goback" class="btn btn-success d-inline-block mx-1 my-1">Go back</button>
<button id="clearscores" class="btn btn-success mx-1 my-1 d-inline-block">Clear scores</button>
</div>
</div>
</section>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="script.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
</body>
</html>