-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaderboard.html
157 lines (133 loc) · 5.91 KB
/
leaderboard.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link
href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,900&display=swap"
rel="stylesheet">
<!-- Bootstrap -->
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous"> -->
<link rel="stylesheet" href="./css/test.css">
<link rel="stylesheet" href="./css/side-bar.css">
<link rel="stylesheet" href="./css/leaderboard.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style2.css">
<link rel="stylesheet" href="./css/loading.css">
<link rel="stylesheet" href="./css/quiz-info-card.css">
<link rel="stylesheet" href="./css/responsive/header.css">
<title>Leaderboard - Quizizz</title>
</head>
<body>
<div class="loader-wrapper">
<span class="loader"><span class="loader-inner"></span></span>
</div>
<header class="main-header">
<div class="top-header">
<div class="top-header-box">
<div class="menu-bar fas fa-bars">
</div>
<div class="logo"><a href="./main.html">Quizz</a></div>
<form id="search">
<input type="search" class="search-data" placeholder="Search..." id="search-bar" name="search"
required>
<button type="submit" class="fas fa-search"></button>
</form>
<div class="tray">
<a class="join-game-btn">Enter Code</a>
</div>
</div>
</div>
</header>
<div id="main">
<nav class="main-navigation mt-5">
<div class="main-navigation-inner">
</div>
</nav>
<article class="mt-5 article">
<div class="page-inner">
<div class="view-container">
<div class="listing-header">
<div class="filter-wrapper">
<div class="dropdown">
<button class="dropbtn d-flex justify-content-between align-items-center">Quiz name <i
class="fas fa-caret-down"></i></button>
<div class="dropdown-content">
</div>
</div>
</div>
<div id="quiz-title">ABC DEF</div>
</div>
<table>
<thead class="table-head">
<tr class="table-head-list">
<th class="col-1">No.</th>
<th class="col-2">Participant's name</th>
<th class="col-3">Score</th>
<th class="col-4">Accuracy</th>
<th class="col-5"></th>
<th class="col-6">Time</th>
</tr>
</thead>
<tbody id="table-body" class="table-body">
</tbody>
</table>
</div>
</div>
</article>
</div>
<script>
const btn = document.querySelector('.dropbtn');
const content = document.querySelector('.dropdown-content');
btn.addEventListener('click', () => {
if (content.classList.contains('show')) {
content.classList.remove('show');
} else {
content.classList.add('show');
}
})
</script>
</body>
<script src="https://www.gstatic.com/firebasejs/8.9.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.9.1/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.0.0/firebase-auth.js"></script>
<script>
// Your first web app's Firebase configuration: Auth
var firebaseConfig = {
apiKey: "AIzaSyB0vfv8ALEMBtssF8V0VPvTCLG4wYWHp3k",
authDomain: "quizzz-df723.firebaseapp.com",
projectId: "quizzz-df723",
storageBucket: "quizzz-df723.appspot.com",
messagingSenderId: "752429225308",
appId: "1:752429225308:web:261e48e8992615b35add99",
measurementId: "G-VR58GF5XCG"
};
// Your second web app's Firebase configuration: Data
const secondFirebaseConfig = {
apiKey: "AIzaSyBl9UJGF3wXsZBghJqXvEalhZIMWZFsNXU",
authDomain: "quizapp-965ab.firebaseapp.com",
projectId: "quizapp-965ab",
storageBucket: "quizapp-965ab.appspot.com",
messagingSenderId: "911742713047",
appId: "1:911742713047:web:0ca805430894d72ece8492"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
// Initialize Firebase
let secondaryApp = firebase.initializeApp(secondFirebaseConfig, "secondary");
let db = secondaryApp.firestore();
</script>
<!-- Thu vien sweet alert -->
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="module" src="./js/user-info.js"></script>
<script type="module" src="./js/leaderboard.js"></script>
<script src="./js/loading.js"></script>
<script type="module" src="./js/entercode.js"></script>
</html>