-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
137 lines (125 loc) · 5.25 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
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
<!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">
<title>Code For Your Life</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./Assets/CSS/style.css"/>
</head>
<body>
<!-- Container -->
<div class="container">
<!-- Header -->
<header class="col text-center p-4 fs-1">
<h1>Code For Your Life</h1>
</header>
<!-- Highscores -->
<section class="modal fade" id="staticBackdrop" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h2 class="modal-title" id="staticBackdropLabel">
Highscores
</h2>
<button type="button" class="btn-close" data-dismiss="modal" aria-label="Close">
</button>
</div>
<div class="modal-body">
<ul class="list-group" id="highScoresList"></ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="resetHighscoresBtn">Reset Highscores</button>
</div>
</div>
</div>
</section>
<!-- The Main Card -->
<section class="card">
<!-- Card Header -->
<section class="card-header pt-0 pb-0">
<div class="row row-cols-2">
<div class="col">
<!-- Button trigger using Bootstrap modal -->
<a style="text-decoration: none; "id="viewHighscores" data-toggle="modal" data-target="#staticBackdrop" href="#">View Highscores</a>
</div>
<div class="col text-right">
<p class="mb-0" id="timeP"> Available Time <strong><span id="spanTime"></span></strong>
</p>
</div>
</div>
</section>
<!-- Card Body -->
<section class="card-body">
<!-- Quiz Introduction -->
<section class="card bg-info" id="introduction">
<div class="text-center mt-3 text-dark">
<h3 class="card-title fs-2 text">Coding Quiz</h3>
<p class="card-text text-dark">
Challenge: Answer the code questions to help practice the fundamentals of front end development.
</p>
<p class="card-text text-dark">
Wrong answers will result in a time penalty.
</p>
<p class="card-text text-dark">Now - CODE FOR YOUR LIFE</p>
</div>
</section>
<a href="#" class="btn btn-primary" id="startBtn">Start Quiz</a>
<!-- Quiz -->
<section id="quiz">
<h5 id="question">Question Here</h5>
<div class="row row-cols-1">
<div class="col">
<div class="list-group mb-4" id="answers"></div>
</div>
</div>
</section>
<!-- Once quiz has completed the below section is revealed -->
<section id="allDone">
<div class="alert alert-success mt-0 mb-0">
<h4 class="alert-heading text-center">Quiz Finished</h4>
<hr />
<h5 class="mb-0 text-center">Final Score<span id="finalScore">xx</span></h5>
<hr />
<form class="form-inline">
<input class="form-control mr-2" type="text" id="initials" placeholder="Enter Your Initials"/>
<button type="submit" class="btn btn-info" id="submit"> Submit </button>
</form>
</div>
</section>
</section>
<!-- Card Footer -->
<div class="card-footer text-muted p-0">
<div class="progress" style="height: 100%;">
<div class="progress-bar bg-info progress-bar-striped progress-bar-animated" style="width: 0%; height: 100%;"></div>
</div>
<div class="alert alert-success mt-0 mb-0 pt-0 pb-0" id="assess-ft">
</div>
</div>
</section>
</div>
<!-- jQuery -->
<script
src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"
></script>
<!-- Popper -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"
></script>
<!-- Bootstrap -->
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"
></script>
<!-- JavaScript -->
<script src="./Assets/JavaScript/questions.js"></script>
<script src="./Assets/JavaScript/script.js"></script>
</body>
</html>