-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquiz.html
347 lines (276 loc) · 15.4 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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Quizzes</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="shortcut icon" href="img/logo.jpg" type="image/x-icon">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/f67b44a4a4.js" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito&family=Ubuntu&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Dancing+Script:wght@700&family=Josefin+Sans:wght@300;400&family=Kalam:wght@700&display=swap"
rel="stylesheet">
<!-- custom css -->
<link rel="stylesheet" href="css/style2.css">
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
</head>
<body>
<section id="top">
<section id="0ne">
<div class="first" data-aos="fade-right" data-aos-duration="1300">
<nav class="navbar navbar-expand-lg navbar-light border border-1 rounded-3">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="img/logo.jpg" alt="" width="60" height="60"
class="d-inline-block bran text-centre">
<span class="head1">Educa</span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse v" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0 ms-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page"
href="index.html"><span>Home</span></a>
</li>
<li class="nav-item">
<a style="text-decoration:none" class="nav-link active" aria-current="page"
href="about.html"><span>About</a></span></a>
</li>
<li class="nav-item">
<a style="text-decoration:none" class="nav-link active" aria-current="page"
href="course.html"><span>Course</span></a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle nav-drop" href="#" id="navbarDropdown"
role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Pages
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="about.html">About</a>
<a class="dropdown-item" href="cours
.html">Courses</a>
<a class="dropdown-item" href="quiz.html">Quizzes</a>
<a class="dropdown-item" href="#">Contact Us</a>
</div>
</li>
</ul>
</div>
</div>
<input type="submit" value="Logout" id="logoutbutton" name="login" class="btn btn-lg btn-dark btn2">
<br><br>
</nav>
</div>
<!----endnavbar----->
<!--home-->
<section id="second">
<div data-aos="zoom-in-up" data-aos-duration="1300" class="head">
<p>QUIZZES</p>
</div>
</section>
</section>
<!-- Search -->
<!--
<div class="search">
<div class="icon">
<div class="input">
<input type="text" placeholder="Search" id="mySearch">
</div>
</div>
</div> -->
<!-- the cards start here -->
<section id="third">
<div class="container-fluid">
<div class="row">
<div class="course-column col-lg-4 col-md-6 col-sm-12" data-aos="fade-down-right" data-aos-duration="1300">
<div class="card course-card">
<img src="https://www.skillrary.com/uploads/updatedimages/883_small.png" class="cardimg"
alt="...">
<div class="card-body">
<h5 class="card-title" style="text-align: center;">Data Structures</h5>
<button type="button" class="btn btn-success btn-cs"><a href="quiz2.html"
target="_blank" class="btn-ca">Take a Quiz</a>
</button>
</div>
</div>
</div>
<div class="course-column col-lg-4 col-md-6 col-sm-12" data-aos="fade-down" data-aos-duration="1300">
<div class="card course-card">
<img src="https://cdnp1.stackassets.com/6f0eada10618e91bf5b6a3433c682b150c5e0f16/store/opt/596/447/08a4e89ed5aec1ae381b1bc9d2f0733bf0a24a38bbf4e283de50b9b90758/product_16033_product_shots1_image.jpg"
class="cardimg" alt="...">
<div class="card-body">
<h5 class="card-title" style="text-align: center;">C Language</h5>
<button type="button" class="btn btn-success btn-cs"><a href="quiz1.html"
target="_blank" class="btn-ca">Take a Quiz</a> </button>
</div>
</div>
</div>
<div class="course-column col-lg-4 col-md-6 col-sm-12" data-aos="fade-down-left" data-aos-duration="1300">
<div class="card course-card">
<img src="https://img.freepik.com/premium-photo/java-logo-is-displayed-smartphone_68852-34.jpg?w=2000"
class="cardimg" alt="...">
<div class="card-body">
<h5 class="card-title" style="text-align: center;">Java Language</h5>
<button type="button" class="btn btn-success btn-cs"><a href="quiz3.html"
target="_blank" class="btn-ca">Take a Quiz</a>
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!------courses---->
<!-- Button trigger modal -->
<!------footer----->
<section id="fourth">
<footer class="footer pt-5 pb-4">
<div class="container text-center text-md-left" data-aos="zoom-out-up" data-aos-duration="1500">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6">
<span class="foot-head">Educa</span>
<i class="fa-solid fa-envelope"></i>
<p class="mail">[email protected]</p>
<i class="fa-sharp fa-solid fa-phone-volume"></i>
<p class="number">1234567890</p>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<strong>
<p class="fs-2 text-success">Category</p>
</strong>
<p>
<a href="" class="text-d" style="text-decoration: none">Creative Writing</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Film and Video</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Graphic Design</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">UI/UX Design</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Marketing</a>
</p>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<strong>
<p class="fs-2 text-success">Quick Links</p>
</strong>
<p>
<a href="" class="text-d" style="text-decoration: none">Privacy Policy</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Discussion</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Terms and Conditions</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Customer Support</a>
</p>
<p>
<a href="" class="text-d" style="text-decoration: none">Course FAQ's</a>
</p>
</div>
<div class="col-lg-3 col-md-4 col-sm-6">
<strong>
<p class="fs-2 text-success">Subscribe</p>
</strong>
<p>Lorem Ipsum has been them an industry printer took a galley make book.</p>
</div>
</div>
<hr noshade>
<div class="">
<div>
<h3 class="text-f">Made With Love By <span class="text-success"><strong>TEAM
EDUCA</strong></span></h3>
</div>
<div>
<h3 class="text-foot">2022 <strong>EDUCA<span class="text-success"></span></strong>
</div>
</div>
</div>
</footer>
</section>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF"
crossorigin="anonymous"></script>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-app.js";
import { getDatabase, set, ref, update } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-database.js";
import { getAuth, createUserWithEmailAndPassword, signInWithEmailAndPassword, onAuthStateChanged, signOut } from "https://www.gstatic.com/firebasejs/9.14.0/firebase-auth.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyBNRJhCkfW98nyC8-Xb-sA1Lyjc2bKH3eM",
authDomain: "educa-f2691.firebaseapp.com",
databaseURL: "https://educa-f2691-default-rtdb.firebaseio.com",
projectId: "educa-f2691",
storageBucket: "educa-f2691.appspot.com",
messagingSenderId: "194183939022",
appId: "1:194183939022:web:f5bd22cf3e3c32c48c619f"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const database = getDatabase(app);
const auth = getAuth();
const user = auth.currentUser;
onAuthStateChanged(auth, (user) => {
if (user) {
// User is signed in, see docs for a list of available properties
// https://firebase.google.com/docs/reference/js/firebase.User
const uid = user.uid;
console.log(user);
// ...
} else {
// User is signed out
// ...
}
});
logoutbutton.addEventListener('click', (e) => {
signOut(auth).then(() => {
// Sign-out successful.
window.open('index.html','_self');
console.log('user logged out')
}).catch((error) => {
// An error happened.
const errorCode = error.code;
const errorMessage = error.message;
alert('errorMessage');
});
})
</script>
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
AOS.init();
</script>
</body>
</html>