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 0000000..27443f2 Binary files /dev/null and b/assets/leaderboard-top.png differ diff --git a/assets/leaderboard-week.png b/assets/leaderboard-week.png new file mode 100644 index 0000000..6e87294 Binary files /dev/null and b/assets/leaderboard-week.png differ 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 @@
- Leaderboards are coming soon™ -
- -