Fixed leaderboard boomling
This commit is contained in:
parent
c78516ba54
commit
47d392fca4
2 changed files with 10 additions and 8 deletions
|
@ -42,7 +42,7 @@
|
|||
</div>
|
||||
|
||||
<div style="position:absolute; bottom: 0%; right: 0%; width: 100%; text-align: right;">
|
||||
<a title="Boomlings Leaderboard?????" href="../boomlings"><img id="boomling" style="position: absolute; width: 6%; top: 2%; right: 1%"></a>
|
||||
<a title="Boomlings Leaderboard?????" href="../boomlings"><img id="boomling" style="position: absolute; width: 6%; top: 2%; right: 1%; display: none"></a>
|
||||
<img class="cornerPiece noClick" src="../assets/corner.png" width=7%; style="transform: scaleX(-1)">
|
||||
</div>
|
||||
|
||||
|
@ -94,7 +94,7 @@ let trophies = [1, 3, 10, 25, 50, 75, 100]
|
|||
let boomColors = ["red", "orange", "yellow", "green", "teal", "blue", "pink"]
|
||||
|
||||
let top250Text =
|
||||
`The <cg>Stars</cg> leaderboard contains the <cg>top 250 players</cg>, sorted by <cy>star</cy> value. It was formerly <co>inaccurate</co> in vanilla GD but should be much more <cb>reliable</cb> now.`
|
||||
`The <cg>Stars</cg> leaderboard contains the <cg>top 250 players</cg>, sorted by <cy>star</cy> value. It was formerly <co>inaccurate</co> but should be much more <cb>reliable</cb> now.`
|
||||
|
||||
let topGDPSText =
|
||||
`The <cg>Stars</cg> leaderboard contains the <cg>top players</cg>, sorted by <cy>star</cy> value.`
|
||||
|
@ -120,18 +120,18 @@ function leaderboard(val) {
|
|||
|
||||
Fetch(`../api/leaderboard?count=250&${val}&type=${sort}${modMode ? "&mod=1" : ""}`).then(res => {
|
||||
|
||||
top250Text = topGDPSText
|
||||
$('#boomling').remove()
|
||||
|
||||
if (gdps) {
|
||||
top250Text = topGDPSText
|
||||
$('#accurateTabOn').remove()
|
||||
$('#accurateTabOff').remove()
|
||||
|
||||
Fetch('../api/gdps?current=1').then(ps => {
|
||||
$('#accurateTabOn').remove()
|
||||
$('#accurateTabOff').remove()
|
||||
if (weekly) return
|
||||
else if (ps.weeklyLeaderboard) { $('#weeklyTabOff').show(); weekly = true }
|
||||
else $('#scoreTabs').css('margin-left', '-29vh')
|
||||
})
|
||||
}
|
||||
else $('#boomling').show()
|
||||
|
||||
$('#searchBox').html(`<div style="height: 4.5%"></div>`)
|
||||
$('.ranking').remove()
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
[ "Shy Guy", 51, 9, 12, 0 ],
|
||||
[ "Creeper", 42, 20, 15, 0 ],
|
||||
[ "Companion Cube", 47, 12, 19, 0 ],
|
||||
[ "Missing Texture", 23, 7, 15, 0 ],
|
||||
[ "Missing Source", 23, 7, 15, 0 ],
|
||||
|
||||
[ "AdvyStyles", 25, 12, 3, 0 ],
|
||||
[ "AeonAir", 109, 29, 3, 0 ],
|
||||
|
@ -24,11 +24,13 @@
|
|||
[ "GD Jaden", 74, 13, 12, 1 ],
|
||||
[ "Horny", 102, 7, 12, 1 ],
|
||||
[ "Juniper", 98, 40, 12, 1 ],
|
||||
[ "kale", 51, 41, 12, 1 ],
|
||||
[ "klaux", 46, 22, 25, 1 ],
|
||||
[ "Knobbelboy", 37, 10, 14, 0 ],
|
||||
[ "Knots", 50, 40, 3, 1 ],
|
||||
[ "Krisz", 126, 18, 14, 1 ],
|
||||
[ "KrmaL", 30, 9, 12, 1 ],
|
||||
[ "Lation", 60, 12, 16, 0 ],
|
||||
[ "lemoncak3", 107, 11, 12, 0 ],
|
||||
[ "Lemons", 93, 7, 11, 1 ],
|
||||
[ "Loafeeee", 102, 8, 22, 1 ],
|
||||
|
|
Loading…
Reference in a new issue