forked from rDrama/rDrama
fds
parent
e8b6b1221a
commit
f4d878ab27
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script src="/assets/js/userpage.js?v=69"></script>
|
<script src="/assets/js/userpage.js?v=70"></script>
|
||||||
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
|
<title>{{u.username}}'s profile - {{'SITE_NAME' | app_config}}</title>
|
||||||
{% if u.is_private %}
|
{% if u.is_private %}
|
||||||
<meta name="robots" content="noindex">
|
<meta name="robots" content="noindex">
|
||||||
|
@ -42,6 +42,17 @@
|
||||||
{% block desktopUserBanner %}
|
{% block desktopUserBanner %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
const TRANSFER_TAX = 0.01;
|
||||||
|
|
||||||
|
function updateTax(mobile=false) {
|
||||||
|
let suf = mobile ? "-mobile" : "";
|
||||||
|
let amount = parseInt(document.getElementById("coins-transfer-amount" + suf).value);
|
||||||
|
if(isNaN(amount) || amount < 0) {
|
||||||
|
amount = 0;
|
||||||
|
}
|
||||||
|
document.getElementById("coins-transfer-taxed" + suf).innerText = amount - Math.ceil(amount*TRANSFER_TAX);
|
||||||
|
}
|
||||||
|
|
||||||
function transferCoins(mobile=false) {
|
function transferCoins(mobile=false) {
|
||||||
let t = event.target;
|
let t = event.target;
|
||||||
t.disabled = true;
|
t.disabled = true;
|
||||||
|
|
Loading…
Reference in New Issue