add handling of AB containers
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Jan 19 2019 17:42:16 GMT+0100 (CET)*/
|
/*Generated on:Mon Jan 21 2019 05:49:09 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();
|
||||||
|
|||||||
Vendored
+17
-5
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Sat Jan 19 2019 17:42:16 GMT+0100 (CET)*/
|
/*Generated on:Mon Jan 21 2019 05:49:09 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -17358,7 +17358,8 @@ class AutomaticDispose {
|
|||||||
// - Sprechwunsch Handler Rettung
|
// - Sprechwunsch Handler Rettung
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') {
|
if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_AB_Active(); // else
|
||||||
|
//self.Check_Call_Hospitals();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -
|
// -
|
||||||
@@ -17676,17 +17677,28 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
|
|
||||||
Check_Call_Police_Active() {
|
Check_Call_Police_Active() {
|
||||||
|
let self = this;
|
||||||
if ($('#h2_prisoners').length > 0) {
|
if ($('#h2_prisoners').length > 0) {
|
||||||
this.Collect_Jails();
|
self.Collect_Jails();
|
||||||
} else {
|
} else {
|
||||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
// console.log('Check_Call_Police_Active', MissionID)
|
// console.log('Check_Call_Police_Active', MissionID)
|
||||||
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
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);`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Check_Call_AB_Active() {
|
||||||
|
let self = this;
|
||||||
|
if ($('#iframe-inside-container > h1').length > 0 && $("#iframe-inside-container > div.row > div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
||||||
|
$("#vehicle_show_table > tbody > tr > td:nth-child(1) > a:contains('Alarmieren')").first().click();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
self.Check_Call_Hospitals();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Gefängnis auswählen
|
// Gefängnis auswählen
|
||||||
Collect_Jails() {
|
Collect_Jails() {
|
||||||
let self = this;
|
let self = this;
|
||||||
@@ -19892,7 +19904,7 @@ $(document).ready(function () {
|
|||||||
if ($div.length && isShow) {
|
if ($div.length && isShow) {
|
||||||
var observer = new MutationObserver(function (mutations) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
mutations.forEach(function (mutation) {
|
mutations.forEach(function (mutation) {
|
||||||
console.log(mutation)
|
//console.log(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') {
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
<title>LEITSTELLENSPIEL.DE - baue deine eigene Leitstelle, in deiner Stadt!</title>
|
<title>LEITSTELLENSPIEL.DE - baue deine eigene Leitstelle, in deiner Stadt!</title>
|
||||||
<meta content="authenticity_token" name="csrf-param" />
|
<meta content="authenticity_token" name="csrf-param" />
|
||||||
<meta content="2aRYmcZVxF8Xtey8UioqMURje0/LJhKRHbkputUCax0=" name="csrf-token" />
|
<meta content="Qqbe8i4Zw5SLX1S5LvRYzThP+pu9+LuFhKlyV8t4dTQ=" name="csrf-token" />
|
||||||
|
|
||||||
<script src="/assets/application-a789289a71061d030b76a864e1d16075.js" type="text/javascript"></script>
|
<script src="/assets/application-a789289a71061d030b76a864e1d16075.js" type="text/javascript"></script>
|
||||||
|
|
||||||
|
|||||||
+16
-4
@@ -152,7 +152,8 @@ class AutomaticDispose {
|
|||||||
// - Sprechwunsch Handler Rettung
|
// - Sprechwunsch Handler Rettung
|
||||||
// -
|
// -
|
||||||
if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') {
|
if (window.location.pathname.indexOf("/vehicles/") !== -1 && window.name == 'adis-sprechwunsch-rescue') {
|
||||||
self.Check_Call_Hospitals();
|
self.Check_Call_AB_Active(); // else
|
||||||
|
//self.Check_Call_Hospitals();
|
||||||
}
|
}
|
||||||
|
|
||||||
// -
|
// -
|
||||||
@@ -470,17 +471,28 @@ class AutomaticDispose {
|
|||||||
|
|
||||||
|
|
||||||
Check_Call_Police_Active() {
|
Check_Call_Police_Active() {
|
||||||
|
let self = this;
|
||||||
if ($('#h2_prisoners').length > 0) {
|
if ($('#h2_prisoners').length > 0) {
|
||||||
this.Collect_Jails();
|
self.Collect_Jails();
|
||||||
} else {
|
} else {
|
||||||
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
let MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||||
// console.log('Check_Call_Police_Active', MissionID)
|
// console.log('Check_Call_Police_Active', MissionID)
|
||||||
this.RemovePoliceSprechwunschFromQueue(MissionID).then((deleteCount) => {
|
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);`);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Check_Call_AB_Active() {
|
||||||
|
let self = this;
|
||||||
|
if ($('#iframe-inside-container > h1').length > 0 && $("#iframe-inside-container > div.row > div.alert.alert-info:contains('Welches Zugfahrzeug soll zum Transport genutzt werden')").length > 0) {
|
||||||
|
$("#vehicle_show_table > tbody > tr > td:nth-child(1) > a:contains('Alarmieren')").first().click();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
self.Check_Call_Hospitals();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Gefängnis auswählen
|
// Gefängnis auswählen
|
||||||
Collect_Jails() {
|
Collect_Jails() {
|
||||||
let self = this;
|
let self = this;
|
||||||
@@ -2452,7 +2464,7 @@ $(document).ready(function () {
|
|||||||
if ($div.length && isShow) {
|
if ($div.length && isShow) {
|
||||||
var observer = new MutationObserver(function (mutations) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
mutations.forEach(function (mutation) {
|
mutations.forEach(function (mutation) {
|
||||||
console.log(mutation)
|
//console.log(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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user