Trophies now work lmao
This commit is contained in:
parent
ff7cc0e832
commit
b5d1cca985
1 changed files with 12 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
|||
<div class="brownBox center supercenter" style="width: 135vh; height: 82%; margin-top: -0.7%">
|
||||
|
||||
<div id="globalrank0" style="position: absolute; left: 0.3%; top: 1.5%; width: 18%; text-align: left">
|
||||
<p style="margin: 0;"><img src="../assets/trophy.png" class="inline valign help" width="22%" title="Global Rank"> [[RANK]]</p>
|
||||
<p style="margin: 0;"><img src="../assets/trophy.png" class="inline valign help profileTrophy" width="22%" title="Global Rank"> [[RANK]]</p>
|
||||
</div>
|
||||
|
||||
<h1 class="veryBig inline" style="width: inherit">
|
||||
|
@ -200,6 +200,16 @@ if (`[[YOUTUBE]]` != "null") $('#youtube').show()
|
|||
if (`[[TWITTER]]` != "null") $('#twitter').show()
|
||||
if (`[[TWITCH]]` != "null") $('#twitch').show()
|
||||
|
||||
let numRank = parseInt("[[RANK]]")
|
||||
if (numRank < 2) $(".profileTrophy").attr("src","../assets/trophies/1.png")
|
||||
else if (numRank <= 10) $(".profileTrophy").attr("src","../assets/trophies/2.png")
|
||||
else if (numRank <= 50 ) $(".profileTrophy").attr("src","../assets/trophies/3.png")
|
||||
else if (numRank <= 100) $(".profileTrophy").attr("src","../assets/trophies/4.png")
|
||||
else if (numRank <= 200) $(".profileTrophy").attr("src","../assets/trophies/5.png")
|
||||
else if (numRank <= 500) $(".profileTrophy").attr("src","../assets/trophies/6.png")
|
||||
else if (numRank <= 1000) $(".profileTrophy").attr("src","../assets/trophies/7.png")
|
||||
else $(".profileTrophy").attr("src","../assets/trophies/0.png")
|
||||
|
||||
let messages = "[[MESSAGES]]"
|
||||
let commenthistory = "[[COMMENTHISTORY]]"
|
||||
|
||||
|
@ -415,4 +425,4 @@ $(document).keydown(function(k) {
|
|||
})
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue