-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (84 loc) · 4.21 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="assets/css/reset.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<title>Code Quiz</title>
</head>
<body>
<!-- Header -->
<div class="container mt-5">
<div class="row">
<div class="col-md-4 h2" id="viewHScores">View Highscores</div>
<div class="col-md-2 ml-auto h2">Time: <span id="timer">0</span></div>
</div>
</div>
<!-- end header -->
<!-- jumbotron -->
<div class="container mt-3">
<div class="jumbotron jumbotron-fluid text-center">
<!-- welcome -->
<div class="container" id="welcome">
<h1 class="h1 mb-4">Coding Quiz Challenge</h1>
<p class="lead mb-4">Try to answer the following code-related questions with the time limit. Keep in
mind
that incorrect answers will penalize your scoretime by ten seconds!</p>
<button type="button" class="btn btn-primary btn-lg" id="startQuiz">Start Quiz</button>
</div>
<!-- quiz -->
<div class="container" id="quiz">
<h1 class="h1 mb-4" id="question"></h1>
<div class="container" id="answers">
<div class="row">
<button type="button" class="btn btn-primary btn-lg btn-block mb-3 text-left" id="0"></button>
</div>
<div class="row">
<button type="button" class="btn btn-primary btn-lg btn-block mb-3 text-left" id="1"></button>
</div>
<div class="row">
<button type="button" class="btn btn-primary btn-lg btn-block mb-3 text-left" id="2"></button>
</div>
<div class="row">
<button type="button" class="btn btn-primary btn-lg btn-block mb-3 text-left" id="3"></button>
</div>
</div>
</div>
<!-- input high scores -->
<div class="container" id="inputScore">
<h1 class="h1 mb-4">All done!</h1>
<p class="lead mb-4">Your final score: <span id="score"></span></p>
<p class="lead mb-4">Enter initials: <input type="text " id="initials"></p>
<button type="button" class="btn btn-primary btn-lg" id="submitInitials">Submit</button>
</div>
<!-- view high scores -->
<div class="container" id="highScores">
<h1 class="h1 mb-4 font-weigth-bold">Highscores</h1>
<div class="container h4 mb-4" id="scores">
</div>
<button type="button" class="btn btn-primary btn-lg" id="goBack">Go Back</button>
<button type="button" class="btn btn-primary btn-lg" id="clearScores">Clear Scores</button>
</div>
</div>
</div>
<!-- end jumbotron -->
<!-- JavaScript -->
<script src="assets/js/questions.js"></script>
<script src="assets/js/code-quiz.js"></script>
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
</body>
</html>