sfd
This commit is contained in:
parent
c11185d969
commit
43cdeb2c7e
1 changed files with 0 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue