-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayers.html
194 lines (187 loc) · 7.21 KB
/
players.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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<!DOCTYPE html>
<html lang="en" class="dark">
<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>players • mcsr ranked browser</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.2.3/zephyr/bootstrap.min.css"
integrity="sha512-dcTg+pv6j02FTyko5ua8nsnARs/l4u43vmnbeVgkFWB5wdLgfUq4CEotFWOlTE4XK7FfVriWj7BrpqET/a+SJQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.4/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Lexend" />
<link rel="icon" href="./desmos_favicon.png" />
</head>
<style>
.dark:not(td) {
filter: invert(95%) hue-rotate(180deg);
}
html.dark td[style="color: #99EBFF"],
html.dark td[style="color: #FFD700"],
html.dark td[style="color: #E3E3E3"],
html.dark td[style="color: #252525"],
html.dark td[style="color: #55ff00"],
html.dark td[style="color: #ff0055"] {
filter: invert(95%) hue-rotate(180deg) !important;
}
table#stats > tbody > tr > th,
table#stats-2 > tbody > tr > th {
width: 25%;
}
table#matches > tbody > tr > th {
width: 20%;
}
.link {
--bs-text-opacity: 1;
color: rgba(var(--bs-dark-rgb), var(--bs-text-opacity)) !important;
text-decoration: none;
padding: 0 !important;
}
.link:hover {
text-decoration: underline;
}
th {
padding: 1rem;
}
td {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
}
</style>
<body style="font-family: 'Lexend', sans-serif; font-weight: 400">
<header
class="navbar navbar-expand navbar-light border-bottom user-select-none position-fixed w-100 bg-white"
style="z-index: 1; opacity: 90%"
>
<div class="container-fluid" style="width: 95%">
<a href="./" class="navbar-brand nav-link"
><h5 class="my-auto">• mcsr ranked browser</h5></a
>
<ul class="navbar-nav">
<li class="nav-item d-none d-md-block">
<a href="./" class="nav-link text-dark">• leaderboard</a>
</li>
<li class="nav-item d-none d-md-block"
><a href="./players.html" class="nav-link text-dark active">• players</a></li
>
<li class="nav-item d-none d-md-block">
<a href="./matches.html" class="nav-link text-dark">• matches</a>
</li>
<li class="nav-item d-none d-md-block">
<a href="./about.html" class="nav-link text-dark">• about</a>
</li>
<li
class="nav-item"
onclick="document.querySelector('html').classList.toggle('dark'); manageTheme()"
><i class="bi-moon nav-link"></i
></li>
<li class="nav-item dropdown d-block d-md-none">
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown"
><i class="bi-list"></i
></a>
<ul class="dropdown-menu" style="transform: translateX(-50%)">
<li><a href="./" class="dropdown-item text-dark">• leaderboard</a></li>
<li><a href="./players.html" class="dropdown-item text-dark">• players</a></li>
<li><a href="./matches.html" class="dropdown-item text-dark">• matches</a></li>
<li><a href="./about.html" class="dropdown-item text-dark">• about</a></li>
</ul>
</li>
</ul>
</div>
</header>
<div class="container-fluid border-warning" style="width: 95%">
<div class="row">
<div
class="col-12 col-md-10 col-lg-8 col-xl-6 text-center position-absolute start-50 translate-middle-x"
style="margin-top: 5rem"
>
<label for="players">• search players</label>
<input
type="text"
id="players"
placeholder="RED_LIME"
class="text-center form-control text-dark"
list="suggestions"
/>
<datalist id="suggestions"> </datalist>
<button
class="btn btn-dark mt-3"
id="submit"
>• submit</button
>
<div class="card mt-3">
<div class="user-select-none p-2">
<div class="card-body">
<div class="card-title"><h5 id="player-title">• stats for</h5></div
><table class="table border rounded" id="stats">
<tr>
<th>games played</th>
<th>win %</th>
<th>elo</th>
<th>place</th>
</tr>
</table>
<div class="card-title">
<ul class="d-flex justify-content-center my-auto p-0"
><a class="nav-link" id="youtube"><i class="bi-youtube"></i></a
><a class="nav-link ms-2" id="twitch"><i class="bi-twitch"> </i></a
><a class="ms-2 nav-link" id="discord"><i class="bi-discord"></i></a></ul></div
></div>
</div>
<div class="user-select-none p-2">
<div class="card-body">
<div class="card-title"><h5>• player matches:</h5></div>
<table class="table border rounded" id="matches">
<tr>
<th>opp(s)</th>
<th>result</th>
<th>final time</th>
<th>date</th>
<th></th>
</tr>
</table>
<button
class="btn btn-dark w-25 mx-auto"
onclick="getMatches(document.querySelector('#players').value)"
>• show more</button
>
</div>
</div>
<div class="user-select-none p-2"
><div class="card-body"
><canvas style="min-height: 100% !important"></canvas
><div class="card-title mt-3"
><button class="btn btn-dark" onclick="downloadChart()">• download</button></div
></div
>
</div>
</div>
</div>
</div>
</div>
<script src="players.js"></script>
<script>
// const nav = document.querySelector(".navbar");
// window.addEventListener("scroll", () => {
// if (window.pageYOffset > 0) {
// nav.classList.add("shadow-sm");
// } else {
// nav.classList.remove("shadow-sm");
// }
// });
</script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.2.1/dist/chart.umd.min.js"></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe"
crossorigin="anonymous"
></script>
</body>
</html>