-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatches.html
158 lines (152 loc) · 5.84 KB
/
matches.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
<!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>matches • 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 {
filter: invert(95%) hue-rotate(180deg);
}
td,
th {
width: 33.33%;
}
html.dark td[style="color: #55ff00"],
html.dark td[style="color: #ff0055"] {
filter: invert(95%) hue-rotate(180deg) !important;
}
table#matches th,
table#matches td {
width: 20% !important;
}
.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;
}
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">• players</a></li
>
<li class="nav-item d-none d-md-block">
<a href="./matches.html" class="nav-link text-dark active">• 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" 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="top: 5rem"
><label for="input">• enter a match id</label
><input
type="number"
placeholder="141463"
id="input"
class="form-control text-center text-dark"
/><button
class="btn btn-dark mt-3"
onclick="clearRows(); getMatchInfo(document.querySelector('#input').value)"
>• submit</button
><div class="card mt-3 user-select-none" id="indivi-match"
><div class="card-body"
><div class="card-title text-start"
><h5 id="match-members"></h5
><div class="card-subtitle text-start"><p id="match-info"></p></div></div
><table class="table border rounded"
><tr><th>player</th><th>time</th><th>event</th></tr></table
></div
></div
><div class="card user-select-none mt-3" id="match-display">
<div class="card-body">
<div class="card-title"><h5>• latest matches:</h5></div>
<table class="table border rounded" id="matches">
<tr>
<th>opp(s)</th>
<th>forfeit?</th>
<th>final time</th>
<th>date</th>
<th></th>
</tr>
</table>
<button class="btn btn-dark w-25 mx-auto" onclick="getMatches()">• show more</button>
</div></div
></div
></div
></div
>
<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="matches.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>