leaderboard stuffs

This commit is contained in:
GDColon 2021-03-31 23:35:59 -04:00
parent 2a947878d8
commit 7d9ff68b24
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ module.exports = async (app, req, res, post) => {
let gdFormatting = ""
leaderboard.forEach(x => {
app.userCache(req.id, x.accountID, x.playerID, x.username)
//app.userCache(req.id, x.accountID, x.playerID, x.username)
gdFormatting += `1:${x.username}:2:${x.playerID}:13:${x.coins}:17:${x.usercoins}:6:${x.rank}:9:${x.icon.icon}:10:${x.icon.col1}:11:${x.icon.col2}:14:${forms.indexOf(x.icon.form)}:15:${x.icon.glow ? 2 : 0}:16:${x.accountID}:3:${x.stars}:8:${x.cp}:46:${x.diamonds}:4:${x.demons}|`
})
caches[modMode ? 1 : 0][type] = JSON.stringify(leaderboard)

View file

@ -142,7 +142,7 @@ function leaderboard(val) {
let wp = x.weeklyProgress || {}
$('#searchBox').append(`<div class="searchresult leaderboardSlot">
${x.moderator ? `<img title="${x.moderator == 2 ? "Elder " : ""}Moderator" src="../assets/mod${x.moderator == 2 ? "-elder" : ""}.png?" style="height: 30%; cursor: help; padding-right: 1.6%; transform: translateY(0.7vh)">` : ""}
<h2 class="small inline gdButton" style="margin-top: 1.5%${x.moderator == 2 ? "; color: rgb(255, 200, 0);" : ""}"><a href="${onePointNine ? `../search/${x.playerID}?user` : `../u/${x.username}`}">${x.username}</a></h2>
<h2 class="small inline gdButton" style="margin-top: 1.5%${x.moderator == 2 ? "; color: rgb(255, 200, 0);" : ""}"><a href="${onePointNine ? `../search/${x.playerID}?user` : `../u/${x.accountID}`}">${x.username}</a></h2>
<h3 class="inline sideSpace${x.stars >= 100000 ? " yellow" : ""}" style="font-size: 4.5vh${type == "weekly" ? "; display: none" : ""};">${x.stars} <img class="help valign" src="../assets/star.png?"
style="width: 4vh; transform: translate(0%, -10%);" title="Stars"></h3>