diff --git a/index.html b/index.html index 0ec260c..318143b 100644 --- a/index.html +++ b/index.html @@ -90,7 +90,7 @@  - nitro + nitro  diff --git a/public/badges/boost/1.png b/public/badges/boost/1.png new file mode 100644 index 0000000..87b04f8 Binary files /dev/null and b/public/badges/boost/1.png differ diff --git a/public/badges/boost/2.png b/public/badges/boost/2.png new file mode 100644 index 0000000..809c891 Binary files /dev/null and b/public/badges/boost/2.png differ diff --git a/public/badges/boost/3.png b/public/badges/boost/3.png new file mode 100644 index 0000000..9772e8e Binary files /dev/null and b/public/badges/boost/3.png differ diff --git a/public/badges/boost.png b/public/badges/boost/4.png similarity index 100% rename from public/badges/boost.png rename to public/badges/boost/4.png diff --git a/public/badges/boost/5.png b/public/badges/boost/5.png new file mode 100644 index 0000000..3ff1339 Binary files /dev/null and b/public/badges/boost/5.png differ diff --git a/public/badges/boost/6.png b/public/badges/boost/6.png new file mode 100644 index 0000000..8114802 Binary files /dev/null and b/public/badges/boost/6.png differ diff --git a/public/badges/boost/7.png b/public/badges/boost/7.png new file mode 100644 index 0000000..ab23a16 Binary files /dev/null and b/public/badges/boost/7.png differ diff --git a/public/badges/boost/8.png b/public/badges/boost/8.png new file mode 100644 index 0000000..09e7037 Binary files /dev/null and b/public/badges/boost/8.png differ diff --git a/public/badges/boost/9.png b/public/badges/boost/9.png new file mode 100644 index 0000000..70affa7 Binary files /dev/null and b/public/badges/boost/9.png differ diff --git a/scripts/static.js b/scripts/static.js index a4df707..9762960 100644 --- a/scripts/static.js +++ b/scripts/static.js @@ -46,6 +46,10 @@ function RequestLoadPage() { $('.tooltip').eq(3).attr("aria-label", user.data.kv.boostTextHover.replace(/ /, "\u00A0").replace(/ /, "\u00A0").replace(/ /, "\u00A0")); $('.tooltip').eq(4).attr("aria-label", user.data.kv.originalIdHoverText.replace(/ /, "\u00A0").replace(/ /, "\u00A0")); $("#status-image").attr('src', `./public/status/${user.data.discord_status}.png`); + + + $(".nitroBadge").attr('src', `./public/badges/boost/${user.data.kv.boostType}.png`); + if (user.data.discord_status !== "offline") { $(".custom-status-text").text(user.data.activities[0].state.substring(0, 93) + "..."); $("#custom-status-emoji").attr('src', `https://cdn.discordapp.com/emojis/${user.data.activities[0].emoji.id}?format=webp&size=24&quality=lossless`);