From 061ad2502383a8dbac4c72be22f2c0ae85d90361 Mon Sep 17 00:00:00 2001 From: Shiiyu <40838999+Shiiyu@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:39:06 -0400 Subject: [PATCH 1/2] feat: add elite to buttons --- views/stats.ejs | 63 ++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/views/stats.ejs b/views/stats.ejs index 1877118fb3..58ca9026fc 100644 --- a/views/stats.ejs +++ b/views/stats.ejs @@ -119,7 +119,7 @@ function itemIcon(item, classes) { %> icon-<%= item.id %>_<%= item.Damage %> "> -<% } +<% } function jerriefy(rank) { if (extra.isFoolsDay) { @@ -380,7 +380,7 @@ const metaDescription = getMetaDescription() <% for (let error in calculated.errors) { %> <% console.log(calculated.errors[error]) %> <%- calculated.errors[error] %> - +
<% } %>
@@ -438,7 +438,7 @@ const metaDescription = getMetaDescription() <% for (let profile_id in calculated.profiles) { const _profile = calculated.profiles[profile_id]; %>
  • - + <%= _profile.cute_name %> <% if (_profile.game_mode == 'ironman') { %> @@ -468,40 +468,43 @@ const metaDescription = getMetaDescription() Plancke - + + + Elite +
    - + <% if ('social' in calculated && Object.keys(calculated.social).length > 0) { %> - <% if ('DISCORD' in calculated.social) { %> - + <% if ('DISCORD' in calculated.social) { %> + <% } %> - <% if ('TWITTER' in calculated.social) { %> - + <% if ('TWITTER' in calculated.social) { %> + <% } %> - <% if ('YOUTUBE' in calculated.social) { %> - + <% if ('YOUTUBE' in calculated.social) { %> + <% } %> - <% if ('INSTAGRAM' in calculated.social) { %> - + <% if ('INSTAGRAM' in calculated.social) { %> + <% } %> - <% if ('TWITCH' in calculated.social) { %> - + <% if ('TWITCH' in calculated.social) { %> + <% } %> - <% if ('HYPIXEL' in calculated.social) { %> - + <% if ('HYPIXEL' in calculated.social) { %> + <% } %> @@ -572,8 +575,8 @@ const metaDescription = getMetaDescription() <% } %> <% if (calculated.profile.game_mode == 'ironman') { %> - <% if (notAvailable.length > 0) { %> -
    + <% if (notAvailable.length > 0) { %> +
    <% } %> This is an Ironman profile. The player cannot use the auction house, bazaar, or trade with other players. @@ -581,18 +584,18 @@ const metaDescription = getMetaDescription() <% if (calculated.profile.game_mode == 'bingo') { %> - <% if (notAvailable.length > 0) { %> -
    + <% if (notAvailable.length > 0) { %> +
    <% } %> - + This is a Bingo profile. The player cannot spend gems, use the auction house, bazaar or trade with other players. <% } %> <% if (calculated.profile.game_mode == 'island') { %> - <% if (notAvailable.length > 0) { %> + <% if (notAvailable.length > 0) { %>
    <% } %> - + This is a Stranded profile. The player cannot leave their skyblock island or trade with other players. <% } %>
    @@ -630,14 +633,14 @@ const metaDescription = getMetaDescription() <%- include('./sections/stats/items/inventory.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %> <% } %> - + <%- include('./sections/stats/skills.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %> <% if (calculated.dungeons !== undefined) { %> <%- include('./sections/stats/dungeons.ejs', { skillItems }); %> - <% } %> + <% } %> <% if (calculated.slayer !== undefined) { %> @@ -645,7 +648,7 @@ const metaDescription = getMetaDescription() <% } %> - <% if (calculated.minions.unlockedTiers > 0) { %> + <% if (calculated.minions.unlockedTiers > 0) { %> <%- include('./sections/stats/minions.ejs', { skillItems }); %> <% } %> @@ -659,7 +662,7 @@ const metaDescription = getMetaDescription() <% } %> - <% if (calculated.crimson_isle !== undefined) { %> + <% if (calculated.crimson_isle !== undefined) { %> <%- include('./sections/stats/crimson_isle.ejs', {}); %> <% } %> @@ -672,8 +675,8 @@ const metaDescription = getMetaDescription() <% if (calculated.profile.game_mode === "bingo" && calculated.bingo !== undefined) { %> <%- include('./sections/stats/bingo.ejs', {}); %> <% } %> - - + + <% if (calculated.misc !== undefined) { %> <%- include('./sections/stats/misc.ejs', { rarityOrder }); %> <% } %> From ced695dc81898ebce9624218d830f289af47695f Mon Sep 17 00:00:00 2001 From: Shiiyu <40838999+Shiiyu@users.noreply.github.com> Date: Thu, 26 Sep 2024 17:54:47 -0400 Subject: [PATCH 2/2] feat: send to specific profile --- views/stats.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/stats.ejs b/views/stats.ejs index 58ca9026fc..bd02748937 100644 --- a/views/stats.ejs +++ b/views/stats.ejs @@ -470,7 +470,7 @@ const metaDescription = getMetaDescription() Plancke - Elite + Elite