tixcraft_bot/webdriver/Maxbotplus_1.0.0/js/cityline_msg_front.js

40 lines
838 B
JavaScript
Raw Normal View History

function begin()
{
let settings = JSON.parse($("#settings").html());
let status = $("#status").html();
2024-03-27 07:38:54 +00:00
//console.log("msg");
//console.log(settings);
//console.log(status);
$("#settings").remove();
$("#status").remove();
let cityline_queue_retry = true;
if(settings) {
cityline_queue_retry = settings.cityline.cityline_queue_retry;
}
if(status=='ON' && cityline_queue_retry) {
setInterval(() => {
2024-04-30 14:13:45 +00:00
if (typeof remainTime !== "undefined") {
remainTime = 0;
2024-04-12 07:46:24 +00:00
}
2024-04-30 14:13:45 +00:00
}, 3000);
}
2024-03-28 03:13:31 +00:00
}
function dom_ready()
{
//console.log("checking...");
if($("#settings").length>0) {
clearInterval(myInterval);
begin();
}
}
myInterval = setInterval(() => {
dom_ready();
2024-03-28 05:01:54 +00:00
}, 100);