debug
This commit is contained in:
2
dist/autoloader.js
vendored
2
dist/autoloader.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Fri Feb 15 2019 19:24:04 GMT+0100 (CET)*/
|
||||
/*Generated on:Fri Feb 15 2019 19:30:39 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();
|
||||
|
||||
39
dist/autoloaderV2.js
vendored
39
dist/autoloaderV2.js
vendored
@@ -1,4 +1,4 @@
|
||||
/*Generated on:Fri Feb 15 2019 19:24:04 GMT+0100 (CET)*/
|
||||
/*Generated on:Fri Feb 15 2019 19:30:39 GMT+0100 (CET)*/
|
||||
/*
|
||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||
* ===============================================
|
||||
@@ -17962,10 +17962,10 @@
|
||||
// - Sprechwunsch Handler Polizei/Gefangene
|
||||
// -
|
||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
||||
window.console.log('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('Start Mission')
|
||||
window.console.log('DEBUG:::: Start Mission')
|
||||
self.StartMission();
|
||||
}
|
||||
|
||||
@@ -18291,7 +18291,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(href)
|
||||
console.log("DEBUG:::::: URL: ", href)
|
||||
document.location.href = document.location.origin + href;
|
||||
} else {
|
||||
self.Check_Call_Hospitals();
|
||||
@@ -19181,7 +19181,7 @@
|
||||
return Wunsch.count(function (count) {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((myWunsch) => {
|
||||
console.log("MYWUNSCH:")
|
||||
console.log("DEBUG:::::: MYWUNSCH:")
|
||||
console.table(myWunsch);
|
||||
let MissionID = myWunsch.missionID;
|
||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||
@@ -19233,11 +19233,11 @@
|
||||
} else {
|
||||
self.MissionType = null;
|
||||
}
|
||||
console.log("MissionID", self.MissionID);
|
||||
console.log("MissionType", self.MissionType);
|
||||
console.log("Window", window.name);
|
||||
console.log("self.MyRunner", self.MyRunner);
|
||||
console.log("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);
|
||||
@@ -19288,8 +19288,7 @@
|
||||
MainHandler() {
|
||||
const self = this;
|
||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
console.log("DONE!");
|
||||
console.log("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
|
||||
})
|
||||
@@ -19304,7 +19303,7 @@
|
||||
else {
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("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();
|
||||
@@ -19422,7 +19421,7 @@
|
||||
}).then((availableMission) => {
|
||||
if (availableMission != undefined && availableMission.jsondata) {
|
||||
self.MissionConfig = availableMission.jsondata;
|
||||
console.log('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 = {
|
||||
@@ -20511,21 +20510,21 @@
|
||||
var isHidden = $div.is(':hidden');
|
||||
var ppppp = undefined;
|
||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
console.log('DEBUG::', MissionID, $div, isHidden);
|
||||
//console.log('DEBUG::', MissionID, $div, isHidden);
|
||||
|
||||
if ($div.length >= 1) {
|
||||
console.log('DEBUG::', MissionID, 'Start Observer');
|
||||
//console.log('DEBUG::', MissionID, 'Start Observer');
|
||||
var observer = new MutationObserver(function (mutations) {
|
||||
console.log('DEBUG::', 'mutations', mutations)
|
||||
//console.log('DEBUG::', 'mutations', mutations)
|
||||
mutations.forEach(function (mutation) {
|
||||
console.log('DEBUG::', 'mutation', mutation)
|
||||
//console.log('DEBUG::', 'mutation', mutation)
|
||||
if (mutation.attributeName === "style") {
|
||||
if ($(mutation.target).css('display') == 'none') {
|
||||
if (typeof ppppp != 'undefined') {
|
||||
clearTimeout(ppppp);
|
||||
}
|
||||
ppppp = setTimeout(function () {
|
||||
window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
window.//console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}, 250);
|
||||
}
|
||||
@@ -20548,7 +20547,7 @@
|
||||
|
||||
$div.click();
|
||||
} else {
|
||||
window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
window.//console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}
|
||||
});
|
||||
@@ -163,10 +163,10 @@
|
||||
// - Sprechwunsch Handler Polizei/Gefangene
|
||||
// -
|
||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
||||
window.console.log('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('Start Mission')
|
||||
window.console.log('DEBUG:::: Start Mission')
|
||||
self.StartMission();
|
||||
}
|
||||
|
||||
@@ -492,7 +492,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(href)
|
||||
console.log("DEBUG:::::: URL: ", href)
|
||||
document.location.href = document.location.origin + href;
|
||||
} else {
|
||||
self.Check_Call_Hospitals();
|
||||
@@ -1148,7 +1148,7 @@
|
||||
return Wunsch.count(function (count) {
|
||||
if (count > 0) {
|
||||
return Wunsch.each((myWunsch) => {
|
||||
console.log("MYWUNSCH:")
|
||||
console.log("DEBUG:::::: MYWUNSCH:")
|
||||
console.table(myWunsch);
|
||||
let MissionID = myWunsch.missionID;
|
||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||
@@ -1200,11 +1200,11 @@
|
||||
} else {
|
||||
self.MissionType = null;
|
||||
}
|
||||
console.log("MissionID", self.MissionID);
|
||||
console.log("MissionType", self.MissionType);
|
||||
console.log("Window", window.name);
|
||||
console.log("self.MyRunner", self.MyRunner);
|
||||
console.log("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);
|
||||
@@ -1255,8 +1255,7 @@
|
||||
MainHandler() {
|
||||
const self = this;
|
||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||
console.log("DONE!");
|
||||
console.log("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
|
||||
})
|
||||
@@ -1271,7 +1270,7 @@
|
||||
else {
|
||||
setTimeout(function () {
|
||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
||||
console.log("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();
|
||||
@@ -1389,7 +1388,7 @@
|
||||
}).then((availableMission) => {
|
||||
if (availableMission != undefined && availableMission.jsondata) {
|
||||
self.MissionConfig = availableMission.jsondata;
|
||||
console.log('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 = {
|
||||
@@ -2478,21 +2477,21 @@
|
||||
var isHidden = $div.is(':hidden');
|
||||
var ppppp = undefined;
|
||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
console.log('DEBUG::', MissionID, $div, isHidden);
|
||||
//console.log('DEBUG::', MissionID, $div, isHidden);
|
||||
|
||||
if ($div.length >= 1) {
|
||||
console.log('DEBUG::', MissionID, 'Start Observer');
|
||||
//console.log('DEBUG::', MissionID, 'Start Observer');
|
||||
var observer = new MutationObserver(function (mutations) {
|
||||
console.log('DEBUG::', 'mutations', mutations)
|
||||
//console.log('DEBUG::', 'mutations', mutations)
|
||||
mutations.forEach(function (mutation) {
|
||||
console.log('DEBUG::', 'mutation', mutation)
|
||||
//console.log('DEBUG::', 'mutation', mutation)
|
||||
if (mutation.attributeName === "style") {
|
||||
if ($(mutation.target).css('display') == 'none') {
|
||||
if (typeof ppppp != 'undefined') {
|
||||
clearTimeout(ppppp);
|
||||
}
|
||||
ppppp = setTimeout(function () {
|
||||
window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
window.//console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}, 250);
|
||||
}
|
||||
@@ -2515,7 +2514,7 @@
|
||||
|
||||
$div.click();
|
||||
} else {
|
||||
window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
window.//console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user