tw
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); }