-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (100 loc) · 4.97 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
<!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>
<link rel="shortcut icon" href="./images/icon.png" type="image/x-icon">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
</head>
<body>
<header>
<p class="counter" id="counter"></p>
</header>
<main class="conatiner">
<div class="alert-outer row">
<div class="alert_inner col-lg-8 col-md-6 col-sm-12 text-center">
<h2 class="title text-center" id="title"></h2>
<div class="message">
<h4 id="message"></h4>
</div>
<!-- Initial Screen Pre-Quiz -->
<div class="single-but" id="single-but">
<p id="instructions" class="text-justify">
. if you answered a question incorrectly, 30
seconds will be
deducted from the countdown timer at upper right corner of the screen.
<ul class="text-left">
<li id="bullet_1"> </li>
<li> Quiz ends when you have answered all the questions or countdown timer reaches zero.</li>
<li> After you finish, you can choose to add your name to <strong>Hall of Fame</strong> and/or
re-start the quiz.</li>
</ul>
<em><strong><u> Note:</u></strong> </em>The questions and choices will be shuffled every time you
play.
</p>
<a href="#" class="but-1 btn btn-primary btn-lg" id="single">Start</a>
</div>
<!-- Initial Screen End -->
<!-- End Screen- After Quiz -->
<div class="double-but" id="double-but">
<h5>Would you like to add your name to the hall of fame?</h5>
<label for="your_name">Name :</label>
<input type="text" name="" id="your_name">
<a href="#" class="but-1 btn btn-primary btn-lg" id="double-1">Save</a>
<a href="#" class="but-1 btn btn-primary btn-lg" id="double-2">Restart Quiz</a>
</div>
<!-- End Screen End -->
<!-- Multiple choices -->
<div class="double-but-2" id="double-but-2">
<a href="#" class="but-1 btn btn-primary btn-lg mx-auto" id="four-1">1</a>
<a href="#" class="but-1 btn btn-primary btn-lg" id="four-2">2</a>
<a href="#" class="but-1 btn btn-primary btn-lg" id="four-3">3</a>
<a href="#" class="but-1 btn btn-primary btn-lg" id="four-4">4</a>
</div>
<!-- End of Multiple Choices -->
</div>
<div class=" col-lg-4 col-md-6 col-sm-12">
<!-- Display image -->
<div class="row image-holder">
<img src="./images/quiz.png" alt="quiz" id="image" class="img-fluid rounded mx-auto d-block">
</div>
<!-- Hall of Fame -->
<div class="hall-of-fame">
<div class="row">
<h2 class="col-12 text-center">Hall of Fame</h2>
</div>
<div class="row ">
<div class="col-6 text-center">
<h4>Name</h4>
<ul id="fame-name">
</ul>
</div>
<div class="col-6 text-center">
<h4>Score</h4>
<ul id="fame-score">
</ul>
</div>
</div>
</div>
<!-- End of Hall of fame -->
</div>
</div>
</main>
<footer>
Copyright © 2020 Designed and developed by <a href="mailto:tonymelek.au@gmail.com">Tony Melek</a>
</footer>
<script src="./script.js"></script>
<!-- Bootstrap CDN JS -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
</body>
</html>