v2 uaß0aßgi0
This commit is contained in:
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 00:32:20 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 00:35:59 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
+75
-71
@@ -1,4 +1,4 @@
|
|||||||
/*Generated on:Mon Dec 17 2018 00:32:20 GMT+0100 (CET)*/
|
/*Generated on:Mon Dec 17 2018 00:35:59 GMT+0100 (CET)*/
|
||||||
/*
|
/*
|
||||||
* Dexie.js - a minimalistic wrapper for IndexedDB
|
* Dexie.js - a minimalistic wrapper for IndexedDB
|
||||||
* ===============================================
|
* ===============================================
|
||||||
@@ -18970,85 +18970,89 @@ class AutomaticDispose {
|
|||||||
StartAlarmProcess() {
|
StartAlarmProcess() {
|
||||||
const self = this;
|
const self = this;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var $div = $("a.btn-warning.missing_vehicles_load");
|
var $div = $("#mission-form > div:nth-child(7) > a");
|
||||||
console.log($div.length, $div);
|
console.log($div.length, $div);
|
||||||
var observer = new MutationObserver(function (mutations) {
|
if ($div.length) {
|
||||||
mutations.forEach(function (mutation) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
if (mutation.attributeName === "class") {
|
mutations.forEach(function (mutation) {
|
||||||
var attributeValue = $(mutation.target).prop(mutation.attributeName);
|
if (mutation.attributeName === "class") {
|
||||||
console.log("Class attribute changed to:", attributeValue);
|
var attributeValue = $(mutation.target).prop(mutation.attributeName);
|
||||||
Promise.resolve().then(async () => {
|
console.log("Class attribute changed to:", attributeValue);
|
||||||
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
|
Promise.resolve().then(async () => {
|
||||||
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
|
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
|
||||||
// - #mission-form > div:nth-child(7) > a
|
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
|
||||||
return await self.PrepareVehicleNeedList();
|
// - #mission-form > div:nth-child(7) > a
|
||||||
}).then(async () => {
|
return await self.PrepareVehicleNeedList();
|
||||||
return await self.PrepareVehicleNeedList();
|
}).then(async () => {
|
||||||
}).then(async () => {
|
return await self.PrepareVehicleNeedList();
|
||||||
return await self.CollectInvolvedVehicles();
|
}).then(async () => {
|
||||||
}).then(async () => {
|
return await self.CollectInvolvedVehicles();
|
||||||
return await self.CollectPatients();
|
}).then(async () => {
|
||||||
})
|
return await self.CollectPatients();
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessEmergencyMedicalService()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessEmergencyMedicalService()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessFireDepartment()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessFireDepartment()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessPoliceDepartment()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessPoliceDepartment()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessTechnicalEmergencyService()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessTechnicalEmergencyService()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessWaterRescue()
|
.then(async () => {
|
||||||
}).then(() => {
|
return await self.ProcessWaterRescue()
|
||||||
|
}).then(() => {
|
||||||
|
|
||||||
if (self.OweSecure) {
|
if (self.OweSecure) {
|
||||||
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').length > 0) {
|
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').length > 0) {
|
||||||
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO check cars driving or already there
|
|
||||||
if (self.MissionConfig.share) {
|
|
||||||
// console.log('self.MissionConfig.share',self.MissionConfig.share)
|
|
||||||
const elems = $('#vehicle_show_table_all tr input[type="checkbox"]:checked')
|
|
||||||
// console.log('elems', elems)
|
|
||||||
for (let i = 0; i < elems.length; i++) {
|
|
||||||
if (i === 0) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
$(elems[i]).click();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
// TODO check cars driving or already there
|
||||||
// console.log("WILL KLICK SEND")
|
if (self.MissionConfig.share) {
|
||||||
setTimeout(() => {
|
// console.log('self.MissionConfig.share',self.MissionConfig.share)
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(async () => {
|
const elems = $('#vehicle_show_table_all tr input[type="checkbox"]:checked')
|
||||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`);
|
// console.log('elems', elems)
|
||||||
if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) {
|
for (let i = 0; i < elems.length; i++) {
|
||||||
window.$('input[type=checkbox]').prop('checked', false);
|
if (i === 0) {
|
||||||
await self.WorkVerbandMission(true);
|
continue;
|
||||||
window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!')
|
}
|
||||||
window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click();
|
$(elems[i]).click();
|
||||||
} else {
|
|
||||||
window.$('#mission_alarm_btn').click();
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}, 250);
|
|
||||||
|
|
||||||
})
|
// console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||||
}
|
// console.log("WILL KLICK SEND")
|
||||||
|
setTimeout(() => {
|
||||||
|
self.UpdateMissionsToDone(self.MissionID).then(async () => {
|
||||||
|
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`);
|
||||||
|
if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) {
|
||||||
|
window.$('input[type=checkbox]').prop('checked', false);
|
||||||
|
await self.WorkVerbandMission(true);
|
||||||
|
window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!')
|
||||||
|
window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click();
|
||||||
|
} else {
|
||||||
|
window.$('#mission_alarm_btn').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
observer.observe($div[0], {
|
||||||
|
attributes: true
|
||||||
});
|
});
|
||||||
});
|
|
||||||
observer.observe($div[0], {
|
|
||||||
attributes: true
|
|
||||||
});
|
|
||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
|
} else {
|
||||||
|
self.UpdateMissionsToDone(self.MissionID)
|
||||||
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+74
-70
@@ -1310,85 +1310,89 @@ class AutomaticDispose {
|
|||||||
StartAlarmProcess() {
|
StartAlarmProcess() {
|
||||||
const self = this;
|
const self = this;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var $div = $("a.btn-warning.missing_vehicles_load");
|
var $div = $("#mission-form > div:nth-child(7) > a");
|
||||||
console.log($div.length, $div);
|
console.log($div.length, $div);
|
||||||
var observer = new MutationObserver(function (mutations) {
|
if ($div.length) {
|
||||||
mutations.forEach(function (mutation) {
|
var observer = new MutationObserver(function (mutations) {
|
||||||
if (mutation.attributeName === "class") {
|
mutations.forEach(function (mutation) {
|
||||||
var attributeValue = $(mutation.target).prop(mutation.attributeName);
|
if (mutation.attributeName === "class") {
|
||||||
console.log("Class attribute changed to:", attributeValue);
|
var attributeValue = $(mutation.target).prop(mutation.attributeName);
|
||||||
Promise.resolve().then(async () => {
|
console.log("Class attribute changed to:", attributeValue);
|
||||||
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
|
Promise.resolve().then(async () => {
|
||||||
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
|
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
|
||||||
// - #mission-form > div:nth-child(7) > a
|
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
|
||||||
return await self.PrepareVehicleNeedList();
|
// - #mission-form > div:nth-child(7) > a
|
||||||
}).then(async () => {
|
return await self.PrepareVehicleNeedList();
|
||||||
return await self.PrepareVehicleNeedList();
|
}).then(async () => {
|
||||||
}).then(async () => {
|
return await self.PrepareVehicleNeedList();
|
||||||
return await self.CollectInvolvedVehicles();
|
}).then(async () => {
|
||||||
}).then(async () => {
|
return await self.CollectInvolvedVehicles();
|
||||||
return await self.CollectPatients();
|
}).then(async () => {
|
||||||
})
|
return await self.CollectPatients();
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessEmergencyMedicalService()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessEmergencyMedicalService()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessFireDepartment()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessFireDepartment()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessPoliceDepartment()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessPoliceDepartment()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessTechnicalEmergencyService()
|
.then(async () => {
|
||||||
})
|
return await self.ProcessTechnicalEmergencyService()
|
||||||
.then(async () => {
|
})
|
||||||
return await self.ProcessWaterRescue()
|
.then(async () => {
|
||||||
}).then(() => {
|
return await self.ProcessWaterRescue()
|
||||||
|
}).then(() => {
|
||||||
|
|
||||||
if (self.OweSecure) {
|
if (self.OweSecure) {
|
||||||
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').length > 0) {
|
if ($('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)').length > 0) {
|
||||||
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
$('#vehicle_show_table_all tr[vehicle_type="FuStW"] input[type="checkbox"]:not(:checked)')[0].click();
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO check cars driving or already there
|
|
||||||
if (self.MissionConfig.share) {
|
|
||||||
// console.log('self.MissionConfig.share',self.MissionConfig.share)
|
|
||||||
const elems = $('#vehicle_show_table_all tr input[type="checkbox"]:checked')
|
|
||||||
// console.log('elems', elems)
|
|
||||||
for (let i = 0; i < elems.length; i++) {
|
|
||||||
if (i === 0) {
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
$(elems[i]).click();
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
// TODO check cars driving or already there
|
||||||
// console.log("WILL KLICK SEND")
|
if (self.MissionConfig.share) {
|
||||||
setTimeout(() => {
|
// console.log('self.MissionConfig.share',self.MissionConfig.share)
|
||||||
self.UpdateMissionsToDone(self.MissionID).then(async () => {
|
const elems = $('#vehicle_show_table_all tr input[type="checkbox"]:checked')
|
||||||
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`);
|
// console.log('elems', elems)
|
||||||
if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) {
|
for (let i = 0; i < elems.length; i++) {
|
||||||
window.$('input[type=checkbox]').prop('checked', false);
|
if (i === 0) {
|
||||||
await self.WorkVerbandMission(true);
|
continue;
|
||||||
window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!')
|
}
|
||||||
window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click();
|
$(elems[i]).click();
|
||||||
} else {
|
|
||||||
window.$('#mission_alarm_btn').click();
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
}, 250);
|
|
||||||
|
|
||||||
})
|
// console.log("Clicked Vehicles: ", $('#vehicle_show_table_all input[type="checkbox"]:checked').length, $('#vehicle_show_table_all input[type="checkbox"]:checked'));
|
||||||
}
|
// console.log("WILL KLICK SEND")
|
||||||
|
setTimeout(() => {
|
||||||
|
self.UpdateMissionsToDone(self.MissionID).then(async () => {
|
||||||
|
tellParent(`setTimeout(function(){console.log('ok:${window.name}:${self.MissionID}');},2500);`);
|
||||||
|
if (window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").length > 0 && self.MissionConfig.share) {
|
||||||
|
window.$('input[type=checkbox]').prop('checked', false);
|
||||||
|
await self.WorkVerbandMission(true);
|
||||||
|
window.$('#allianceShareText').val('Kein RD, die Patiernten gehören mir! Anonsten kann nach 2h geschlossen werden. Danke für die Aufmerksamkeit!')
|
||||||
|
window.$("#mission-form a.btn.btn-success.btn-sm.alert_notify_alliance").click();
|
||||||
|
} else {
|
||||||
|
window.$('#mission_alarm_btn').click();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}, 250);
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
observer.observe($div[0], {
|
||||||
|
attributes: true
|
||||||
});
|
});
|
||||||
});
|
|
||||||
observer.observe($div[0], {
|
|
||||||
attributes: true
|
|
||||||
});
|
|
||||||
|
|
||||||
$div.click();
|
$div.click();
|
||||||
|
} else {
|
||||||
|
self.UpdateMissionsToDone(self.MissionID)
|
||||||
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user