From 1ab98744e4570dc70015133f7499f972f5229dc5 Mon Sep 17 00:00:00 2001 From: GDColon Date: Sat, 2 Nov 2019 01:20:23 -0400 Subject: [PATCH] Finally added level leaderboards! - Added level leaderboards - Nonixestent level IDs are now rounded to nearest whole number - Removed horizontal dragscrolling (sorry 101arrowz :P) - Upped search length to 20 --- assets/css/browser.css | 4 + assets/dragscroll.js | 2 +- assets/leaderboard-top.png | Bin 0 -> 10176 bytes assets/leaderboard-week.png | Bin 0 -> 10241 bytes html/comments.html | 3 +- html/filters.html | 2 +- html/level.html | 12 +-- html/levelboard.html | 149 ++++++++++++++++++++++++++++++++++++ html/profile.html | 3 - index.js | 4 + 10 files changed, 162 insertions(+), 17 deletions(-) create mode 100644 assets/leaderboard-top.png create mode 100644 assets/leaderboard-week.png create mode 100644 html/levelboard.html diff --git a/assets/css/browser.css b/assets/css/browser.css index ed75dc6..80f1acc 100644 --- a/assets/css/browser.css +++ b/assets/css/browser.css @@ -115,6 +115,10 @@ img, .noSelect { filter: brightness(50%); } +.darken { + filter: brightness(65%); +} + #everything { width: 100%; height: 100%; diff --git a/assets/dragscroll.js b/assets/dragscroll.js index 42a1f81..8646f7f 100644 --- a/assets/dragscroll.js +++ b/assets/dragscroll.js @@ -24,7 +24,7 @@ $('.dragscroll').each(function(_, el) { el.style['-webkit-user-select'] = 'none'; previouslyMouseDown = true; } - el.scrollLeft -= e.movementX; + //el.scrollLeft -= e.movementX; el.scrollTop -= e.movementY; }, {passive: true}); }); \ No newline at end of file diff --git a/assets/leaderboard-top.png b/assets/leaderboard-top.png new file mode 100644 index 0000000000000000000000000000000000000000..27443f2961c50d4c7d9f1d50879b8ce33f1ed270 GIT binary patch literal 10176 zcmV;xCqLMUP)o~ zAHfM1I_YH=++ihJ%%aUI;BA%{NXnFy%7@dg?lXHj>gUS0o}qXt6as$1FPMNYKQgnn zZ3O@UKms5D?2hE_|CNCOXvFQJ0PvSDU-Zu^)Tbgy+qM!G843X9XXf=60Ofx_5@8;W zAZ^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)V2`mSseg2=VADMi`3=~}HGKME z0I}piA&$qROp-)8un>rt%yxgq#MSQD(JohlS72)f^Lhxe-J!7Es?dK3mw@@oZ3YMs z5ixrwp%U{Td>5#FXm%d7d7gLNPA5R00000NkvXX Hu0mjf3s-Xm literal 0 HcmV?d00001 diff --git a/html/comments.html b/html/comments.html index e309094..ffcd8fa 100644 --- a/html/comments.html +++ b/html/comments.html @@ -89,7 +89,8 @@ $('#compactMode').attr('src', `../assets/compact-${compact ? "on" : "off"}.png`) let target = `../api/level/${lvlID}` if (lvlID > 99999999 || lvlID < -99999999) window.location.href = window.location.href.replace("comments", "search") -if (!Number(lvlID)) {history = true; target = `../api/profile/${lvlID}`} +if (!Number.isInteger(+lvlID)) {history = true; target = `../api/profile/${lvlID}`} +else lvlID = Math.round(+lvlID) fetch(target).then(res => res.json()).then(lvl => { diff --git a/html/filters.html b/html/filters.html index fd57005..0d5b4b9 100644 --- a/html/filters.html +++ b/html/filters.html @@ -38,7 +38,7 @@
- +
diff --git a/html/level.html b/html/level.html index 82857c8..d744f4c 100644 --- a/html/level.html +++ b/html/level.html @@ -26,16 +26,6 @@
- -