【 ~ colors ~ 】
added special color if you have >100k stars, max diamonds, or max coins
This commit is contained in:
parent
49680812c0
commit
9401c2f820
9 changed files with 22 additions and 12 deletions
|
@ -36,7 +36,7 @@ module.exports = async (app, req, res) => {
|
|||
cp: account[8],
|
||||
coins: account[13],
|
||||
usercoins: account[17],
|
||||
diamonds: account[46] == '65535' ? '65535+' : account[46],
|
||||
diamonds: account[46]
|
||||
}
|
||||
|
||||
leaderboard.push(accObj)
|
||||
|
|
|
@ -88,6 +88,7 @@ module.exports = async (app, req, res, api, ID, analyze) => {
|
|||
|
||||
if (level.difficulty == "Extreme Demon") {
|
||||
request.get('https://www.pointercrate.com/api/v1/demons/?name=' + level.name.trim(), function (err, resp, demonList) {
|
||||
if (err) return sendLevel()
|
||||
let demon = JSON.parse(demonList)
|
||||
if (demon[0] && demon[0].position <= 150) level.demonList = demon[0].position
|
||||
return sendLevel()
|
||||
|
|
|
@ -35,7 +35,7 @@ module.exports = async (app, req, res) => {
|
|||
x.cp = x[8]
|
||||
x.coins = x[13]
|
||||
x.usercoins = x[17]
|
||||
x.diamonds = x[46] == '65535' ? '65535+' : x[46],
|
||||
x.diamonds = x[46]
|
||||
keys.forEach(k => delete x[k])
|
||||
})
|
||||
return res.send(scores)
|
||||
|
|
|
@ -69,7 +69,8 @@ module.exports = async (app, req, res, api, analyze) => {
|
|||
}
|
||||
|
||||
if (level.difficulty == "Extreme Demon") {
|
||||
request.get('https://www.pointercrate.com/api/v1/demons/?name=' + level.name.trim(), function (err, resp, demonList) {
|
||||
request.get('http://www.pointercrate.com/api/v1/demons/?name=' + level.name.trim(), function (err, resp, demonList) {
|
||||
if (err) return sendLevel()
|
||||
let demon = JSON.parse(demonList)
|
||||
if (demon[0] && demon[0].position <= 150) level.demonList = demon[0].position
|
||||
return sendLevel()
|
||||
|
|
|
@ -32,7 +32,7 @@ module.exports = async (app, req, res, api, getLevels) => {
|
|||
accountID: account[16],
|
||||
rank: account[30],
|
||||
stars: account[3],
|
||||
diamonds: account[46] == '65535' ? '65535+' : account[46],
|
||||
diamonds: account[46],
|
||||
coins: account[13],
|
||||
userCoins: account[17],
|
||||
demons: account[4],
|
||||
|
|
|
@ -1048,6 +1048,10 @@ input::-webkit-inner-spin-button {
|
|||
outline-offset: -0.4vh;
|
||||
}
|
||||
|
||||
.yellow {
|
||||
color: #ffde00;
|
||||
}
|
||||
|
||||
.gold {
|
||||
color: rgb(255, 200, 0);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ class Level {
|
|||
this.verifiedCoins = levelInfo[38] == 1
|
||||
this.starsRequested = levelInfo[39]
|
||||
this.ldm = levelInfo[40] == 1
|
||||
this.objects = levelInfo[45] == "65535" ? "65535+" : levelInfo[45]
|
||||
this.objects = levelInfo[45]
|
||||
this.large = levelInfo[45] > 40000;
|
||||
this.cp = (this.stars > 0) + this.featured + this.epic
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ let top250Text =
|
|||
`The <g>Top 250<> leaderboard contains the <g>top 250 players<>, sorted by <y>star<> value. However, due to <o>hackers<> flooding the leaderboard, this leaderboard has been <b>frozen<> for well over 2 years and displays <o>very outdated information<>.`
|
||||
|
||||
let accurateText =
|
||||
`The <g>Accurate Leaderboard<> is a highly accurate, hacker-proof leaderboard with <y>proper stats and positioning<> (unlike the regular one). It is managed by <b>SMJSGaming, XShadowWizardX, Pepper360, Octeract<>, and many many other helpers. You can check out their interactive <a target="_blank" href="https://docs.google.com/spreadsheets/d/10lbPnDYJXhbtlA0ls0cGjjX_osFSG559IDrTbhgPHvc"><span style="color:aqua" style="text-decoration: underline">leaderboard spreadsheet here<></a>.`
|
||||
`The <g>Accurate Leaderboard<> is a highly accurate, hacker-proof leaderboard with <y>proper stats and positioning<> (unlike the regular one). It is managed by <b>SMJSGaming, XShadowWizardX, Pepper360, Octeract<>, and many many other helpers. You can check out their interactive <a target="_blank" href="https://docs.google.com/spreadsheets/d/10lbPnDYJXhbtlA0ls0cGjjX_osFSG559IDrTbhgPHvc"><span style="color:aqua; text-decoration: underline">leaderboard spreadsheet here<></a>.`
|
||||
|
||||
let creatorText =
|
||||
`The <g>Creators Leaderboard<> is sorted by <g>creator points<>, rather than stars. A player's <g>creator points<> (CP) is calculated by counting their number of <y>star rated<> levels, plus an extra point for every level that has been <b>featured<>, plus an additional point for <o>epic rated<> levels.`
|
||||
|
@ -114,12 +114,12 @@ function leaderboard(val) {
|
|||
|
||||
$('#searchBox').append(`<div class="searchresult leaderboardSlot">
|
||||
<h2 class="small inline gdButton" style="margin-top: 1.5%"><a href="../profile/${x.username}">${x.username}</a></h2>
|
||||
<h3 class="inline sideSpace" style="font-size: 4.5vh">${x.stars} <img class="valign" src="../assets/star.png"
|
||||
<h3 class="inline sideSpace${x.stars > 100000 ? " yellow" : ""}" style="font-size: 4.5vh">${x.stars} <img class="valign" src="../assets/star.png"
|
||||
style="cursor: help; height: 19%; transform: translate(-25%, -10%);" title="Stars"></h3>
|
||||
|
||||
<h3 class="lessSpaced leaderboardStats">
|
||||
${x.diamonds} <img class="valign" src="../assets/diamond.png" style="cursor: help" title="Diamonds">
|
||||
${x.coins} <img class="valign" src="../assets/coin.png" style="cursor: help" title="Secret Coins">
|
||||
<span${x.diamonds >= 65535 ? " class='blue'" : ""}>${x.diamonds}</span> <img class="valign" src="../assets/diamond.png" style="cursor: help" title="Diamonds">
|
||||
<span${x.coins >= 149 ? " class='yellow'" : ""}>${x.coins}</span> <img class="valign" src="../assets/coin.png" style="cursor: help" title="Secret Coins">
|
||||
${x.usercoins} <img class="valign" src="../assets/silvercoin.png" style="cursor: help" title="User Coins">
|
||||
${x.demons} <img class="valign" src="../assets/demon.png" style="cursor: help" title="Demons">
|
||||
${x.cp != 0 ? `${x.cp} <img class="valign" src="../assets/cp.png" style="cursor: help" title="Creator Points">` : ""}
|
||||
|
|
|
@ -83,9 +83,9 @@
|
|||
|
||||
<hr style="margin-bottom: 2%">
|
||||
<h3 id="collectibles">
|
||||
[[STARS]] <img class="valign" src="../assets/star.png" style="cursor: help" title="Stars">
|
||||
[[DIAMONDS]] <img class="valign" src="../assets/diamond.png" style="cursor: help" title="Diamonds">
|
||||
[[COINS]] <img class="valign" src="../assets/coin.png" style="cursor: help" title="Secret Coins">
|
||||
<span id="stars">[[STARS]]</span> <img class="valign" src="../assets/star.png" style="cursor: help" title="Stars">
|
||||
<span id="diamonds">[[DIAMONDS]]</span> <img class="valign" src="../assets/diamond.png" style="cursor: help" title="Diamonds">
|
||||
<span id="coins">[[COINS]]</span> <img class="valign" src="../assets/coin.png" style="cursor: help" title="Secret Coins">
|
||||
[[USERCOINS]] <img class="valign"src="../assets/silvercoin.png" style="cursor: help" title="User Coins">
|
||||
[[DEMONS]] <img class="valign"src="../assets/demon.png" style="cursor: help" title="Demons">
|
||||
[[CP]] <img class="valign" src="../assets/cp.png" style="cursor: help" title="Creator Points">
|
||||
|
@ -267,6 +267,10 @@ $('#content').on('input', function() {
|
|||
$('#charcount').text(remaining)
|
||||
})
|
||||
|
||||
if ([[DIAMONDS]] >= 65535) $('#diamonds').addClass('blue')
|
||||
if ([[COINS]] >= 149) $('#coins').addClass('yellow')
|
||||
if ([[STARS]] >= 100000) $('#stars').addClass('yellow')
|
||||
|
||||
$('#submitComment').click(function () {
|
||||
let comment = $('#content').val()
|
||||
let username = '[[USERNAME]]'
|
||||
|
|
Loading…
Reference in a new issue