Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit fd9e274

Browse files
authored
Merge pull request #2278 from SkyCryptWebsite/elite
feat: add elite to buttons
2 parents 57d6d1a + ced695d commit fd9e274

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

views/stats.ejs

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function itemIcon(item, classes) { %>
119119
icon-<%= item.id %>_<%= item.Damage %>
120120
">
121121
</div>
122-
<% }
122+
<% }
123123
124124
function jerriefy(rank) {
125125
if (extra.isFoolsDay) {
@@ -380,7 +380,7 @@ const metaDescription = getMetaDescription()
380380
<% for (let error in calculated.errors) { %>
381381
<% console.log(calculated.errors[error]) %>
382382
<%- calculated.errors[error] %>
383-
383+
384384
<br>
385385
<% } %>
386386
<br>
@@ -438,7 +438,7 @@ const metaDescription = getMetaDescription()
438438
<% for (let profile_id in calculated.profiles) {
439439
const _profile = calculated.profiles[profile_id]; %>
440440
<li>
441-
<a class="goto" href="/stats/<%= calculated.uuid %>/<%= _profile.profile_id %><%= Object.keys(req.query).length > 0 ? '?' + new URLSearchParams(req.query).toString() : '' %>">
441+
<a class="goto" href="/stats/<%= calculated.uuid %>/<%= _profile.profile_id %><%= Object.keys(req.query).length > 0 ? '?' + new URLSearchParams(req.query).toString() : '' %>">
442442
<span class="profile-name"><%= _profile.cute_name %></span>
443443
444444
<% if (_profile.game_mode == 'ironman') { %>
@@ -468,40 +468,43 @@ const metaDescription = getMetaDescription()
468468
469469
<!-- Placnke Button-->
470470
<a href="https://plancke.io/hypixel/player/stats/<%= calculated.display_name %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link">Plancke</a>
471-
471+
472+
<!-- Elite Button-->
473+
<a href="https://elitebot.dev/@<%= calculated.display_name %>/<%= calculated.profile.profile_id %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link">Elite</a>
474+
472475
<div id="additional_socials">
473476
<!-- Copy UUID Button -->
474477
<button data-copy-text="<%= calculated.uuid %>" class="copy-text additional-player-stat">Copy UUID</button>
475-
478+
476479
<% if ('social' in calculated && Object.keys(calculated.social).length > 0) { %>
477480
<!-- Discord Button -->
478-
<% if ('DISCORD' in calculated.social) { %>
479-
<button data-copy-text="<%= calculated.social.DISCORD %>" class="additional-player-stat copy-text external-discord external-icon"><%= calculated.social.DISCORD %></button>
481+
<% if ('DISCORD' in calculated.social) { %>
482+
<button data-copy-text="<%= calculated.social.DISCORD %>" class="additional-player-stat copy-text external-discord external-icon"><%= calculated.social.DISCORD %></button>
480483
<% } %>
481484
482485
<!-- Twitter Button -->
483-
<% if ('TWITTER' in calculated.social) { %>
484-
<a data-tippy-content="Twitter" href="<%= calculated.social.TWITTER %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-twitter"></a>
486+
<% if ('TWITTER' in calculated.social) { %>
487+
<a data-tippy-content="Twitter" href="<%= calculated.social.TWITTER %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-twitter"></a>
485488
<% } %>
486489
487490
<!-- Youtube Button -->
488-
<% if ('YOUTUBE' in calculated.social) { %>
489-
<a data-tippy-content="YouTube" href="<%= calculated.social.YOUTUBE %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-youtube"></a>
491+
<% if ('YOUTUBE' in calculated.social) { %>
492+
<a data-tippy-content="YouTube" href="<%= calculated.social.YOUTUBE %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-youtube"></a>
490493
<% } %>
491494
492495
<!-- Instagram Button -->
493-
<% if ('INSTAGRAM' in calculated.social) { %>
494-
<a data-tippy-content="Instagram" href="<%= calculated.social.INSTAGRAM %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-instagram"></a>
496+
<% if ('INSTAGRAM' in calculated.social) { %>
497+
<a data-tippy-content="Instagram" href="<%= calculated.social.INSTAGRAM %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-instagram"></a>
495498
<% } %>
496499
497500
<!-- Twitch Button -->
498-
<% if ('TWITCH' in calculated.social) { %>
499-
<a data-tippy-content="Twitch" href="<%= calculated.social.TWITCH %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-twitch"></a>
501+
<% if ('TWITCH' in calculated.social) { %>
502+
<a data-tippy-content="Twitch" href="<%= calculated.social.TWITCH %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-twitch"></a>
500503
<% } %>
501504
502505
<!-- Hypixel Button -->
503-
<% if ('HYPIXEL' in calculated.social) { %>
504-
<a data-tippy-content="Hypixel Forums" href="<%= calculated.social.HYPIXEL %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-hypixel"></a>
506+
<% if ('HYPIXEL' in calculated.social) { %>
507+
<a data-tippy-content="Hypixel Forums" href="<%= calculated.social.HYPIXEL %>" target="_blank" rel="noreferrer" class="additional-player-stat external-link external-icon external-hypixel"></a>
505508
<% } %>
506509
507510
<button class="additional-player-stat" id="reveal_socials" aria-label="reveal socials"></button>
@@ -572,27 +575,27 @@ const metaDescription = getMetaDescription()
572575
<% } %>
573576
574577
<% if (calculated.profile.game_mode == 'ironman') { %>
575-
<% if (notAvailable.length > 0) { %>
576-
<br>
578+
<% if (notAvailable.length > 0) { %>
579+
<br>
577580
<% } %>
578581
579582
This is an <strong>Ironman</strong> profile. The player cannot use the auction house, bazaar, or trade with other players.
580583
<% } %>
581584
582585
583586
<% if (calculated.profile.game_mode == 'bingo') { %>
584-
<% if (notAvailable.length > 0) { %>
585-
<br>
587+
<% if (notAvailable.length > 0) { %>
588+
<br>
586589
<% } %>
587-
590+
588591
This is a <strong>Bingo</strong> profile. The player cannot spend gems, use the auction house, bazaar or trade with other players.
589592
<% } %>
590593
591594
<% if (calculated.profile.game_mode == 'island') { %>
592-
<% if (notAvailable.length > 0) { %>
595+
<% if (notAvailable.length > 0) { %>
593596
<br>
594597
<% } %>
595-
598+
596599
This is a <strong>Stranded</strong> profile. The player cannot leave their skyblock island or trade with other players.
597600
<% } %>
598601
</div>
@@ -630,22 +633,22 @@ const metaDescription = getMetaDescription()
630633
<!-- Inventories (Inventory, Storage, Ender Chest, Vault, Accessories, Pots, Fish, Quiver) -->
631634
<%- include('./sections/stats/items/inventory.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %>
632635
<% } %>
633-
636+
634637
<!-- Skills -->
635638
<%- include('./sections/stats/skills.ejs', { getRarityUpgradeClass, rarityOrder, isEnchanted }); %>
636639
637640
<!-- Dungeons -->
638641
<% if (calculated.dungeons !== undefined) { %>
639642
<%- include('./sections/stats/dungeons.ejs', { skillItems }); %>
640-
<% } %>
643+
<% } %>
641644
642645
<!-- Slayer -->
643646
<% if (calculated.slayer !== undefined) { %>
644647
<%- include('./sections/stats/slayer.ejs', {}); %>
645648
<% } %>
646649
647650
<!-- Minions -->
648-
<% if (calculated.minions.unlockedTiers > 0) { %>
651+
<% if (calculated.minions.unlockedTiers > 0) { %>
649652
<%- include('./sections/stats/minions.ejs', { skillItems }); %>
650653
<% } %>
651654
@@ -659,7 +662,7 @@ const metaDescription = getMetaDescription()
659662
<% } %>
660663
661664
<!-- Crimson Isle -->
662-
<% if (calculated.crimson_isle !== undefined) { %>
665+
<% if (calculated.crimson_isle !== undefined) { %>
663666
<%- include('./sections/stats/crimson_isle.ejs', {}); %>
664667
<% } %>
665668
@@ -672,8 +675,8 @@ const metaDescription = getMetaDescription()
672675
<% if (calculated.profile.game_mode === "bingo" && calculated.bingo !== undefined) { %>
673676
<%- include('./sections/stats/bingo.ejs', {}); %>
674677
<% } %>
675-
676-
<!-- Miscellaneous -->
678+
679+
<!-- Miscellaneous -->
677680
<% if (calculated.misc !== undefined) { %>
678681
<%- include('./sections/stats/misc.ejs', { rarityOrder }); %>
679682
<% } %>

0 commit comments

Comments
 (0)