Tweaked weekly leaderboard a little
This commit is contained in:
parent
2fed2cb65d
commit
fd20fd9575
5 changed files with 22 additions and 11 deletions
BIN
assets/gdps/resurrection_icon.png
Normal file
BIN
assets/gdps/resurrection_icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 186 KiB |
BIN
assets/gdps/resurrection_logo.png
Normal file
BIN
assets/gdps/resurrection_logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 213 KiB |
|
@ -60,6 +60,7 @@
|
|||
<script type="text/javascript" src="../dragscroll.js"></script>
|
||||
<script>
|
||||
|
||||
let localhost = window.location.hostname == "localhost"
|
||||
let host = window.location.host.split(".").slice(-2).join(".")
|
||||
Fetch('../api/gdps').then(servers => {
|
||||
|
||||
|
@ -75,7 +76,7 @@ Fetch('../api/gdps').then(servers => {
|
|||
</div>
|
||||
|
||||
<div class="center" style="position:absolute; right: 7%; transform:translateY(-150%); height: 10%">
|
||||
<a href="http://${x.id || ""}${x.id ? "." : ""}${host}"><img style="margin-bottom: 4.5%" class="valign gdButton" src="../assets/view.png" height="105%"></a>
|
||||
<a href="http://${x.id || ""}${localhost ? ".x." : ""}${x.id ? "." : ""}${host}"><img style="margin-bottom: 4.5%" class="valign gdButton" src="../assets/view.png" height="105%"></a>
|
||||
</div>
|
||||
</div>`)
|
||||
})
|
||||
|
|
|
@ -148,10 +148,11 @@ function leaderboard(val) {
|
|||
$('#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: #FF9977;" : ""}"><a href="${onePointNine ? `../search/${x.playerID}?user` : `../u/${x.username}`}">${x.username}</a></h2>
|
||||
<h3 class="inline sideSpace${x.stars >= 100000 ? " yellow" : ""}" style="font-size: 4.5vh">${type == "weekly" ? "+" : ""}${x.stars} <img class="help valign" src="../assets/star.png"
|
||||
<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="height: 19%; transform: translate(-25%, -10%);" title="Stars"></h3>
|
||||
|
||||
<h3 class="lessSpaced leaderboardStats">
|
||||
${type != "weekly" ? "" : `<span${x.stars >= 1000 ? " class='yellow'" : ""}>+${x.stars}</span> <img class="help valign" src="../assets/star.png" title="Star Gain">`}
|
||||
${wk || onePointNine ? "" : `<span${x.diamonds >= 65535 ? ` class='blue'>${type == "accurate" ? "~" : ""}` : ">"}${x.diamonds}</span> <img class="help valign" src="../assets/diamond.png" title="Diamonds">`}
|
||||
${wk ? " " : `<span${x.coins >= 149 ? " class='yellow'" : ""}>${x.coins}</span> <img class="help valign" src="../assets/coin.png" title="Secret Coins">`}
|
||||
${wk || onePointNine ? "" : `<span${x.usercoins >= 10000 ? " class='brightblue'" : ""}>${x.usercoins}</span> <img class="help valign" src="../assets/silvercoin.png" title="User Coins">`}
|
||||
|
|
27
servers.json
27
servers.json
|
@ -80,15 +80,6 @@
|
|||
"endpoint": "http://cnekgdps.7m.pl/cnekgdpsdtb/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "RealistikGDPS",
|
||||
"link": "http://rgdps.ussr.pl/",
|
||||
"author": "RealistikDash",
|
||||
"authorLink": "https://www.youtube.com/c/RealistikDash",
|
||||
"id": "rgdps",
|
||||
"endpoint": "http://rgdps.ussr.pl/gdpsdatabase/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Geometry Dash Gravity",
|
||||
"link": "https://discord.gg/qpUJgBC",
|
||||
|
@ -98,6 +89,15 @@
|
|||
"endpoint": "http://gravity4.000webhostapp.com/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "RealistikGDPS",
|
||||
"link": "http://rgdps.ussr.pl/",
|
||||
"author": "RealistikDash",
|
||||
"authorLink": "https://www.youtube.com/c/RealistikDash",
|
||||
"id": "rgdps",
|
||||
"endpoint": "http://rgdps.ussr.pl/gdpsdatabase/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Supreme GDPS",
|
||||
"link": "https://discord.gg/pAU42pbREb",
|
||||
|
@ -105,5 +105,14 @@
|
|||
"authorLink": "https://youtube.com/c/MrScatman7",
|
||||
"id": "supreme",
|
||||
"endpoint": "http://gdps.mathieuar.fr/supreme1/"
|
||||
},
|
||||
|
||||
{
|
||||
"name": "Resurrection GDPS",
|
||||
"link": "http://gdpsresu.000webhostapp.com/",
|
||||
"author": "Switchstep",
|
||||
"authorLink": "https://www.youtube.com/channel/UCg9HipnGYtfwIax4bLTTzUQ",
|
||||
"id": "resurrection",
|
||||
"endpoint": "http://gdpsresu.000webhostapp.com/"
|
||||
}
|
||||
]
|
Loading…
Add table
Reference in a new issue