-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
685 lines (685 loc) · 24.9 KB
/
index.html
File metadata and controls
685 lines (685 loc) · 24.9 KB
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
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
<!doctype html>
<html lang="en-US" class="beardeer">
<head>
<title>BearDeer</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
/>
<link
rel="apple-touch-icon"
type="image/png"
href="/beardeer/assets/icon256.png"
/>
<link
rel="apple-touch-icon"
type="image/png"
sizes="256x256"
href="/beardeer/assets/icon256.png"
/>
<meta rel="icon" type="image/x-icon" href="/beardeer/favicon.ico" />
<link rel="icon" type="image/x-icon" href="/beardeer/favicon.ico" />
<meta charset="UTF-8" />
<link rel="stylesheet" href="icons.css" />
<link rel="stylesheet" href="global.css?92109" />
<link id="top-style" rel="stylesheet" href="themes/helium.css" />
<style id="custom-style"></style>
</head>
<body>
<div id="error-bar">
<span onclick="closePopup();" class="text-clickable">Close</span> -
<span id="error-text">Connecting...</span>
</div>
<div class="scene">
<div id="loading">
<center>
Taking too long to load? Try
<span onclick="logOut();" class="text-clickable">a full reset</span>.
</center>
</div>
<div id="connection-lost" class="hidden">
<center>
Connection was lost.<br /><span
onclick="window.location.reload();"
class="text-clickable"
>Reload</span
>.<br /><br /><small
><span onclick="setServerPrompt();" class="text-clickable"
>Set a custom server URL</span
></small
>
</center>
</div>
<div id="register-login" class="hidden">
<center>
<button class="rl-button-a" id="rl-t-login" onclick="rltab('login');">
Login
</button>
<button
class="rl-button-a"
id="rl-t-signup"
onclick="rltab('signup');"
>
Signup
</button>
<button
class="rl-button=a"
id="rl-t-guest"
onclick="guest = true;updateUlist();switchScene('main-scene', true);"
>
Guest</button
><br /><br />
<div id="rl-login-container" class="hidden">
<input
id="rl-username"
placeholder="Username..."
type="text"
maxlength="20"
/><br />
<input
id="rl-password"
placeholder="Password..."
type="password"
/><br />
<button class="rl-button" onclick="logIn();">Log in</button>
</div>
<div id="rl-signup-container" class="hidden">
<input
id="rl-username-s"
autocomplete="off"
placeholder="Username..."
type="text"
maxlength="20"
/><br />
<input
id="rl-password-s"
autocomplete="off"
placeholder="Password..."
type="password"
/><br />
<input
id="rl-invitecode"
autocomplete="off"
placeholder="Invite code..."
type="text"
maxlength="16"
/><br />
<button class="rl-button" onclick="register();">Sign up</button
><br />
</div>
<br />
<small
><span onclick="setServerPrompt();" class="text-clickable"
>Set a custom server URL</span
></small
><br />
<small id="rl-version"></small>
</center>
</div>
<div id="main-scene" class="hidden">
<div id="nav">
<button id="ms-name" onclick="userBox();">@...</button>
<span class="ms-seperator">|</span>
<span id="ms-show-guest-nav" class="hidden">
<button onclick="window.location.reload();" id="ms-button-reload">
Return to menu
</button>
</span>
<span id="ms-hide-guest-nav">
<button onclick="switchScene('main-inbox');" id="ms-button-inbox">
Inbox
</button>
<button
onclick="switchScene('main-livechat');"
id="ms-button-livechat"
>
Livechat
</button>
<!--<button onclick="switchScene('main-buddies');" id="ms-button-buddies">Buddies (0 online)</button>-->
<button
id="ms-button-mod"
class="hidden"
onclick="switchScene('main-moderation');"
>
Moderation
</button>
</span>
</div>
<div id="ms-userbox" class="mc-container hidden">
<button onclick="showUser(username);">Profile</button>
<button
onclick="switchScene('main-config'); populateProfileSettings()"
>
Settings
</button>
<button onclick="logOut();">Log out</button>
<button onclick="showUserPrompt();">Show a user...</button>
<button onclick="switchScene('main-whatsnew')">What's new?</button>
</div>
<small id="ms-ulist">0 users online (?)</small><br /><br />
<div id="ms-make-post">
<center>
<div id="ms-do-not-the-spamming" style="margin-bottom: 1rem">
Do NOT the spamming.
</div>
<button id="ms-button-presets" onclick="updateStg('presets')">
MK8 Presets
</button>
<button onclick="addAttachment();">URL...</button>
<button onclick="addUpload();">+</button>
<div id="ms-msg-wrapper">
<textarea
id="ms-msg"
maxlength="2000"
oninput="textinput()"
autocomplete="off"
onkeydown="if (enter_send && event.key === 'Enter' && !event.shiftKey) {event.preventDefault(); sendPost();} if (event.key === 'Escape') { clearAll() }; if (event.key === 'Tab') { const btn = document.querySelector('#ms-suggestions').firstChild; if (btn) { btn.click(); event.preventDefault(); } } resizePostBox();"
placeholder="What's on your mind?"
type="text"
rows="1"
></textarea>
<div id="ms-suggestions"></div>
</div>
<span hidden id="ms-presets">
<button onclick="sendPreset(this)">Hello!</button>
<button onclick="sendPreset(this)">Good luck!</button>
<button onclick="sendPreset(this)">Welcome!</button>
<button onclick="sendPreset(this)">Go easy on me!</button>
<button onclick="sendPreset(this)">
I'll give it my best shot!
</button>
<button onclick="sendPreset(this)">Shall we get started?</button>
<button onclick="sendPreset(this)">
Let's wait for more players.
</button>
<button onclick="sendPreset(this)">OK!</button>
<button onclick="sendPreset(this)">
I'm a little nervous...
</button>
<button onclick="sendPreset(this)">I'm excited!</button>
<button onclick="sendPreset(this)">
I'm using tilt controls!
</button>
<button onclick="sendPreset(this)">Hooray!</button>
<button onclick="sendPreset(this)">Good game!</button>
<button onclick="sendPreset(this)">That was fun!</button>
<button onclick="sendPreset(this)">Not fair!</button>
<button onclick="sendPreset(this)">One more time!</button>
<button onclick="sendPreset(this)">
I'll get you next time!
</button>
<button onclick="sendPreset(this)">This is my last game.</button>
<button onclick="sendPreset(this)">I'm outta here.</button>
<button onclick="sendPreset(this)">Thanks for playing!</button>
<button onclick="sendPreset(this)">Thank you!</button>
<button onclick="sendPreset(this)">Good night!</button>
<button onclick="sendPreset(this)">Bye!</button>
</span>
<button id="ms-button-post" onclick="sendPost();">Post</button>
</center>
<center class="ms-replies-wrapper">
<small id="ms-details"></small><br />
<small id="ms-replies" class="reply"></small>
</center>
</div>
<div id="ms-posts"></div>
<input
class="hidden"
id="ms-attach"
onchange="attachFile();"
multiple="true"
type="file"
/>
</div>
<div id="main-config" class="hidden">
<button onclick="switchScene('main-scene');">Return to Home</button
><br />
<div class="mc-container">
<h2 class="header-notop">Profile</h2>
<input
id="mc-display-name"
placeholder="Display name..."
autocomplete="off"
type="text"
maxlength="64"
/>
<button onclick="setProperty('display_name');">
Set display name</button
><br />
<input
id="mc-color"
placeholder="Display name color..."
type="color"
/>
<button onclick="setProperty('color');">Set display name color</button
><br />
<input id="mc-font" placeholder="Display name font..." type="text" />
<button onclick="setProperty('font');">Set display name font</button>
<br />
<select id="mc-weight" type="text">
<option value="100">Thin</option>
<option value="200">Extra Light</option>
<option value="300">Light</option>
<option value="400" selected>Normal</option>
<option value="500">Medium</option>
<option value="600">Semi-Bold</option>
<option value="700">Bold</option>
<option value="800">Extra Bold</option>
<option value="900">Black</option>
<option value="950">Extra Black</option>
</select>
<button onclick="setProperty('weight');">
Set display name weight
</button>
<br />
<input
id="mc-avatar"
placeholder="Avatar URL..."
autocomplete="off"
type="text"
maxlength="656"
/>
<button onclick="setProperty('avatar');">Set avatar URL</button><br />
<input
id="mc-banner"
placeholder="Banner URL..."
autocomplete="off"
type="text"
maxlength="656"
/>
<button onclick="setProperty('banner')">Set banner URL</button><br />
<span class="align-button">
<textarea
class="big-textarea"
id="mc-css"
placeholder="Profile CSS..."
autocomplete="off"
></textarea>
<button onclick="setProperty('css')">Set CSS</button></span
><br />
<span class="align-button">
<textarea
class="big-textarea"
id="mc-bio"
placeholder="Bio..."
type="text"
autocomplete="off"
maxlength="512"
></textarea>
<button onclick="setProperty('bio');">Set bio</button></span
><br />
<input
id="mc-lastfm"
placeholder="Last.fm..."
autocomplete="off"
type="text"
maxlength="72"
/>
<button onclick="setProperty('lastfm');">Set Last.fm</button> <br />
<input
id="mc-background"
autocomplete="off"
type="text"
placeholder="Post background..."
/>
<button onclick="setProperty('background');">
Set post background
</button>
<button onclick="setProperty('background', '');">Delete</button>
<br />
<input id="mc-background-alt" type="color" />
<button onclick="setProperty('background-alt');">
Set post background fallback
</button>
<button onclick="setProperty('background!alt', '', true);">
Delete
</button>
<br />
<input id="mc-border-top" autocomplete="off" type="color" />
<button onclick="setProperty('border-top');">
Set post top border color
</button>
<button onclick="setProperty('border-top', '');">Delete</button>
<br />
<input id="mc-border-bottom" autocomplete="off" type="color" />
<button onclick="setProperty('border-bottom');">
Set post bottom border color
</button>
<button onclick="setProperty('border-bottom', '');">Delete</button>
<br />
<input id="mc-border-left" autocomplete="off" type="color" />
<button onclick="setProperty('border-left');">
Set post left border color
</button>
<button onclick="setProperty('border-left', '');">Delete</button>
<br />
<input id="mc-border-right" autocomplete="off" type="color" />
<button onclick="setProperty('border-right');">
Set post right border color
</button>
<button onclick="setProperty('border-right', '');">Delete</button>
<br />
<input id="mc-shadow" autocomplete="off" type="text" />
<button onclick="setProperty('shadow');">Set post shadow</button>
<button onclick="setProperty('shadow', '');">Delete</button>
</div>
<div class="mc-container">
<h2 class="header-notop">Misc</h2>
<h3 class="header-notop">Uploads</h3>
<select id="mc-upload-service">
<option value="imgbb">ImgBB</option></select
><br />
<input
id="mc-upload-key"
placeholder="Service key..."
autocomplete="off"
type="text"
maxlength="128"
/><br /><button
onclick="updateStg('upload_key');updateStg('upload_service');"
>
Set key and service</button
><br />
<h3 class="header-notop">Other</h3>
<button id="mc-button-replace" onclick="updateStg('replace_text')">
(?) Replace text</button
><br />
<button id="mc-button-enter-send" onclick="updateStg('enter_send')">
(?) Enter sends post</button
><br />
<button
id="mc-button-display-post-themes"
onclick="updateStg('display_post_themes')"
>
(?) Display post themes by default
</button>
Reload to apply this option to all posts. <br />
<button id="mc-button-melon-cat" onclick="updateStg('melon_cat')">
(?) Show melon cat for users who enabled it
</button>
Reload to apply this option to all posts. <br />
<button id="mc-button-uwu" onclick="updateStg('uwu')">(?) uwu</button>
<br />
<button onclick="logOut();">Log out</button>
</div>
<div class="mc-container">
<h2 class="header-notop">Theme</h2>
<div class="mc-theme-preview">
<div class="mc-preview-error">Error bar</div>
<div class="mc-preview-content">
<button>Button</button> <button disabled>Disabled</button><br />
<div class="mc-preview-post">
<img src="assets/icon256.png" class="pfp" /><span
>Post example<br />Lorem ipsum, dolor sit amet.</span
>
</div>
</div>
</div>
<p>Selected theme: <span id="mc-theme-name">?</span></p>
<div id="mc-theme-buttons"></div>
<h3 class="header-notop">Custom CSS</h3>
<textarea
class="big-textarea"
id="mc-theme-custom"
placeholder="Put CSS here..."
></textarea
><br />
<button onclick="setCustomTheme();">Set custom CSS</button>
</div>
<div id="mc-danger-container">
<h2 class="header-notop">Dangerous</h2>
<p>Be careful!</p>
<input
id="mc-da-password"
placeholder="Password..."
autocomplete="off"
type="password"
/>
<button onclick="deleteAcc();">Delete account</button><br /><br />
<h3 class="header-notop">Change password</h3>
<input
id="mc-pw-password"
placeholder="Current password..."
autocomplete="off"
type="password"
/><br />
<input
id="mc-pw-new-password"
placeholder="New password..."
autocomplete="off"
type="password"
/><br />
<button onclick="changePswd();">Change password</button>
</div>
<br /><br />
<small
><span onclick="setServerPrompt();" class="text-clickable"
>Set a custom server URL</span
></small
><br />
<small id="mc-version"></small><br /><br />
<h4>Server contributors</h4>
<span id="mc-contributors"></span>
</div>
<div id="main-whatsnew" class="hidden">
<button onclick="switchScene('main-scene');">Return to Home</button
><br />
<h2>What's new?</h2>
<div id="mw-new"></div>
</div>
<div id="main-inbox" class="hidden">
<button onclick="switchScene('main-scene');">Return to Home</button
><br />
<h2>Inbox</h2>
<div id="mi-posts"></div>
</div>
<div id="main-livechat" class="hidden">
<button onclick="switchScene('main-scene');">Return to Home</button
><br />
<h2>Livechat</h2>
<small id="ml-ulist">0 users online (?)</small><br /><br />
<div id="ml-make-post">
<center>
<button onclick="addAttachment();">URL...</button>
<button onclick="addUpload();">+</button>
<input
id="ml-msg"
maxlength="2000"
oninput="textinput();"
autocomplete="off"
onkeydown="if (event.keyCode == 13) {sendLcPost();}"
placeholder="What's on your mind?"
type="text"
/>
<button id="ml-button-post" onclick="sendLcPost();">Post</button
><br />
<small id="ms-details"></small>
</center>
</div>
<div id="ml-posts"></div>
</div>
<div id="main-moderation" class="hidden">
<button onclick="switchScene('main-scene');">Return to Home</button
><br />
<p>Welcome to the moderation tool menu.</p>
<div id="mm-flex">
<div class="mm-container">
<h3 class="header-notop">Ban</h3>
<input
id="mm-username-ban"
placeholder="Username..."
type="text"
/><br />
<input id="mm-until-ban" type="datetime-local" /><br />
<input
id="mm-reason-ban"
placeholder="Reason..."
type="text"
/><br />
<button onclick="ban();">Ban User</button>
</div>
<div class="mm-container">
<h3 class="header-notop">Invite code</h3>
<span id="mm-invite-code"></span><br />
<button onclick="genInviteCode();">Generate invite code</button
><br />
<button onclick="resetInvites();">Reset invite codes</button>
</div>
<div class="mm-container">
<h3 class="header-notop">Forcekick</h3>
<input
id="mm-username-forcekick"
placeholder="Username..."
type="text"
/><br />
<button onclick="forceKick();">Forcekick</button>
</div>
<div class="mm-container">
<h3 class="header-notop">Inbox</h3>
<input
id="mm-content-inbox"
placeholder="Message..."
type="text"
width="80"
/><br />
<button onclick="postInbox();">Post inbox</button>
</div>
<div class="mm-container">
<h3 class="header-notop">User IPs</h3>
<input
id="mm-username-ip"
placeholder="Username..."
type="text"
/><br />
<button onclick="getIPs();">banish to the SHADOW REALM</button>
<button onclick="clearIPs();">Clear</button><br />
<span id="mm-ips"></span>
</div>
<div class="mm-container">
<h3 class="header-notop"></h3>
<input id="mm-ip-banish" placeholder="IP..." type="text" /><br />
<button onclick="banish();">Begone, foul beast</button>
</div>
<div class="mm-container">
<small
>This function has not yet been re-implemented into ChaosDeer
Vulcan.</small
><br />
<h3 class="header-notop">Lockdown server</h3>
<button onclick="toggleLock();" disabled>Toggle lock</button>
</div>
</div>
</div>
<div id="user-display" class="hidden">
<div id="ud-row">
<button
onclick="switchScene('main-scene'); document.querySelector('#ud-style').innerHTML = ''; clearInterval(timeUpdate)"
>
Return to Home
</button>
<button id="ud-toggle-css" onclick="toggleProfileCSS()">
Toggle CSS
</button>
<button id="ud-toggle-post-theme" onclick="togglePostTheme()">
Toggle this user's post theme
</button>
</div>
<iframe
id="ud-iframe"
srcdoc='
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css"
integrity="sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="global.css?92109" />
<link rel="stylesheet" href="icons.css" />
<style id="ud-main-style"></style>
<style id="ud-style"></style>
<div id="button-padding">
<button>Button Padding</button>
</div>
<div class="scene" id="user-display">
<div id="ud-banner">
<div id="ud-info">
<img
id="ud-avatar"
class="pfp"
src="assets/default.png"
onerror="this.src = 'assets/default.png'"
/>
<span id="ud-display-name"></span> <span id="ud-d-tags"></span>
<br />
<span id="ud-username" class="mono"></span>
</div>
</div>
<small>Current time: <span id="ud-tz"></span></small><br />
<small>Account created at <span id="ud-created"></span></small><br />
<small id="ud-permissions"></small>
<!-- no br here!! -->
<small id="ud-special"></small><br />
<span id="ud-banned" class="hidden"
><small id="ud-banned-span"></small><br
/></span>
<div class="flex gap">
<div class="flex-column" id="ud-bio-container">
<div class="title">Bio</div>
<div id="ud-bio">This user does not have a bio.</div>
</div>
<div class="flex-column" id="ud-lastfm-container">
<div class="title">LastFM</div>
<div id="ud-lastfm-wrapper">
<img
id="ud-lastfm-cover"
class="album-cover"
src="assets/default.png"
onerror="this.src = 'assets/default.png'"
/>
<span id="ud-lastfm-name"></span>
<br />
<span id="ud-lastfm-artist"></span>
<br />
<small id="ud-lastfm-album"></small>
</div>
</div>
</div>
</div>
'
></iframe>
</div>
</div>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/atom-one-dark.css"
/>
<script
defer
src="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.js"
integrity="sha384-cMkvdD8LoxVzGF/RPUKAcvmm49FQ0oxwDF3BGKtDXcEc+T1b2N+teh/OJfpU0jr6"
crossorigin="anonymous"
></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex@0.16.22/dist/katex.min.css"
integrity="sha384-5TcZemv2l/9On385z///+d7MSYlvIEw9FuZTIdZ14vJLqWphw7e7ZPuOiCHJcFCP"
crossorigin="anonymous"
/>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/markdown-it@14.1.0/dist/markdown-it.min.js"></script>
<script>
window.require = (name) => {
if (name === "katex") return katex;
return;
};
window.module = {};
</script>
<script src="https://cdn.jsdelivr.net/npm/markdown-it-katex/index.js"></script>
<script>
window.markdownItKatex = module.exports;
</script>
<script src="main.js?92109" defer></script>
</body>
<!-- <script type="text/javascript" src="purify.min.js"></script> -->
</html>