tw
unknown
javascript
2 years ago
424 B
10
Indexable
function send_attack(attack_time, ms){
let myTimer = setInterval(()=>{
if(document.getElementById('date_arrival').innerText.slice(-8)===attack_time){
console.log('hi')
setTimeout(()=>{
document.getElementById('troop_confirm_submit').click();
consol.log('sent')
}, ms);
clearInterval(myTimer);
}
}, 1);
}Editor is loading...