forked from Yuu6883/OgarX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
508 lines (508 loc) · 22.7 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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Ogar69 BRRRRRRRRRRRRRRR" />
<title>Ogar69 (beta)</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/uikit@3.6.10/dist/css/uikit.min.css"
/>
<link rel="stylesheet" href="css/index.css" />
<script src="https://cdn.jsdelivr.net/npm/uikit@3.6.10/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.6.10/dist/js/uikit-icons.min.js"></script>
<script src="js/main.min.js"></script>
</head>
<body>
<div id="chat"></div>
<input id="chat-input" type="text" placeholder="Chat" hidden />
<div id="settings-bar" class="uk-inline">
<span
class="settings-icon ogarx-icon"
uk-tooltip="Clips"
uk-toggle="target: #replay-modal"
uk-icon="video-camera"
></span>
<span
class="settings-icon ogarx-icon"
uk-tooltip="Options"
uk-toggle="target: #render-menu-offcanvas"
uk-icon="settings"
></span>
<span
class="settings-icon ogarx-icon"
uk-tooltip="Hotkeys"
uk-toggle="target: #key-menu-offcanvas"
><svg
height="512"
viewBox="0 0 512 512"
width="512"
xmlns="http://www.w3.org/2000/svg"
>
<g>
<path
d="m482 201h-181.732c17.597-18.112 34.732-44.991 34.732-81 0-35.445 8.214-46.562 15.371-52.287 10.99-8.792 31.231-12.713 65.629-12.713 8.284 0 15-6.716 15-15s-6.716-15-15-15c-42.803 0-67.247 5.588-84.371 19.287-23.602 18.882-26.629 50.381-26.629 75.713 0 46.583-41.523 74.289-52.895 81h-222.105c-16.542 0-30 13.458-30 30v226c0 16.542 13.458 30 30 30h452c16.542 0 30-13.458 30-30v-226c0-16.542-13.458-30-30-30zm0 256h-452v-226h452c.019 231.146.1 226 0 226z"
/>
<path
d="m96 393h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15h16c8.284 0 15-6.716 15-15s-6.716-15-15-15z"
/>
<path
d="m151 344c0-8.284-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15h16c8.284 0 15-6.716 15-15z"
/>
<path
d="m185 344c0 8.284 6.716 15 15 15h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15z"
/>
<path
d="m265 344c0 8.284 6.716 15 15 15h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15z"
/>
<path
d="m376 329h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15h16c8.284 0 15-6.716 15-15s-6.716-15-15-15z"
/>
<path
d="m431 280c0-8.284-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15h16c8.284 0 15-6.716 15-15z"
/>
<path
d="m320 295h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15z"
/>
<path
d="m240 295h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15z"
/>
<path
d="m160 295h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15z"
/>
<path
d="m80 295h16c8.284 0 15-6.716 15-15s-6.716-15-15-15h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15z"
/>
<path
d="m432 393h-16c-8.284 0-15 6.716-15 15s6.716 15 15 15h16c8.284 0 15-6.716 15-15s-6.716-15-15-15z"
/>
<path
d="m352 393h-192c-8.284 0-15 6.716-15 15s6.716 15 15 15h192c8.284 0 15-6.716 15-15s-6.716-15-15-15z"
/>
</g>
</svg>
</span>
<span
class="settings-icon ogarx-icon"
uk-tooltip="Discord"
uk-toggle="target: #discord-modal"
><svg
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 245 240"
>
<style>
.st0 {
fill: #ffffff;
}
</style>
<path
class="st0"
d="M104.4 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1.1-6.1-4.5-11.1-10.2-11.1zM140.9 103.9c-5.7 0-10.2 5-10.2 11.1s4.6 11.1 10.2 11.1c5.7 0 10.2-5 10.2-11.1s-4.5-11.1-10.2-11.1z"
/>
<path
class="st0"
d="M189.5 20h-134C44.2 20 35 29.2 35 40.6v135.2c0 11.4 9.2 20.6 20.5 20.6h113.4l-5.3-18.5 12.8 11.9 12.1 11.2 21.5 19V40.6c0-11.4-9.2-20.6-20.5-20.6zm-38.6 130.6s-3.6-4.3-6.6-8.1c13.1-3.7 18.1-11.9 18.1-11.9-4.1 2.7-8 4.6-11.5 5.9-5 2.1-9.8 3.5-14.5 4.3-9.6 1.8-18.4 1.3-25.9-.1-5.7-1.1-10.6-2.7-14.7-4.3-2.3-.9-4.8-2-7.3-3.4-.3-.2-.6-.3-.9-.5-.2-.1-.3-.2-.4-.3-1.8-1-2.8-1.7-2.8-1.7s4.8 8 17.5 11.8c-3 3.8-6.7 8.3-6.7 8.3-22.1-.7-30.5-15.2-30.5-15.2 0-32.2 14.4-58.3 14.4-58.3 14.4-10.8 28.1-10.5 28.1-10.5l1 1.2c-18 5.2-26.3 13.1-26.3 13.1s2.2-1.2 5.9-2.9c10.7-4.7 19.2-6 22.7-6.3.6-.1 1.1-.2 1.7-.2 6.1-.8 13-1 20.2-.2 9.5 1.1 19.7 3.9 30.1 9.6 0 0-7.9-7.5-24.9-12.7l1.4-1.6s13.7-.3 28.1 10.5c0 0 14.4 26.1 14.4 58.3 0 0-8.5 14.5-30.6 15.2z"
/>
</svg>
</span>
</div>
<div id="key-menu-offcanvas" uk-offcanvas>
<div id="offcanvas-menu" class="uk-offcanvas-bar">
<h3 class="uk-center">Hotkeys</h3>
<div id="keys" class="key-value"></div>
<a class="uk-offcanvas-close" type="button" href="#" uk-close></a>
</div>
</div>
<div id="skin-menu-offcanvas" uk-offcanvas="flip: true; bg-close: false;">
<div id="offcanvas-menu" class="uk-offcanvas-bar">
<h3>
<button id="add-skin">Add Skin</button>
<span
class="ogarx-icon"
uk-icon="question"
uk-tooltip="left click to set primary skin, right click to set secondary skin"
></span>
</h3>
<p class="uk-inline">
Border Colors:
<input id="border-color-1" type="color" />
<input id="border-color-2" type="color" />
</p>
<div id="skins"></div>
<a class="uk-offcanvas-close" type="button" href="#" uk-close></a>
</div>
</div>
<div id="render-menu-offcanvas" uk-offcanvas>
<div id="offcanvas-menu" class="uk-offcanvas-bar">
<h3 class="uk-center">Options</h3>
<div id="render-options" class="key-value">
<span>Skin</span><span id="render-skin" class="selectable"></span>
<span>Name</span><span id="render-name" class="selectable"></span>
<span>Mass</span><span id="render-mass" class="selectable"></span>
<span>Resolution</span
><span id="render-quality" class="selectable"></span>
<span>Auto Respawn</span
><span id="render-auto_respawn" class="selectable"></span>
<span>Skin Quality</span
><span id="render-skin_quality" class="selectable"></span>
<span>Text Quality</span
><span id="render-text_quality" class="selectable"></span>
<span>Circle Quality</span
><span id="render-circle_quality" class="selectable"></span>
<!-- <span>Draw Sync Mouse</span><span id="render-mouse_sync" class="selectable"></span> -->
<span
class="uk-inline"
uk-tooltip="Ignore ALL skins (toggle will not work because skins are not loaded)"
>Ignore Skin</span
>
<span id="render-ignore_skin" class="selectable"></span>
<span>Draw Delay</span>
<div class="uk-inline">
<input
id="render-delay-input"
class="slider"
type="range"
value="0"
min="50"
max="300"
step="10"
/>
<span
id="render-delay-display"
class="uk-overlay uk-position-center"
>69</span
>
</div>
</div>
<a class="uk-offcanvas-close" type="button" href="#" uk-close></a>
</div>
</div>
<div id="server-menu-offcanvas" uk-offcanvas="flip: true; bg-close: false;">
<div id="offcanvas-menu" class="uk-offcanvas-bar">
<a class="uk-offcanvas-close" type="button" href="#" uk-close></a>
<ul
class="uk-subnav uk-subnav-pill"
style="flex-wrap: nowrap"
uk-switcher
>
<li>
<a id="signal-dev" href="#" class="signal-good">
<div class="signal-bars">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<span>Dev</span>
</a>
</li>
</ul>
<ul class="uk-switcher uk-width-1-1">
<!-- Point this to a running ogarx gateway and the page will render with it -->
<!-- <li>
<div region="NA" gateway="na.ogar69.yuu.dev"></div>
<div class="uk-margin-large-top uk-text-center uk-width-1-1">
<p>Server Usage</p>
<svg
class="stats-pie"
viewBox="0 0 42 42"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<circle
cx="21"
cy="21"
r="15.91549430918954"
fill="transparent"
stroke="#333"
stroke-width="8"
></circle>
<text x="21" y="21">Test</text>
<g id="na-server-stats"></g>
</svg>
</div>
</li> -->
<li>
<p
class="servers"
server="local"
mode="omega"
uk-tooltip="Runs in your browser"
>
Local Omega
</p>
<p
class="servers"
server="local"
mode="mega"
uk-tooltip="Runs in your browser"
>
Local Mega
</p>
<p
class="servers"
server="local"
mode="ffa"
uk-tooltip="Runs in your browser"
>
Local Classic
</p>
<p
class="servers"
server="local"
mode="selfeed"
uk-tooltip="Runs in your browser"
>
Local Selfeed
</p>
<p
class="servers"
server="local"
mode="virus"
uk-tooltip="Runs in your browser"
>
Local Virus
</p>
<div region="Dev"></div>
<div class="uk-margin-large-top uk-text-center uk-width-1-1">
<p>Server Usage</p>
<svg
class="stats-pie"
viewBox="0 0 42 42"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
>
<circle
cx="21"
cy="21"
r="15.91549430918954"
fill="transparent"
stroke="#333"
stroke-width="8"
></circle>
<text x="21" y="21">Test</text>
<g id="dev-server-stats"></g>
</svg>
</div>
</li>
</ul>
</div>
</div>
<div id="leaderboard" hidden>
<h3 id="server-name"></h3>
<div id="leaderboard-data" class="uk-inline"></div>
</div>
<div id="stats1" hidden>
FPS: <span id="fps"></span> PING: <span id="ping"></span>
BANDWIDTH: <span id="bandwidth"></span>
<div hidden>Render Cells: <span id="cells"></span></div>
</div>
<div id="stats2" hidden>
LINE: <span id="linelock"></span> <span id="mycells"></span> CELLS
</div>
<div id="stats3" hidden>SCORE: <span id="score"></span></div>
<div id="minimap">
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
preserveAspectRatio="xMidYMid meet"
></svg>
<svg
class="uk-position-cover"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
preserveAspectRatio="xMidYMid meet"
></svg>
</div>
<div id="hud" class="fade-in">
<div
id="skin-tab"
class="uk-margin-auto uk-inline-clip uk-transition-toggle"
tabindex="0"
>
<img id="skin-2" src="/static/img/skin.png" alt="Skin2" />
<img id="skin-1" src="/static/img/skin.png" alt="Skin1" />
<div
class="
uk-position-cover
uk-transition-fade
uk-margin-medium-bottom
uk-overlay
uk-overlay-default
uk-padding-remove
uk-margin-remove-left
uk-margin-remove-right
"
>
<input
class="uk-inline uk-position-bottom"
id="skin-input"
type="text"
placeholder="Skin"
/>
</div>
<div
class="
uk-transition-fade
uk-position-top-center
uk-overlay
uk-overlay-default
uk-padding-remove
"
>
<span
uk-tooltip="Swap Skin"
uk-icon="code"
class="settings-icon ogarx-icon"
id="swap-skin"
></span>
</div>
<div
class="
uk-transition-fade
uk-position-bottom-left
uk-overlay
uk-overlay-default
uk-padding-remove
"
>
<span
uk-tooltip="Delete Skin"
uk-icon="trash"
class="settings-icon ogarx-icon"
id="delete-skin"
></span>
</div>
<div
class="
uk-transition-fade
uk-position-bottom-right
uk-overlay
uk-overlay-default
uk-padding-remove
"
>
<span
uk-tooltip="More Skins"
uk-icon="folder"
class="settings-icon ogarx-icon"
uk-toggle="target: #skin-menu-offcanvas"
></span>
</div>
<div
class="
uk-transition-fade
uk-position-center-left
uk-overlay
uk-overlay-default
uk-padding-remove
"
>
<span
id="prev-skin"
uk-tooltip="Previous Skin"
uk-icon="chevron-double-left"
class="settings-icon ogarx-icon"
></span>
</div>
<div
class="
uk-transition-fade
uk-position-center-right
uk-overlay
uk-overlay-default
uk-padding-remove
"
>
<span
id="next-skin"
uk-tooltip="Next Skin"
uk-icon="chevron-double-right"
class="settings-icon ogarx-icon"
></span>
</div>
</div>
<div>
<div class="uk-inline">
<p></p>
<p>
<input
id="name-input"
type="text"
maxlength="16"
placeholder="Name"
/>
</p>
<p>
<input
id="server-input"
uk-toggle="target: #server-menu-offcanvas"
readonly
placeholder="Select Server"
/>
</p>
</div>
<div>
<div class="uk-inline">
<button id="play" hidden>Play</button>
<button id="spectate" hidden>Spectate</button>
</div>
</div>
</div>
</div>
<div id="game-over" hidden>
<h2 class="uk-center">Game Over</h2>
<div>Kills: <span id="kills">0</span></div>
<div>Max Score: <span id="max-score">0</span></div>
<div>Survive Time: <span id="survive-time">0</span></div>
<div id="respawn-spinner" uk-spinner="ratio: 3" class="uk-margin-top"></div>
<h3><button id="respawn-button">Respawn</button></h3>
</div>
<div id="replay-modal" uk-modal="bg-close: false;">
<div
class="uk-modal-dialog uk-modal-body uk-width-4-5 uk-margin-auto-vertical"
>
<a class="uk-modal-close-default" type="button" href="#" uk-close></a>
<h3 class="uk-text-center" id="replay-title">Clips</h3>
<div id="replay-list" class="uk-flex uk-flex-wrap uk-text-center"></div>
<h3 class="uk-text-center">
<button id="upload-replay">
<input type="file" accept="image/gif" multiple hidden />Upload
Replay
</button>
</h3>
<span
id="prev-clip"
uk-tooltip="Previous Page"
uk-icon="icon: chevron-double-left; ratio: 3;"
class="ogarx-icon uk-position-center-left-out"
></span>
<span
id="next-clip"
uk-tooltip="Next Page"
uk-icon="icon: chevron-double-right; ratio: 3;"
class="ogarx-icon uk-position-center-right-out"
></span>
</div>
</div>
<div id="discord-modal" uk-modal="bg-close: true;">
<div
class="uk-modal-dialog uk-modal-body uk-width-1-5 uk-margin-auto-vertical"
>
<iframe
src="https://discord.com/widget?id=793889381806112778&theme=dark"
width="350"
height="500"
allowtransparency="true"
frameborder="0"
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"
></iframe>
</div>
</div>
<canvas id="canvas"></canvas>
</body>
</html>