forked from rDrama/rDrama
i have no idea wtf im doing
parent
3415120eb2
commit
fde1b676b7
|
@ -101,18 +101,18 @@ function disable_btn(t) {
|
|||
if (!t.classList.contains('disabled')) {
|
||||
const isShopConfirm = t.id.startsWith('buy1-') || t.id.startsWith('buy2-') || t.id.startsWith('giveaward')
|
||||
|
||||
if (isShopConfirm) return
|
||||
if (!isShopConfirm) {
|
||||
t.classList.add('disabled');
|
||||
|
||||
t.classList.add('disabled');
|
||||
|
||||
setTimeout(() => {
|
||||
t.disabled = true;
|
||||
}, 0.0000000000000000001);
|
||||
|
||||
setTimeout(() => {
|
||||
t.classList.remove("disabled");
|
||||
t.disabled = false;
|
||||
}, 2000);
|
||||
setTimeout(() => {
|
||||
t.disabled = true;
|
||||
}, 0.0000000000000000001);
|
||||
|
||||
setTimeout(() => {
|
||||
t.classList.remove("disabled");
|
||||
t.disabled = false;
|
||||
}, 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue