-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathquiz.html
314 lines (271 loc) · 12.3 KB
/
quiz.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Template Mo">
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<link rel = "icon" href = "coverimage.png"
type = "image/x-icon">
<title>IRIS-Quiz Page</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Additional CSS Files -->
<link rel="stylesheet" href="quiz.css">
<link rel="stylesheet" href="assets/css/fontawesome.css">
<link rel="stylesheet" href="assets/css/templatemo-edu-meeting.css">
<link rel="stylesheet" href="assets/css/owl.css">
<link rel="stylesheet" href="assets/css/lightbox.css">
<!--
TemplateMo 569 Edu Meeting
https://templatemo.com/tm-569-edu-meeting
-->
</head>
<body>
<!-- Sub Header -->
<div class="sub-header">
<div class="container">
<div class="row">
<div class="col-lg-8 col-sm-8">
<div class="left-content">
<p>This is a<em> Smart Tutor </em>Project made by Sayandip Paul And Arka Mandal For Soft-code Hackathon.</p>
</div>
</div>
<div class="col-lg-4 col-sm-4">
<div class="right-icons">
<ul>
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<!-- ***** Header Area Start ***** -->
<header class="header-area header-sticky">
<div class="container">
<div class="row">
<div class="col-12">
<nav class="main-nav">
<!-- ***** Logo Start ***** -->
<a href="index.html" class="logo">
<span style="color: rgb(10, 226, 255); font-weight: bolder;">IRIS</span>-Smart Tutor
</a>
<!-- ***** Logo End ***** -->
<!-- ***** Menu Start ***** -->
<ul class="nav">
<li ><a href="index.html#top" >Home</a></li>
<li ><a href="index.html#courses">Courses</a></li>
<li><a href="quiz.html" class="active">Quiz/Practice</a></li>
<li ><a href="index.html#apply">Upcoming tasks</a></li>
<!-- <li><a href="chatbot.html">Chatbot</a></li> -->
<li><a href="index.html">Contact Us</a></li>
</ul>
<a class='menu-trigger'>
<span>Menu</span>
</a>
<!-- ***** Menu End ***** -->
</nav>
</div>
</div>
</div>
</header>
<!-- ***** Header Area End ***** -->
<section class="heading-page header-text" id="top">
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2>Welcome </h2>
<h6>To The Quiz Section.Your Subject is <span style="color: rgb(10, 226, 255);font-size: medium; font-weight: bolder;" id="showsub"></span></h6>
</div>
</div>
</div>
</section>
<section class="meetings-page" id="meetings">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="row">
<!-- <div class="col-lg-12">
<div class="meeting-single-item">
<div class="thumb">
<div class="price">
<span>$14.00</span>
</div>
<div class="date">
<h6>Nov <span>12</span></h6>
</div>
<a href="meeting-details.html"><img src="assets/images/single-meeting.jpg" alt=""></a>
</div>
<div class="down-content">
<a href="meeting-details.html"><h4>Online Teaching and Learning Tools</h4></a>
<p>Recreio dos Bandeirantes, Rio de Janeiro - RJ, 22795-008, Brazil</p>
<p class="description">
This is an edu meeting HTML CSS template provided by <a href="https://templatemo.com/" target="_blank" rel="nofollow">TemplateMo website</a>. This is a Bootstrap v5.1.3 layout. If you need more free website templates like this one, please visit our website TemplateMo. Please tell your friends about our website. Thank you. If you want to get the latest collection of HTML CSS templates for your websites, you may visit <a rel="nofollow" href="https://www.toocss.com/" target="_blank">Too CSS website</a>. If you need a working contact form script, please visit <a href="https://templatemo.com/contact" target="_parent">our contact page</a> for more info.
<br><br>You are allowed to use this edu meeting CSS template for your school or university or business. You can feel free to modify or edit this layout. You are not allowed to redistribute the template ZIP file on any other template website. Please contact us for more information.
</p>
<div class="row">
<div class="col-lg-4">
<div class="hours">
<h5>Hours</h5>
<p>Monday - Friday: 07:00 AM - 13:00 PM<br>Saturday- Sunday: 09:00 AM - 15:00 PM</p>
</div>
</div>
<div class="col-lg-4">
<div class="location">
<h5>Location</h5>
<p>Recreio dos Bandeirantes,
<br>Rio de Janeiro - RJ, 22795-008, Brazil</p>
</div>
</div>
<div class="col-lg-4">
<div class="book now">
<h5>Book Now</h5>
<p>010-020-0340<br>090-080-0760</p>
</div>
</div>
<div class="col-lg-12">
<div class="share">
<h5>Share:</h5>
<ul>
<li><a href="#">Facebook</a>,</li>
<li><a href="#">Twitter</a>,</li>
<li><a href="#">Linkedin</a>,</li>
<li><a href="#">Behance</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div> -->
<div class="info_box">
<div class="info-title"><span>Some Rules of this Quiz</span></div>
<div class="info-list">
<div class="info">1. You will have only <span>15 seconds</span> per each question.</div>
<div class="info">2. Once you select your answer, it can't be undone.</div>
<div class="info">3. You can't select any option once time goes off.</div>
<div class="info">4. You can't exit from the Quiz while you're playing.</div>
<div class="info">5. You'll get points on the basis of your correct answers.</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 id="showsub"class="title">
<script>
document.getElementById("showsub").innerHTML=localStorage.getItem("studentsubject");
</script>
</div>
<div class="timer">
<div class="time_left_txt">Time Left</div>
<div class="timer_sec">15</div>
</div>
<div class="time_line"></div>
</header>
<section>
<div class="que_text">
</div>
<div class="option_list">
</div>
</section>
<footer>
<button style="margin-left: 70%;float: right;" class="next_btn">Next Question</button>
<div class="total_que" >
</div>
</footer>
</div>
<!-- Result Box -->
<div class="result_box">
<div class="icon">
<i class="fas fa-crown"></i>
</div>
<div class="complete_text">You've completed the Quiz!</div>
<div class="score_text">
</div>
<div class="buttons">
<button class="restart">Replay Quiz</button>
<button class="quit">Quit Quiz</button>
</div>
</div>
<div class="col-lg-12">
<div class="main-button-red">
<!-- <a href="meetings.html">Back To Meetings List</a> -->
<!-- <a><div class ><button style="background: none;" ></button></div></a> -->
</div>
</div>
<button class="btn btn-danger" id="start_btn1" style="width: 60%;margin:auto;border-radius: 20px;height:50px;">Start Quiz</button>
</div>
</div>
</div>
</div>
<div class="footer">
<p>Made this website for hackathon by Sayandip paul and Arka mandal.
<!-- <br>Design: <a href="https://templatemo.com" target="_parent" title="free css templates">TemplateMo</a></p> -->
</div>
</section>
<script src="./quiz.js"></script>
<!-- FontAweome CDN Link for Icons -->
<!--
<script src="./a076d05399.js"></script>
-->
<!-- Scripts -->
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/js/isotope.min.js"></script>
<script src="assets/js/owl-carousel.js"></script>
<script src="assets/js/lightbox.js"></script>
<script src="assets/js/tabs.js"></script>
<script src="assets/js/video.js"></script>
<script src="assets/js/slick-slider.js"></script>
<script src="assets/js/custom.js"></script>
<script>
//according to loftblog tut
$('.nav li:first').addClass('active');
var showSection = function showSection(section, isAnimate) {
var
direction = section.replace(/#/, ''),
reqSection = $('.section').filter('[data-section="' + direction + '"]'),
reqSectionPos = reqSection.offset().top - 0;
if (isAnimate) {
$('body, html').animate({
scrollTop: reqSectionPos },
800);
} else {
$('body, html').scrollTop(reqSectionPos);
}
};
var checkSection = function checkSection() {
$('.section').each(function () {
var
$this = $(this),
topEdge = $this.offset().top - 80,
bottomEdge = topEdge + $this.height(),
wScroll = $(window).scrollTop();
if (topEdge < wScroll && bottomEdge > wScroll) {
var
currentId = $this.data('section'),
reqLink = $('a').filter('[href*=\\#' + currentId + ']');
reqLink.closest('li').addClass('active').
siblings().removeClass('active');
}
});
};
$('.main-menu, .responsive-menu, .scroll-to-section').on('click', 'a', function (e) {
e.preventDefault();
showSection($(this).attr('href'), true);
});
$(window).scroll(function () {
checkSection();
});
</script>
</body>
</body>
</html>