This commit is contained in:
Aevann1 2021-11-19 01:59:40 +02:00
parent c11185d969
commit 43cdeb2c7e

View file

@ -56,17 +56,6 @@ function post_toast_callback(url, data, callback) {
}
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 toggleElement(group, id) {
for(let el of document.getElementsByClassName(group)) {
if(el.id != id) {