Skip to content

Commit

Permalink
load boost icon
Browse files Browse the repository at this point in the history
  • Loading branch information
KAKXER committed Apr 28, 2024
1 parent 98c5a0a commit 2135727
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<a class="tooltip" aria-label="Subscriber&nbsp;since&nbsp;Jan&nbsp;26, 2023" style="---top: -50px">
<img alt=" " src="./public/badges/nitro.svg"></a>
<a class="tooltip" aria-label="Server&nbsp;boosting&nbsp;since&nbsp;Oct 26, 2023" style="---top: -50px">
<img alt="nitro" src="./public/badges/boost.png"></a>
<img alt="nitro" class="nitroBadge" src="./public/badges/boost.png"></a>
<a class="tooltip" aria-label="Originally&nbsp;known&nbsp;as KAKXER#4888" style="---top: -50px">
<img alt=" " src="./public/badges/legacy-username.svg"></a>
</div>
Expand Down
Binary file added public/badges/boost/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added public/badges/boost/5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/badges/boost/9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions scripts/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 2135727

Please sign in to comment.