-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathShowData.html
More file actions
167 lines (125 loc) · 5.25 KB
/
ShowData.html
File metadata and controls
167 lines (125 loc) · 5.25 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- add icon link -->
<link rel = "icon" href =
"Images/logo.ico"
type = "image/x-icon">
<link rel="stylesheet" href="ShowData.css">
<title>Admin</title>
<link href="https://fonts.googleapis.com/css2?family=Alata&display=swap" rel="stylesheet">
<style>
#print
{
font-size: 30px;
color: rgb(8, 34, 56);
width:auto;
font-family:sans-serif;
margin: 0 auto;
border-radius: 10px;
background-color: rgb(253, 253, 253);
}
#print:hover
{
background-color: rgb(7, 68, 31);
color: rgb(228, 227, 241);
transition: 1s cubic-bezier(0.23, 1, 0.320, 1);
}
</style>
</head>
<body>
<div style="width: fit-content;" id="user_div" class="loggedin-div">
<h1 style="color: bisque; font-size: 30px;">Welcome to Shaur Educational Complex</h1>
<p style="color: #238028; font-size: 25px;" id="user_para">Welcome to Firebase web login Example. You're currently
logged in.</p>
<div class="alert">Your message has been sent</div>
<!-- sdafasdfsdfklsddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd -->
<div>Data for Quiz App</div>
<h1 id="clas" style="color: rgb(10, 32, 90); font-size: 30px;"></h1>
<h2 id="sub" style="color: rgb(182, 238, 199);font-size: 30px;"></h2>
<br>
<button id="print" onclick="window.print()">Print Or Save</button>
<div style="background:transparent;">
<ol id="list">
</ol>
</div>
<br>
<!-- dddddsfasdddddfsddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd -->
<button id="deleteAll" onclick="deleteAll()">DELETE ALL</button>
<button id="print" onclick="window.print()">Print Or Save</button>
<h1 id="ED"></h1>
<input type="button" onclick="disableQuiz()" style="color: red;" value="Disable" id="disable">
<input type="button" style="color: green;" onclick="enableQuiz()" value="Enable" id="enable">
<!-- </form> -->
<button style="text-align: center; width: 200px; font-size: 20px;" onclick="logout()">Logout</button>
</div>
<div id="login_div" class="main-div">
<img src="Images/logo.ico" style="text-align: center; position: relative; text-align: center; margin-top: 20px;"
width="100px" height="100px" alt="">
<h2
style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif; color: aliceblue; width: 100%; font-size: 30px;">
Shaur Educational Complex</h2>
<input type="email" placeholder="Email..." id="email_field" />
<input type="password" placeholder="Password..." id="password_field" />
<button style="width: 100px; margin-left: 100px; font-size: 20px;" onclick="login()">Login</button>
</div>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-auth.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
apiKey: "AIzaSyBmQfYy_p1y5A-0tzCeZDPlPJume7YwYPU",
authDomain: "quizappfirebases.firebaseapp.com",
databaseURL: "https://quizappfirebases.firebaseio.com",
projectId: "quizappfirebases",
storageBucket: "quizappfirebases.appspot.com",
messagingSenderId: "985601574561",
appId: "1:985601574561:web:43ac7087ab6fdf51fa92e0",
measurementId: "G-FPVCTWWN6M"
};
// Initialize Firebas
firebase.initializeApp(firebaseConfig);
</script>
<script src="https://www.gstatic.com/firebasejs/7.17.2/firebase-analytics.js"></script>
<!-- modal for input -->
<div id="modal">
<button style="display: flex;justify-content: start; color: aliceblue; background-color: crimson; font-size: 20px;" onclick="cancel()">Minimize</button>
<p style="min-width: 100%; font-size: 25px; color:black;"><b>Note: </b>You can now drag it where you want</p>
<span>Enter the updated Question</span><br>
<label for="question">Question: </label>
<input id="question" placeholder="Enter the question" required type="text">
<br>
<!-- answers -->
<label for="option1">Option 1: </label>
<input id="option1" required type="text">
<br>
<label for="option2">Option 2: </label>
<input id="option2" required type="text">
<br>
<label for="option3">Option 3: </label>
<input id="option3" required type="text">
<br>
<label for="option4">Option 4: </label>
<input id="option4" required type="text">
<br>
<label for="answer" style="color: rgb(224, 38, 38);">Answer: </label>
<input id="answer" required placeholder="Enter the right answer" type="text">
<br>
<!-- answers -->
<input type="submit" onclick="modal()" id="submit">
<button id="cancel" onclick="cancel()">Cancel</button>
</div>
<!-- modal for input -->
</body>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$( function() {
$("#modal").draggable();
} );
</script>
<script src="ShowData.js"></script>
</html>