diff --git a/woc/leaderboard/main.js b/woc/leaderboard/main.js index 2f2643c..1e15298 100644 --- a/woc/leaderboard/main.js +++ b/woc/leaderboard/main.js @@ -47,7 +47,7 @@ function pageButtons(pages) { } if (maxRight > pages) { maxLeft = pages - (state.window - 1) - + if (maxLeft < 1){ maxLeft = 1 } @@ -69,8 +69,8 @@ function pageButtons(pages) { $('.page').click(function() { scoreboard = '' window.scroll({ - top: 0, - left: 0, + top: 0, + left: 0, behavior: 'smooth' }); state.page = Number($(this).val()) @@ -81,8 +81,8 @@ function pageButtons(pages) { function buildLeaderBoard() { - Array.prototype.getIndex = function(username) { - for(const user in this){ + Array.prototype.getIndex = function(username) { + for(const user in this){ if(this[user].user === username) return user } }; @@ -118,8 +118,10 @@ function buildLeaderBoard() {
-

${user.user}

-

${user.user}

+ +

${user.user}

+

${user.user}

+
diff --git a/woc/leaderboard/style.css b/woc/leaderboard/style.css index a67fd85..437b83f 100644 --- a/woc/leaderboard/style.css +++ b/woc/leaderboard/style.css @@ -422,12 +422,21 @@ p { color: #fff; } +.userLink { + color: inherit; +} + +.userLink:hover { + color: inherit; + text-decoration: inherit; +} + .text-primary{ color: #00ff10 !important; } .bg-primary, .btn-primary{ - background: #d701e8 !important; + background: #d701e8 !important; } .avatar {