-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleaderboard.html
142 lines (134 loc) · 6.04 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
<!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">
<title>RingAbout</title>
<!-- CDNs -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="./assets/CSS/leaderboard.css">
<link rel="stylesheet" href="./assets/CSS/responsive.css">
<style>
.dropspace{
left:-3rem !important;
}
</style>
</head>
<body>
<div class="main-container">
<!-- Logout Modal -->
<div class="modal fade" id="logoutModal" tabindex="-1">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header my-1">
<h5 class="modal-title">LogOut</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h5 id="msglogout"></h5>
<h5 class="text-center mb-3">Are you sure?</h5>
<div class="d-flex justify-content-center">
<button class="btn btn-success mx-2 px-5 logout">Yes</button>
<button class="btn btn-danger mx-2 px-5" class="close" data-dismiss="modal" aria-label="Close">No</button>
</div>
</div>
</div>
</div>
</div>
<!-- navbar -->
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand ml-lg-2 text-white" href="main.html">Ringabout</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<!-- <span class="navbar-toggler-icon"></span> -->
<i class="fas fa-bars open text-white fw-bold"></i>
<i class="fas fa-times close text-white fw-bold"></i>
</button>
<div class="collapse navbar-collapse justify-content-end mr-4" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link text-white" href="main.html">Home</a>
</li>
<li class="nav-item ml-lg-3">
<a class="nav-link" style="color: #b3b3b3" href="leaderboard.html">Leaderboard</a>
</li>
<li class="nav-item ml-lg-3">
<a class="nav-link text-white" href="chatroom.html">Chat</a>
</li>
<li class="nav-item ml-lg-3 dropdown">
<a class="nav-link text-white dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-expanded="false">
Profile
</a>
<div class="dropdown-menu dropspace" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="profile.html">Profile</a>
<a class="dropdown-item" href="#" id="logOut">Log Out</a>
</div>
</li>
</ul>
</div>
</nav>
<!-- leaderboard -->
<div class="leaderboard pt-4 w-100 h-100 d-flex flex-column align-items-center">
<h1 class="text-center">Top Performers</h1>
<div class="pt-5 pb-5">
<table class=" table w-100">
<tr>
<th class="p-3 text-center ">Rank</th>
<th class="p-3 text-center ">Username</th>
<th class="p-3 text-center ">Money Won</th>
</tr>
<tbody class="leaderboarddata">
<tr>
<td class="py-3 rank">1</td>
<td class="py-3 rank-user">Maria Anders</td>
</tr>
<tr>
<td class="py-3 rank">2</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3 rank">3</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3 rank">4</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3 rank">5</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3 rank">6</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3">7</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
<tr>
<td class="py-3">8</td>
<td class="py-3 rank-user">Francisco Chang</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<script>
$('#logOut').on('click',function(){
$('#logoutModal').modal();
});
</script>
</body>
<script type="text/javascript" src="./assets/JS/script.js"></script>
<script type="text/javascript">
getleaderboard();
</script>
</html>