tw

mail@pastecode.io avatar
unknown
javascript
7 months ago
424 B
4
Indexable
Never
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);
}