tixcraft_bot/webdriver/Maxbotplus_1.0.0/js/ibon_ticket_next.js

28 lines
526 B
JavaScript
Raw Normal View History

var myInterval = null;
//console.log("assign appear");
function begin()
{
console.log("begin to next");
$("div#ticket-wrap a[onclick]").click();
}
function dom_ready()
{
let ret=false;
if($("#done").length>0) {
$("#done").remove();
ret=true;
if(myInterval) clearInterval(myInterval);
begin();
}
console.log("dom_ready:"+ret);
return ret;
}
if(!dom_ready()) {
myInterval = setInterval(() => {
dom_ready();
}, 100);
}