-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
85 lines (70 loc) · 3.46 KB
/
index.html
File metadata and controls
85 lines (70 loc) · 3.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel = 'stylesheet' href = './index.css'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<title>Coding Quiz!</title>
</head>
<body>
<div class="alert alert-warning row" role="alert">
<div class = 'col'>
<a href = '' class="alert-link" id = 'view-scores'>View High Scores!</a>
<a href = '' class="alert-link pl-4" id = 'view-scores'>Quiz!</a>
</div>
<div class = 'col'>
<p class = 'text-right' id = 'timer'>75</p>
</div>
</div>
<div class = 'text-center' id = 'description'>
<h1>Coding Quiz</h1>
<p>You will have 75 seconds to complete this 5 question quiz. At the end, you will be able to save your score on our high score page! Press Start to begin.</p>
<button type="button" class="btn btn-outline-warning start" id = "start-button">Start Quiz!</button>
</div>
<div class = 'text-center' style = "display: none;" id = 'question-area'>
<h2 id = 'question-header'></h2>
<button type="button" class="btn btn-outline-warning choice" id = "button1"></button>
<button type="button" class="btn btn-outline-warning choice" id = "button2"></button>
<button type="button" class="btn btn-outline-warning choice" id = "button3"></button>
<button type="button" class="btn btn-outline-warning choice" id = "button4"></button>
</div>
<div class = 'text-center' style = "display: none;" id = 'Score-Page'>
<h1 id = 'High-Score'>Do you want to save your high score?</h1>
<button type="button" class="btn btn-outline-warning choice" id = "yes">Yes</button>
<button type="button" class="btn btn-outline-warning choice" id = "no">No</button>
</div>
<div id = 'high-score-form'>
<form class="form-inline justify-content-center">
<div class="form-group mx-sm-3 mb-2 justify-content-center">
<label for="user-name" class="sr-only">User Name</label>
<input class="form-control" id="user-name" placeholder="Name">
</div>
<button id="save" class="btn btn-outline-warning mb-2">Save</button>
</form>
<div class="col pt-4">
<div class = 'row justify-content-center'>
<div class="card" class="card text-white bg-warning mb-3" style="width: 25rem;">
<div class="card-body">
<h5 class="card-title">Your High Scores!</h5>
<p class="card-text"><strong>Name:</strong> <span id="prev-user"></span></p>
<p class="card-text"><strong>Score:</strong> <span id="prev-scores"></span></p>
</div>
</div>
</div>
</div>
<div class="col pt-4">
<div class = 'row justify-content-center'>
<div class="card" class="card text-white bg-warning mb-3" style="width: 25rem;">
<div class="card-body" id = 'held-scores'>
<h5 class="card-title">High Scores!</h5>
<p class="card-text"><strong></strong> <span id="prev-user"></span></p>
<p class="card-text"><strong></strong> <span id="prev-scores"></span></p>
</div>
</div>
</div>
</div>
</div>
<script src = './script.js'></script>
</body>
</html>