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_Branch = "master";
|
||||||
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
|
||||||
var da_lss_adis_time = new Date().getTime();
|
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
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -17962,10 +17962,10 @@
|
|||||||
// - Sprechwunsch Handler Polizei/Gefangene
|
// - Sprechwunsch Handler Polizei/Gefangene
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
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();
|
self.Check_Call_Police_Active();
|
||||||
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
} 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();
|
self.StartMission();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -18291,7 +18291,7 @@
|
|||||||
let self = this;
|
let self = this;
|
||||||
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
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");
|
let href = $("a:contains('Alarmieren')").first().attr("href");
|
||||||
console.log(href)
|
console.log("DEBUG:::::: URL: ", href)
|
||||||
document.location.href = document.location.origin + href;
|
document.location.href = document.location.origin + href;
|
||||||
} else {
|
} else {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_Hospitals();
|
||||||
@@ -19181,7 +19181,7 @@
|
|||||||
return Wunsch.count(function (count) {
|
return Wunsch.count(function (count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((myWunsch) => {
|
return Wunsch.each((myWunsch) => {
|
||||||
console.log("MYWUNSCH:")
|
console.log("DEBUG:::::: MYWUNSCH:")
|
||||||
console.table(myWunsch);
|
console.table(myWunsch);
|
||||||
let MissionID = myWunsch.missionID;
|
let MissionID = myWunsch.missionID;
|
||||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||||
@@ -19233,11 +19233,11 @@
|
|||||||
} else {
|
} else {
|
||||||
self.MissionType = null;
|
self.MissionType = null;
|
||||||
}
|
}
|
||||||
console.log("MissionID", self.MissionID);
|
console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||||
console.log("MissionType", self.MissionType);
|
console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||||
console.log("Window", window.name);
|
console.log("DEBUG:::::: Window", window.name);
|
||||||
console.log("self.MyRunner", self.MyRunner);
|
console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||||
console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings);
|
||||||
|
|
||||||
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
// console.log("DONE: ", self.MissionID);
|
// console.log("DONE: ", self.MissionID);
|
||||||
@@ -19288,8 +19288,7 @@
|
|||||||
MainHandler() {
|
MainHandler() {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DEBUG:::::: DONE: ", self.MissionID);
|
||||||
console.log("DONE: ", self.MissionID);
|
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
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
|
||||||
})
|
})
|
||||||
@@ -19304,7 +19303,7 @@
|
|||||||
else {
|
else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
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();
|
self.CheckMissionAutomatic();
|
||||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||||
self.WorkVerbandMission();
|
self.WorkVerbandMission();
|
||||||
@@ -19422,7 +19421,7 @@
|
|||||||
}).then((availableMission) => {
|
}).then((availableMission) => {
|
||||||
if (availableMission != undefined && availableMission.jsondata) {
|
if (availableMission != undefined && availableMission.jsondata) {
|
||||||
self.MissionConfig = 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();
|
self.StartAlarmProcess();
|
||||||
} else {
|
} else {
|
||||||
var updateData = {
|
var updateData = {
|
||||||
@@ -20511,21 +20510,21 @@
|
|||||||
var isHidden = $div.is(':hidden');
|
var isHidden = $div.is(':hidden');
|
||||||
var ppppp = undefined;
|
var ppppp = undefined;
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
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) {
|
if ($div.length >= 1) {
|
||||||
console.log('DEBUG::', MissionID, 'Start Observer');
|
//console.log('DEBUG::', MissionID, 'Start Observer');
|
||||||
var observer = new MutationObserver(function (mutations) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
console.log('DEBUG::', 'mutations', mutations)
|
//console.log('DEBUG::', 'mutations', mutations)
|
||||||
mutations.forEach(function (mutation) {
|
mutations.forEach(function (mutation) {
|
||||||
console.log('DEBUG::', 'mutation', mutation)
|
//console.log('DEBUG::', 'mutation', mutation)
|
||||||
if (mutation.attributeName === "style") {
|
if (mutation.attributeName === "style") {
|
||||||
if ($(mutation.target).css('display') == 'none') {
|
if ($(mutation.target).css('display') == 'none') {
|
||||||
if (typeof ppppp != 'undefined') {
|
if (typeof ppppp != 'undefined') {
|
||||||
clearTimeout(ppppp);
|
clearTimeout(ppppp);
|
||||||
}
|
}
|
||||||
ppppp = setTimeout(function () {
|
ppppp = setTimeout(function () {
|
||||||
window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
window.//console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
@@ -20548,7 +20547,7 @@
|
|||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
window.//console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -163,10 +163,10 @@
|
|||||||
// - Sprechwunsch Handler Polizei/Gefangene
|
// - Sprechwunsch Handler Polizei/Gefangene
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/missions/") !== -1 && window.name == 'adis-sprechwunsch-police') {
|
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();
|
self.Check_Call_Police_Active();
|
||||||
} else if (window.location.pathname.indexOf("/missions/") !== -1 && window.name != 'adis-sprechwunsch-police') {
|
} 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();
|
self.StartMission();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -492,7 +492,7 @@
|
|||||||
let self = this;
|
let self = this;
|
||||||
if ($("h1:contains('AB-')").length > 0 && $("div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
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");
|
let href = $("a:contains('Alarmieren')").first().attr("href");
|
||||||
console.log(href)
|
console.log("DEBUG:::::: URL: ", href)
|
||||||
document.location.href = document.location.origin + href;
|
document.location.href = document.location.origin + href;
|
||||||
} else {
|
} else {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_Hospitals();
|
||||||
@@ -1148,7 +1148,7 @@
|
|||||||
return Wunsch.count(function (count) {
|
return Wunsch.count(function (count) {
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
return Wunsch.each((myWunsch) => {
|
return Wunsch.each((myWunsch) => {
|
||||||
console.log("MYWUNSCH:")
|
console.log("DEBUG:::::: MYWUNSCH:")
|
||||||
console.table(myWunsch);
|
console.table(myWunsch);
|
||||||
let MissionID = myWunsch.missionID;
|
let MissionID = myWunsch.missionID;
|
||||||
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
if ($('#' + runnerIframe).attr("mission_id") == "empty") {
|
||||||
@@ -1200,11 +1200,11 @@
|
|||||||
} else {
|
} else {
|
||||||
self.MissionType = null;
|
self.MissionType = null;
|
||||||
}
|
}
|
||||||
console.log("MissionID", self.MissionID);
|
console.log("DEBUG:::::: MissionID", self.MissionID);
|
||||||
console.log("MissionType", self.MissionType);
|
console.log("DEBUG:::::: MissionType", self.MissionType);
|
||||||
console.log("Window", window.name);
|
console.log("DEBUG:::::: Window", window.name);
|
||||||
console.log("self.MyRunner", self.MyRunner);
|
console.log("DEBUG:::::: self.MyRunner", self.MyRunner);
|
||||||
console.log("self.MyRunnerSettings", self.MyRunnerSettings);
|
console.log("DEBUG:::::: self.MyRunnerSettings", self.MyRunnerSettings);
|
||||||
|
|
||||||
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
// if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
// console.log("DONE: ", self.MissionID);
|
// console.log("DONE: ", self.MissionID);
|
||||||
@@ -1255,8 +1255,7 @@
|
|||||||
MainHandler() {
|
MainHandler() {
|
||||||
const self = this;
|
const self = this;
|
||||||
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
if (self.includesString($('#iframe-inside-container > div.missionNotFound > div.missionNotFoundText').text(), 'Der Einsatz wurde erfolgreich abgeschlossen.')) {
|
||||||
console.log("DONE!");
|
console.log("DEBUG:::::: DONE: ", self.MissionID);
|
||||||
console.log("DONE: ", self.MissionID);
|
|
||||||
return self.RemoveMissionsFromQueue(self.MissionID).then(() => {
|
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
|
||||||
})
|
})
|
||||||
@@ -1271,7 +1270,7 @@
|
|||||||
else {
|
else {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
if (['adis-ownmissions', 'adis-plannedevents', 'adis-krankentransporte'].indexOf(window.name) != -1) {
|
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();
|
self.CheckMissionAutomatic();
|
||||||
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
} else if (['adis-verbandmission', 'adis-verbandmission-event'].indexOf(window.name) != -1) {
|
||||||
self.WorkVerbandMission();
|
self.WorkVerbandMission();
|
||||||
@@ -1389,7 +1388,7 @@
|
|||||||
}).then((availableMission) => {
|
}).then((availableMission) => {
|
||||||
if (availableMission != undefined && availableMission.jsondata) {
|
if (availableMission != undefined && availableMission.jsondata) {
|
||||||
self.MissionConfig = 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();
|
self.StartAlarmProcess();
|
||||||
} else {
|
} else {
|
||||||
var updateData = {
|
var updateData = {
|
||||||
@@ -2478,21 +2477,21 @@
|
|||||||
var isHidden = $div.is(':hidden');
|
var isHidden = $div.is(':hidden');
|
||||||
var ppppp = undefined;
|
var ppppp = undefined;
|
||||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
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) {
|
if ($div.length >= 1) {
|
||||||
console.log('DEBUG::', MissionID, 'Start Observer');
|
//console.log('DEBUG::', MissionID, 'Start Observer');
|
||||||
var observer = new MutationObserver(function (mutations) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
console.log('DEBUG::', 'mutations', mutations)
|
//console.log('DEBUG::', 'mutations', mutations)
|
||||||
mutations.forEach(function (mutation) {
|
mutations.forEach(function (mutation) {
|
||||||
console.log('DEBUG::', 'mutation', mutation)
|
//console.log('DEBUG::', 'mutation', mutation)
|
||||||
if (mutation.attributeName === "style") {
|
if (mutation.attributeName === "style") {
|
||||||
if ($(mutation.target).css('display') == 'none') {
|
if ($(mutation.target).css('display') == 'none') {
|
||||||
if (typeof ppppp != 'undefined') {
|
if (typeof ppppp != 'undefined') {
|
||||||
clearTimeout(ppppp);
|
clearTimeout(ppppp);
|
||||||
}
|
}
|
||||||
ppppp = setTimeout(function () {
|
ppppp = setTimeout(function () {
|
||||||
window.console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
window.//console.log('DEBUG:::', 'Start Observer AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
@@ -2515,7 +2514,7 @@
|
|||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
} else {
|
} else {
|
||||||
window.console.log('DEBUG:::', 'Start AutomaticDispose()')
|
window.//console.log('DEBUG:::', 'Start AutomaticDispose()')
|
||||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user