-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
128 lines (114 loc) · 4.65 KB
/
index.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
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>GOKZ Replay Viewer</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/lz-string.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/base64-string.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.1.min.js"></script>
<script src="js/facepunch.webgame.js?v=${VERSION}"></script>
<script src="js/sourceutils.js?v=${VERSION}"></script>
<script src="js/replayviewer.js?v=${VERSION}"></script>
<script src="js/main.js?v=${VERSION}"></script>
<link type="text/css" rel="stylesheet" href="styles/mapviewer.css?v=${VERSION}" />
<link type="text/css" rel="stylesheet" href="styles/replayviewer.css?v=${VERSION}" />
<link rel="shortcut icon" href="images/favicon.ico?v=${VERSION}" type="image/x-icon">
<link rel="icon" href="images/favicon.ico?v=${VERSION}" type="image/x-icon">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background-color: #000;
color: #fff;
}
#title {
padding-left: 24px;
padding-top: 0px;
top: 0px;
}
#map-view {
position: absolute;
top: 64px;
left: 8px;
right: 544px;
bottom: 8px;
background-color: black;
}
#replay-list {
position: absolute;
width: 512px;
right: 0px;
top: 8px;
bottom: 8px;
background-color: #111;
padding-left: 24px;
padding-top: 8px;
}
#replay-list a {
color: #bcf;
text-decoration: none;
}
table tr:nth-child(odd) {
background-color: #111;
}
table tr:nth-child(even) {
background-color: #222;
}
td {
max-width: 128px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
</style>
</head>
<body>
<h2 id="title">GOKZ Global Replay Viewer</h2>
<div id="map-view">
</div>
<div id="replay-list">
<form onsubmit = "UpdateMaptop(); return false" style="float: left;">
Map:
<input list="mapNameDatalist" id="mapNameInput" placeholder="kz_beginnerblock_go" style="width: 128px;">
<datalist id="mapNameDatalist">
</datalist>
</form>
<form onsubmit = "UpdateMaptop(); return false" style="float: left;">
Stage:
<input type="number" id="stageInput" placeholder="0" style="width: 48px;">
</form>
Type:
<select id="tpRun-dropdown" name="Pro/TP">
<option value="false">Pro</option>
<option value="true">TP</option>
</select>
Mode:
<select id="mode-dropdown" name="Mode">
<option value="kz_timer">KZTimer</option>
<option value="kz_simple">SimpleKZ</option>
<option value="kz_vanilla">Vanilla</option>
</select>
<p>
<button type="button" onclick="UpdateMaptop()" style="clear: both;">Submit</button>
</p>
<div style="height: calc(100% - 136px); overflow:auto;">
<table>
<thead>
<tr>
<th></th>
<th>Place</th>
<th>Name</th>
<th>Time</th>
<th>TPs</th>
<th>Date</th>
</tr>
</thead>
<tbody id="replay-list-list">
</tbody>
</table>
</div>
<div style="position: fixed; bottom: 16px;">
For issues like broken maps, please <a href="https://github.com/GameChaos/GlobalReplays/issues">make an issue on github</a>. All the textures are flat colours to save space, don't report that :).
</div>
</div>
</body>
</html>