2024-01-18 17:35:42 +00:00
|
|
|
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);
|
2024-01-18 17:35:42 +00:00
|
|
|
|
|
|
|
$("#settings").remove();
|
|
|
|
$("#status").remove();
|
|
|
|
|
2024-05-03 15:12:04 +00:00
|
|
|
let cityline_queue_retry = true;
|
|
|
|
if(settings) {
|
|
|
|
cityline_queue_retry = settings.cityline.cityline_queue_retry;
|
|
|
|
}
|
|
|
|
|
|
|
|
if(status=='ON' && cityline_queue_retry) {
|
2024-01-18 17:35:42 +00:00
|
|
|
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-01-18 17:35:42 +00:00
|
|
|
}
|
2024-03-28 03:13:31 +00:00
|
|
|
|
2024-01-18 17:35:42 +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);
|
|
|
|
|