-
Notifications
You must be signed in to change notification settings - Fork 0
/
HighScore.html
147 lines (130 loc) · 4.25 KB
/
HighScore.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.css"
integrity="sha512-tx5+1LWHez1QiaXlAyDwzdBTfDjX07GMapQoFTS74wkcPMsI3So0KYmFe6EHZjI8+eSG0ljBlAQc3PQ5BTaZtQ=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="style.css">
<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=Poetsen+One&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="./script/Highscore.js"></script>
<style>
#h1{
color: #d6e9ff;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-size: 40px;
transform: translateY(15px);
}
#table {
border-collapse: collapse;
width: 900px;
border: solid 2px #444c55;
}
#table th{
height: 50px;
font-size: x-large;
font-family: "Poetsen One", sans-serif;
}
#table td, #table th {
padding: 20px;
}
#table tr:nth-child(even){background-color: #666;}
#table tr:hover {background-color: #ddd;
color: black;}
#table th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #2c2e31;
color: #fd4;
}
#overflow::-webkit-scrollbar {
display: none;
}
#overflow {
-ms-overflow-style: none;
scrollbar-width: none;
height: 690px;
overflow-y: auto;
}
@media (max-width:1850px) {
#overflow{
height: 630px;
}
}
@media (max-width:1600px) {
#overflow{
height: 540px;
}
}
body{
max-height: 100vh;
overflow: hidden;
}
</style>
</head>
<body>
<main>
<div class="container-small">
<div class="warning">
WARNING
</div>
<div class="message">
Apologies for the inconvenience! Your current device is not compatible. Stay tuned for future updates. (Try pressing ctrl and - to zoom out if on a computer)
</div>
</div>
<div class="containerH">
<div class="sidebar">
<div class="logo-col">
<p>TypingPanda</p>
<img src="./img/file.png">
</div>
<a href="index.html" class="col">
<i class="fa-solid fa-keyboard"></i>
<p>Practice</p>
</a>
<a href="profile.html" class="col">
<i class="fa-solid fa-chart-simple"></i>
<p>Profile</p>
</a>
<a href="HighScore.html" class="col">
<i class="fa-solid fa-trophy"></i>
<p>Highscore</p>
</a>
<a href="https://github.com/sanjeevs9/TypingGame" target="_blank" class="col">
<i class="fa-regular fa-circle-question"></i>
<p>Info</p>
</a>
</div>
<div style="transform: translateY(-40px);" >
<h1 id="h1">
<i class="fa-solid fa-trophy"></i>HighScore</h1>
<div id="overflow">
<table id="table" class="table">
<thead>
<tr>
<th>#Rank</th>
<th>User</th>
<th>Speed</th>
</tr>
</thead>
<tbody id="output">
<tr style="transform: translate(350px);">
<td>
<div class="loader"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
<script src="./Network.js"></script>
</body>
</html>