From 9d5d4c31d419d318e1ee23dd76fb7780c4685fce Mon Sep 17 00:00:00 2001 From: deadvey Date: Fri, 29 May 2026 18:00:54 +0100 Subject: [PATCH] loscores and pingscores tables --- .gitignore | 2 + .leaderboard.html.swp | Bin 0 -> 12288 bytes index.html | 2 +- index2.html | 85 -------------------------------------- leaderboard.html | 36 +++++++++++++++-- pingscores.json | 1 + src/main.rs | 92 ++++++++++++++++++++++++++++++++++++------ 7 files changed, 117 insertions(+), 101 deletions(-) create mode 100644 .leaderboard.html.swp delete mode 100644 index2.html create mode 100644 pingscores.json diff --git a/.gitignore b/.gitignore index ea8c4bf..11400c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /target +hiscores.json +loscores.json diff --git a/.leaderboard.html.swp b/.leaderboard.html.swp new file mode 100644 index 0000000000000000000000000000000000000000..84732c8192f549123299d20ba6588f548d9336b7 GIT binary patch literal 12288 zcmYc?2=nw+u+%eRU|?VnU|?8#R5EL`rZ|JECIdrCYGO)RY9&YpFV4wNPRz;3FD}so zvr_VN6EpL$=%|AlsGppllB!>xnxvmpT2hjqXQZE#nwXMWl$4)Xl%khWlAD7?^Qh2h z2#kgR`5{nRlBR3H%V2C|XaF)qSxHerSSS?49L1v{Fd71*Aut*OqaiRF0;3@?8Umvs zFd70QBm_zd7#Zpr7#NtK{tbZAjA%5JJ4%g)z-S1JhQMeDjE2By2#kinXb6mkz-S1J zhQMeDjE2By2n@jxNK9d1Sj@t}@S7Df{}1c`f8b|ec*)Pe@Q|N@VFo_~Lq9(QLpwhM zLoq)CLl8d$gB?EugDgJ-13Nzh!xKIRhTD7$443#A820lqFf8X|U|7t@z%YZ4fuWp_ zfuWd>fgzKRfgzrcfkBgxf#D}F1H(OD28MII3=AiE85lP3GB8ZyWnd`dWnc*5Wnd8F zWng&1!@zK!hk>D*hk?PLhk-$fhk=2Whk@ZGHv_|7ZU%-4+zbp}+zbqM+zbrn+zbrj z+zbpixEL6gaxpLja4|3_b1^WmaxpNxVGA1rLns>qgAN-5gAf}710Nd$12Y>WERV4=Fg#*qV0gjGz;KV1 zf#D`A1H)-n28PY73=9)NVLb%X%BYh^Ltr!ns1O1+`WYp;U?Rtkfzw96IJqdZpu~=W zle3lqhcG86XKGGyszS9w5f&9#gg|B?X-X|AEy`0+O3cg8Q&Om9;N;}YBui78f<{ql zdTNDUNosM4MoMByqNXOuQ4sS%e6ZWqw((;R36O%JEG@>D9>wp~+ zs{=LqtEk=np+ z(osN5W#FJgHi^`jFUhbAz>@}ykYkhRG=QQDJqOt0oo_L@EgOYea8AicY!7JF`Pp=@cs5n(46;vnbfy5!n2jrssoK(G>{B(4= z@?yRGyxi2{;>7e+1zQD(G`J83Ra&6pHzyHP{rbX{7=Y@eS`fimUaVJ~nwO%X1Stu@ zX5|;8=3yEHazTj#xHea?Rme*%R|rZ?cdaPUP>PFA)U9&VjWW=+jMt6TR)H7=QD0sR zRUDq06r7)&om!%yUS4dauMb}P4O#_mWno}pqF-LD4)UlCylrEnUtCg|lM1S~Kji@CAsx}{J!HA&=HD#b`@_=S1s3sezQ*HD?2^Va2ZfZ%QLSABSs;yF4W@>ps zeo=`MC^MC$=9Sngm1m}uWZ0&pmSrZV>Vi3-f;baYo9GrNC+4Ku8tNG+ftr^P18qR- T>g^b86kYtCLm~rQ6(D>7^Zb-? literal 0 HcmV?d00001 diff --git a/index.html b/index.html index 00a2810..fa68d21 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,7 @@ const regex = new RegExp("^[a-zA-Z0-9_-]+$"); let name = validate_data(prompt("Nickname for the leaderboard")); console.log(name) - const ws = new WebSocket('ws://deadvey.com:8084/ws'); + const ws = new WebSocket('ws://localhost:8084/ws'); ws.onopen = (event) => { ws.send(name); }; diff --git a/index2.html b/index2.html deleted file mode 100644 index b004bad..0000000 --- a/index2.html +++ /dev/null @@ -1,85 +0,0 @@ - - - -

Each time you press the button there's a 1/3 chance of returning to 0

- -
- - - - diff --git a/leaderboard.html b/leaderboard.html index cd21277..2d1e40b 100644 --- a/leaderboard.html +++ b/leaderboard.html @@ -4,7 +4,12 @@ -
+

Hiscores

+
+

Loscores

+
+

Pingscores

+