-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
109 lines (103 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quiz App</title>
<!-- plugins -->
<link
rel="stylesheet"
href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"
/>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="fontawesome/css/all.css" />
<link rel="stylesheet" href="responsive.css" />
<link rel="icon" type="image/x-icon" href="images/favicon.ico" />
</head>
<body>
<!-- start Quiz button -->
<div class="container-fluid">
<div class="fr_page">
<h1 class="quiz_txt">Quiz App</h1>
<button type="button" class="start_btn">Start</button>
</div>
<!-- Info Box -->
<div class="info_box">
<div class="info-title"><span>Instructions</span></div>
<div class="info-list">
<div class="info">
1. The quiz contains <b>15</b> questions that are based on
<b>Nigeria's constitution</b>
</div>
<div class="info">
2. There is a <b>20 seconds</b> countdown timer for every questions
which is located at the right top corner,
<b
>once the timer stops, the next question appears automatically.</b
>
</div>
<div class="info">
3.
<b
>On providing answers for each questions, the next question
appears automatically as well.</b
>
</div>
<div class="info">
4. On completion of the quiz, a screen will display for your quiz
score. <b>You are expected to score atleast 50%. </b>
</div>
<div class="info">
5. Once you click on the continue button, your timer starts
counting..
</div>
</div>
<div class="buttons">
<button class="quit">Exit Quiz</button>
<button class="restart">Continue</button>
</div>
</div>
<!-- Quiz Box -->
<div class="quiz_box">
<header>
<div class="title">Do you know the law?</div>
<div class="timer">
<div class="time_left_txt">Timer</div>
<div class="timer_sec"></div>
</div>
<div class="time_line"></div>
</header>
<section>
<div class="que_text">
<!-- Here I've inserted question from JavaScript -->
</div>
<div class="option_list">
<!-- Here I've inserted options from JavaScript -->
</div>
</section>
<!-- footer of Quiz Box -->
<footer>
<div class="total_que">
<!-- Here I've inserted Question Count Number from JavaScript -->
</div>
</footer>
</div>
<!-- Result Box -->
<div class="result_box">
<div class="icon">
<div class="ans_icon"></div>
</div>
<div class="score_text"></div>
<div class="buttons">
<button class="restart">Retake</button>
<button class="quit">Quit</button>
</div>
</div>
</div>
<!-- inserted Questions and Options only -->
<script src="js/questions.js"></script>
<!-- Inside this JavaScript file I've coded all Quiz Codes -->
<script src="js/script.js"></script>
</body>
</html>