-
Notifications
You must be signed in to change notification settings - Fork 0
/
student-quiz.html
92 lines (77 loc) · 3.7 KB
/
student-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
<!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>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Animate CSS-->
<link rel="stylesheet" href="https://raw.githubusercontent.com/daneden/animate.css/master/animate.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-2/css/all.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.20.0/firebase-database.js"></script>
<!-- link for spinner -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyD2NHnCMKq75vuFIdzwY_3eDZlfzPorbV0",
authDomain: "mynewmain-b15f0.firebaseapp.com",
databaseURL: "https://mynewmain-b15f0-default-rtdb.asia-southeast1.firebasedatabase.app",
projectId: "mynewmain-b15f0",
storageBucket: "mynewmain-b15f0.appspot.com",
messagingSenderId: "1045380132876",
appId: "1:1045380132876:web:a6aa3460d5b72020da7e29",
measurementId: "G-5PT4Z3YG3P"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script defer src="app.js"></script>
</head>
<body>
<div id="mainDiv">
<div id="loaderDiv">
<div id="loader" class="spinner-border"></div>
</div>
<!-- ==================Admin Panel================ -->
<div id="mainPanel" style="display: none;">
<div id="panelInner">
<div id="header">
<h3>Questions</h3>
</div>
<div id="questionsBody">
<ul id="questionsUl">
</ul>
<button class="btn btn-danger homeBtn" onclick="homePage()">Done</button>
</div>
<div id="addBtnDiv">
<button id="addBtn" class="btn btn-success fa fa-plus" onclick="addQuestion()"></button>
<button id="delAllBtn" class="btn btn-danger fa fa-trash" onclick="dellAll()"></button>
</div>
</div>
</div>
<!-- ==================Home Page================ -->
<button class="btn btn-success startBtn" id="startBtn" onclick="startQuiz()">Start Quiz</button>
<button class="btn btn-success adminBtn" id="adminBtn" onclick="adminPanel()">Admin Panel</button>
<!-- ==================Quiz Body================ -->
<div id="mainBody" style="display: none;">
<button class="btn btn-danger exitBtn" id="exitBtn" onclick="appendResult()">Finish Quiz</button>
<div id="quiz">
<div id="quizHeader"></div>
<div id="quizBody"></div>
</div>
</div>
</body>
</html>