diff --git a/dist/autoloader.js b/dist/autoloader.js index f46ee04..7689a81 100755 --- a/dist/autoloader.js +++ b/dist/autoloader.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Feb 18 2019 11:36:29 GMT+0100 (CET)*/ +/*Generated on:Mon Feb 18 2019 11:47:50 GMT+0100 (CET)*/ var AutomaticDispose_Branch = "master"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var da_lss_adis_time = new Date().getTime(); diff --git a/dist/autoloaderV2.js b/dist/autoloaderV2.js index 2f92951..a65a602 100644 --- a/dist/autoloaderV2.js +++ b/dist/autoloaderV2.js @@ -1,4 +1,4 @@ -/*Generated on:Mon Feb 18 2019 11:36:29 GMT+0100 (CET)*/ +/*Generated on:Mon Feb 18 2019 11:47:50 GMT+0100 (CET)*/ /* * Dexie.js - a minimalistic wrapper for IndexedDB * =============================================== @@ -18071,10 +18071,10 @@ // - Sprechwunsch Handler Polizei/Gefangene // - if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') { - window.console.log('DEBUG:::: Start Police Active') + //window.console.log('DEBUG:::: Start Police Active') self.Check_Call_Police_Active(); } else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') { - window.console.log('DEBUG:::: Start Mission') + //window.console.log('DEBUG:::: Start Mission') self.StartMission(); } @@ -18401,7 +18401,7 @@ let self = this; if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) { let href = $("a:contains('Alarmieren')").first().attr("href"); - console.log("DEBUG:::::: URL: ", href) + //console.log("DEBUG:::::: URL: ", href) document.location.href = document.location.origin + href; } else { self.Check_Call_Hospitals(); @@ -18594,7 +18594,7 @@ var JailHref = this.Jails[0].href var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => { - tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`); + tellParent(`/*console.log('sprechwunsch:${window.name}:${MissionID}');*/setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`); document.location.href = document.location.origin + JailHref; }); } @@ -19298,8 +19298,8 @@ return Wunsch.count(function (count) { if (count > 0) { return Wunsch.each((myWunsch) => { - console.log("DEBUG:::::: MYWUNSCH:") - console.table(myWunsch); + //console.log("DEBUG:::::: MYWUNSCH:") + //console.table(myWunsch); let MissionID = myWunsch.missionID; if ($('#' + runnerIframe).attr("mission_id") == "empty") { @@ -19350,11 +19350,11 @@ } else { self.MissionType = null; } - console.log("DEBUG:::::: MissionID", self.MissionID); - console.log("DEBUG:::::: MissionType", self.MissionType); - console.log("DEBUG:::::: Window", window.name); - console.log("DEBUG:::::: self.MyRunner", self.MyRunner); - console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings); + // console.log("DEBUG:::::: MissionID", self.MissionID); + // console.log("DEBUG:::::: MissionType", self.MissionType); + // console.log("DEBUG:::::: Window", window.name); + // console.log("DEBUG:::::: self.MyRunner", self.MyRunner); + // console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings); // if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { // console.log("DONE: ", self.MissionID); @@ -19386,13 +19386,13 @@ }); } else { return self.UpdateMissionsToDone(self.MissionID).then(() => { - return tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + return tellParent(`/*console.log('wunsch:1000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) } }); } else { return self.RemoveMissionsFromQueue(self.MissionID).then(() => { - return tellParent(`console.log('wunsch:2000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + return tellParent(`/*console.log('wunsch:2000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) } }) @@ -19405,9 +19405,9 @@ MainHandler() { const self = this; if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { - console.log("DEBUG:::::: DONE: ", self.MissionID); + //console.log("DEBUG:::::: DONE: ", self.MissionID); return self.RemoveMissionsFromQueue(self.MissionID).then(() => { - return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed + return tellParent(`/*console.log('handler:1000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed }) } /*else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) { @@ -19420,7 +19420,7 @@ else { setTimeout(function () { if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) { - console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID) + //console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID) self.CheckMissionAutomatic(); } else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) { self.WorkVerbandMission(); @@ -19538,7 +19538,7 @@ }).then((availableMission) => { if (availableMission != undefined && availableMission.jsondata) { self.MissionConfig = availableMission.jsondata; - console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2)) + //console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2)) self.StartAlarmProcess(); } else { var updateData = { @@ -19604,23 +19604,23 @@ } let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked'); - window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled); + // window.console.log("DEBUG:::: Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled); // window.console.log("WILL KLICK SEND", self.MissionID, window.name) self.UpdateMissionsToDone(self.MissionID).then(() => { - tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); + //tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); if (vhcalled.length == 0) { - window.console.log('nocars selected...', vhcalled.length); + //window.console.log('nocars selected...', vhcalled.length); if (window.name == 'adis-krankentransporte') { - window.console.log('nocars selected... select KTW'); + //window.console.log('nocars selected... select KTW'); $('#aao_2753841').click(); window.$('#mission_alarm_btn').click(); } else { - window.console.log('nocars selected... start new run'); - tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + //window.console.log('nocars selected... start new run'); + tellParent(`/*console.log('nocars:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } } else { - tellParent(`console.log('sendcars:${window.name}:${self.MissionID}');setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`); + tellParent(`/*console.log('sendcars:${window.name}:${self.MissionID}');*/setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`); window.$('#mission_alarm_btn').click(); //window.console.log("WILL KLICK SEND3", self.MissionID, window.name) } @@ -19653,7 +19653,7 @@ $div.click(); } else { */ - window.console.log('StartAlarmProcessProc()'); + //window.console.log('StartAlarmProcessProc()'); self.StartAlarmProcessProc() //} @@ -19701,7 +19701,7 @@ } catch (e) {} }); - console.table(self.Vehicles); + //console.table(self.Vehicles); return self.Vehicles; } @@ -20640,7 +20640,7 @@ clearTimeout(ppppp); } ppppp = setTimeout(function () { - window. //console.log('DEBUG:::', 'Start Observer AutomaticDispose()') + //window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose(window.faye); }, 250); } @@ -20663,7 +20663,7 @@ $div.click(); } else { - window. //console.log('DEBUG:::', 'Start AutomaticDispose()') + //window.console.log('DEBUG:::', 'Start AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose(window.faye); } }); \ No newline at end of file diff --git a/src/autoloaderV2.js b/src/autoloaderV2.js index 1d61c1a..191eae2 100644 --- a/src/autoloaderV2.js +++ b/src/autoloaderV2.js @@ -272,10 +272,10 @@ // - Sprechwunsch Handler Polizei/Gefangene // - if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') { - window.console.log('DEBUG:::: Start Police Active') + //window.console.log('DEBUG:::: Start Police Active') self.Check_Call_Police_Active(); } else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') { - window.console.log('DEBUG:::: Start Mission') + //window.console.log('DEBUG:::: Start Mission') self.StartMission(); } @@ -602,7 +602,7 @@ let self = this; if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) { let href = $("a:contains('Alarmieren')").first().attr("href"); - console.log("DEBUG:::::: URL: ", href) + //console.log("DEBUG:::::: URL: ", href) document.location.href = document.location.origin + href; } else { self.Check_Call_Hospitals(); @@ -795,7 +795,7 @@ var JailHref = this.Jails[0].href var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1); self.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => { - tellParent(`console.log('sprechwunsch:${window.name}:${MissionID}');setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`); + tellParent(`/*console.log('sprechwunsch:${window.name}:${MissionID}');*/setTimeout(function(){ window.AutomaticDisposeCall.FreeIframe('adis-sprechwunsch-police-frame');},250);`); document.location.href = document.location.origin + JailHref; }); } @@ -1265,8 +1265,8 @@ return Wunsch.count(function (count) { if (count > 0) { return Wunsch.each((myWunsch) => { - console.log("DEBUG:::::: MYWUNSCH:") - console.table(myWunsch); + //console.log("DEBUG:::::: MYWUNSCH:") + //console.table(myWunsch); let MissionID = myWunsch.missionID; if ($('#' + runnerIframe).attr("mission_id") == "empty") { @@ -1317,11 +1317,11 @@ } else { self.MissionType = null; } - console.log("DEBUG:::::: MissionID", self.MissionID); - console.log("DEBUG:::::: MissionType", self.MissionType); - console.log("DEBUG:::::: Window", window.name); - console.log("DEBUG:::::: self.MyRunner", self.MyRunner); - console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings); + // console.log("DEBUG:::::: MissionID", self.MissionID); + // console.log("DEBUG:::::: MissionType", self.MissionType); + // console.log("DEBUG:::::: Window", window.name); + // console.log("DEBUG:::::: self.MyRunner", self.MyRunner); + // console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings); // if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { // console.log("DONE: ", self.MissionID); @@ -1353,13 +1353,13 @@ }); } else { return self.UpdateMissionsToDone(self.MissionID).then(() => { - return tellParent(`console.log('wunsch:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + return tellParent(`/*console.log('wunsch:1000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) } }); } else { return self.RemoveMissionsFromQueue(self.MissionID).then(() => { - return tellParent(`console.log('wunsch:2000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + return tellParent(`/*console.log('wunsch:2000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); }) } }) @@ -1372,9 +1372,9 @@ MainHandler() { const self = this; if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) { - console.log("DEBUG:::::: DONE: ", self.MissionID); + //console.log("DEBUG:::::: DONE: ", self.MissionID); return self.RemoveMissionsFromQueue(self.MissionID).then(() => { - return tellParent(`console.log('handler:1000:done:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed + return tellParent(`/*console.log('handler:1000:done:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); // delete Mission here as completed }) } /*else if (self.includesString($('#iframe-inside-container > div.alert.fade.in.alert-success').text(), "wurde erfolgreich informiert") ) { @@ -1387,7 +1387,7 @@ else { setTimeout(function () { if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) { - console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID) + //console.log("DEBUG:::::: WILL SEND?", window.name, self.MissionID) self.CheckMissionAutomatic(); } else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) { self.WorkVerbandMission(); @@ -1505,7 +1505,7 @@ }).then((availableMission) => { if (availableMission != undefined && availableMission.jsondata) { self.MissionConfig = availableMission.jsondata; - console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2)) + //console.log('DEBUG:::: MissionConfig: ', MissionType.toString(), JSON.stringify(self.MissionConfig, null, 2)) self.StartAlarmProcess(); } else { var updateData = { @@ -1571,23 +1571,23 @@ } let vhcalled = window.$('#vehicle_show_table_all input[type="checkbox"]:checked'); - window.console.log("Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled); + // window.console.log("DEBUG:::: Clicked Vehicles: %s %s", window.name, String(self.MissionID), vhcalled.length, vhcalled); // window.console.log("WILL KLICK SEND", self.MissionID, window.name) self.UpdateMissionsToDone(self.MissionID).then(() => { - tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); + //tellParent(`console.log('ok:${window.name}:${self.MissionID}');`); if (vhcalled.length == 0) { - window.console.log('nocars selected...', vhcalled.length); + //window.console.log('nocars selected...', vhcalled.length); if (window.name == 'adis-krankentransporte') { - window.console.log('nocars selected... select KTW'); + //window.console.log('nocars selected... select KTW'); $('#aao_2753841').click(); window.$('#mission_alarm_btn').click(); } else { - window.console.log('nocars selected... start new run'); - tellParent(`console.log('nocars:${window.name}:${self.MissionID}');window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); + //window.console.log('nocars selected... start new run'); + tellParent(`/*console.log('nocars:${window.name}:${self.MissionID}');*/window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');`); } } else { - tellParent(`console.log('sendcars:${window.name}:${self.MissionID}');setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`); + tellParent(`/*console.log('sendcars:${window.name}:${self.MissionID}');*/setTimeout(function(){window.AutomaticDisposeCall.FreeIframe('${self.MyRunner}');},1000);`); window.$('#mission_alarm_btn').click(); //window.console.log("WILL KLICK SEND3", self.MissionID, window.name) } @@ -1620,7 +1620,7 @@ $div.click(); } else { */ - window.console.log('StartAlarmProcessProc()'); + //window.console.log('StartAlarmProcessProc()'); self.StartAlarmProcessProc() //} @@ -1668,7 +1668,7 @@ } catch (e) {} }); - console.table(self.Vehicles); + //console.table(self.Vehicles); return self.Vehicles; } @@ -2607,7 +2607,7 @@ clearTimeout(ppppp); } ppppp = setTimeout(function () { - window. //console.log('DEBUG:::', 'Start Observer AutomaticDispose()') + //window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose(window.faye); }, 250); } @@ -2630,7 +2630,7 @@ $div.click(); } else { - window. //console.log('DEBUG:::', 'Start AutomaticDispose()') + //window.console.log('DEBUG:::', 'Start AutomaticDispose()') window.AutomaticDisposeCall = new AutomaticDispose(window.faye); } }); \ No newline at end of file