-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathscoreboard.html
165 lines (163 loc) · 6.14 KB
/
scoreboard.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="author" content="https://github.com/plazum/find-keke">
<style>
body {
text-align: center;
margin-top: 0;
}
table {
border-collapse: collapse;
}
table th, table td {
border: 1px solid gray;
padding: 0.5em;
}
#scoreboard_filter td {
border-style: dashed;
}
#result tr:nth-child(2n) {
background-color: lightgray;
}
input[type="radio"], input[type="checkbox"] {
transform: scale(1.2);
}
input[type="search"] {
font-size: large;
}
input:invalid {
border: 2px dashed red;
}
button {
font-size: larger;
}
#relation:lang(en), #and_label:lang(en) {
margin-right: 0.5em;
}
.options {
display: flex;
align-items: center;
justify-content: center;
margin: 1.5em;
}
#previous_page, #previous_page2, #next_page, #next_page2 {
font-size: larger;
}
#previous_page::before, #previous_page2::before {
content: "←";
font-size: x-large;
}
#next_page::after, #next_page2::after {
content: "→";
font-size: x-large;
}
</style>
<link rel="icon" href="keke-big.jpg">
<script src="scoreboard.js"></script>
<script src="common.js"></script>
</head>
<body>
<div style="display: grid; justify-items: center;">
<span id="language_selector" style="font-size: larger; margin-top: 1.5em;">
<label lang="zh"><input id="zh" type="radio" name="language" onchange="set_language('zh')">中文</label>
<label lang="ja"><input id="ja" type="radio" name="language" onchange="set_language('ja')">日本語</label>
<label lang="en"><input id="en" type="radio" name="language" onchange="set_language('en')">English</label>
</span>
<h1 id="title"></h1>
<form style="font-size: large;" autocomplete="off" onsubmit="window.search(); return false;">
<div id="introduction" style="margin-bottom: 1em;"></div>
<table style="margin: auto;">
<thead>
<tr>
<th><label id="player_name_header" for="player_name"></label></th>
<th><label id="rows_header" for="rows"></label></th>
<th><label id="cols_header" for="cols"></label></th>
<th><label id="score_header" for="score"></label></th>
<th><label id="time_header" for="time"></label></th>
</tr>
</thead>
<tbody>
<tr>
<td><input id="player_name" type="search" onchange="validate(this)"></td>
<td><input id="rows" type="search" size="10" onchange="validate(this)"></td>
<td><input id="cols" type="search" size="10" onchange="validate(this)"></td>
<td><input id="score" type="search" size="10" onchange="validate(this)"></td>
<td><input id="time" type="search" onchange="validate(this)"></td>
</tr>
</tbody>
</table>
<div class="options">
<span id="relation"></span>
<input id="and" type="radio" name="and_or" checked><label id="and_label" for="and"></label>
<input id="or" type="radio" name="and_or"><label id="or_label" for="or" style="margin-right: 1em;"></label>
<input id="use_regex" type="checkbox" onchange="validate_all()"><label id="use_regex_label" for="use_regex" style="margin-right: 1em;"></label>
<input id="case_sensitive" type="checkbox"><label id="case_sensitive_label" for="case_sensitive"></label>
</div>
<table id="scoreboard_filter" style="font-size: smaller; margin: auto;"></table>
<div class="options">
<button id="select_all" type="button" onclick="window.select_all()"></button>
<button id="deselect_all" type="button" style="margin: 0 1em;" onclick="window.deselect_all()"></button>
<button id="update" type="button" onclick="window.update()"></button>
</div>
<div class="options">
<button id="search" type="submit"></button>
<button id="reset" type="reset" style="margin-left: 1em;"></button>
</div>
</form>
<table>
<thead>
<tr>
<th id="scoreboard"></th>
<th id="player_name_header2"></th>
<th id="rows_header2"></th>
<th id="cols_header2"></th>
<th id="score_header2"></th>
<th id="time_header2"></th>
</tr>
<tr>
<th id="total" colspan="6">-</th>
</tr>
<tr>
<td colspan="6">
<span style="display: flex; justify-content: space-between; align-items: center;">
<button id="previous_page" onclick="render_result(current_page - 1)" disabled></button>
<span id="page"></span>
<button id="next_page" onclick="render_result(current_page + 1)" disabled></button>
</span>
</td>
</tr>
</thead>
<tbody id="result"></tbody>
<tfoot>
<tr>
<td colspan="6">
<span style="display: flex; justify-content: space-between; align-items: center;">
<button id="previous_page2" onclick="render_result(current_page - 1)" disabled></button>
<span id="page2"></span>
<button id="next_page2" onclick="render_result(current_page + 1)" disabled></button>
</span>
</td>
</tr>
</tfoot>
</table>
</div>
<dialog id="loading_dialog" style="padding-top: 0;">
<h1 id="status"></h1>
<progress id="progress_bar"></progress>
<span id="buttons" style="display: none;">
<button id="retry" onclick="retry()"></button>
<button id="cancel" onclick="close_dialog('loading_dialog')"></button>
</span>
</dialog>
<script>
"use strict";
if (window.self !== window.top)
document.getElementById("language_selector").style.display = "none";
init();
prepare();
</script>
</body>
</html>