forked from rDrama/rDrama
1
0
Fork 0

stop vicious assault on the eyes

master
Aevann 2023-10-27 12:50:56 +03:00
parent 5bcf642a05
commit fb268032e5
3 changed files with 4 additions and 8 deletions

View File

@ -6867,10 +6867,6 @@ div.markdown {
} }
} }
.award-owned * {
vertical-align: middle;
}
.hole-banner-update-section .hole-settings-subsection { .hole-banner-update-section .hole-settings-subsection {
margin-bottom: 1em; margin-bottom: 1em;
} }

View File

@ -183,11 +183,11 @@ function giveaward(t) {
let ownedblock = document.getElementById(`${kind}-owned-block`) let ownedblock = document.getElementById(`${kind}-owned-block`)
if (ownednum > 0) { if (ownednum > 0) {
ownedblock.innerHTML = `<span>${ownednum} owned</span>`; ownedblock.textContent = `${ownednum} owned`;
document.getElementById('award_price').textContent = `${ownednum} owned`; document.getElementById('award_price').textContent = `${ownednum} owned`;
} }
else { else {
ownedblock.innerHTML = `${global_price} <img loading="lazy" alt="coins" class="mr-1 ml-1 award-currency" src="${SITE_FULL_IMAGES}/i/rDrama/coins.webp?x=6">/<img loading="lazy" alt="marseybux" class="mr-1 ml-1 award-currency" src="${SITE_FULL_IMAGES}/i/marseybux.webp?x=6">` ownedblock.textContent = `Price: ${global_price}`
document.getElementById('award_price').textContent = `Price: ${global_price} coins/marseybux`; document.getElementById('award_price').textContent = `Price: ${global_price} coins/marseybux`;
} }
} }

View File

@ -28,9 +28,9 @@
<span id="{{award.kind}}-owned" class="d-none">{{award.owned}}</span> <span id="{{award.kind}}-owned" class="d-none">{{award.owned}}</span>
<div id="{{award.kind}}-owned-block" class="text-muted award-owned"> <div id="{{award.kind}}-owned-block" class="text-muted award-owned">
{% if award.owned %} {% if award.owned %}
<span>{{award.owned}} owned</span> {{award.owned}} owned
{% else %} {% else %}
<span>{{price}}</span> <img loading="lazy" alt="coins" class="mr-1 ml-1 award-currency" src="{{SITE_FULL_IMAGES}}/i/rDrama/coins.webp?x=6">/<img loading="lazy" alt="marseybux" class="mr-1 ml-1 award-currency" src="{{SITE_FULL_IMAGES}}/i/marseybux.webp?x=6"> Price: {{price}}
{% endif %} {% endif %}
</div> </div>
</div> </div>