Created
August 28, 2022 21:51
-
-
Save HeikoBornholdt/2c34c3c4b22e66eea5b3073dcb040ed9 to your computer and use it in GitHub Desktop.
Fox-112 Tweaker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fox-112 Tweaker | |
// @namespace https://www.feuerwehr-pinneberg.de/ | |
// @version 1.0 | |
// @description Interface-Verbesserungen für Fox-112 | |
// @author Heiko Bornholdt | |
// @match https://pinneberg.fox112.de/Fox_Rahmen_EV.php* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=fox112.de | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.addEventListener('load', function() { | |
// Vergrößere zu kleine Uhrzeit-Felder... | |
document.querySelectorAll("input[size='3'], input[size='4']").forEach((input) => { | |
input.setAttribute('size', 5); | |
}); | |
document.querySelectorAll("input[size='1']").forEach((input) => { | |
input.setAttribute('size', 2); | |
}); | |
// Füge <label> zu Checkboxen hinzu, damit man diese einfacher anklicken kann... | |
document.querySelectorAll("input[type='checkbox']").forEach((checkbox) => { | |
var label = document.createElement('label'); | |
checkbox.parentNode.insertBefore(label, checkbox); | |
label.appendChild(checkbox); | |
while (label.previousSibling && (label.previousSibling.nodeName.toLowerCase() == '#text' || label.previousSibling.nodeName.toLowerCase() == 'font')) { | |
label.prepend(label.previousSibling); | |
} | |
while (label.nextSibling && (label.nextSibling.nodeName.toLowerCase() == '#text' || label.nextSibling.nodeName.toLowerCase() == 'font')) { | |
label.appendChild(label.nextSibling); | |
} | |
}); | |
// Mach winzige Icons größer... | |
document.querySelectorAll("img[src$='ShowDown.gif'], img[src$='ShowUp.gif'], img[src$='Excel.gif'], img[src$='UserEditS.gif'], img[src$='PDF.gif'], " + | |
"img[src$='Del.gif'], img[src$='LinkExtJump.gif'], img[src$='tigracal.gif'], img[src$='LinkExtEdit.gif'], img[src$='Uhr.gif'], " + | |
"img[src$='DEL.gif'], img[src$='ZF.gif'], img[src$='ZFx.gif'], img[src$='GF.gif'], img[src$='GFx.gif'], img[src$='MA.gif'], " + | |
"img[src$='MAx.gif'], img[src$='EA.gif'], img[src$='OK.gif']").forEach((img) => { | |
img.setAttribute('height', 20); | |
img.setAttribute('width', 20); | |
}); | |
document.querySelectorAll("img[src$='radio.gif'], img[src$='radio0.gif'], img[src$='chk.gif'], img[src$='chk0.gif']").forEach((img) => { | |
img.setAttribute('height', 15); | |
var imgA = img.parentElement.nodeName.toLowerCase() == 'a' ? img.parentElement : undefined; | |
if (!imgA) return; | |
var imgTd = imgA.parentElement.nodeName.toLowerCase() == 'td' ? imgA.parentElement : undefined; | |
if (!imgTd) return; | |
var textTd = imgTd.nextSibling.nodeName.toLowerCase() == 'td' ? imgTd.nextSibling : undefined; | |
if (!textTd) return; | |
var textA = imgA.cloneNode(true); | |
textA.innerHTML = textTd.innerHTML; | |
textTd.innerHTML = ''; | |
textTd.appendChild(textA); | |
}); | |
// Mach die Auf-/Zuklappschaltflächen (blaue/rote Pfeile) klickbarer... | |
document.querySelectorAll("img[src$='ShowDown.gif'], img[src$='ShowUp.gif']").forEach((img) => { | |
// we can not directly access the anchor as :has() selector is not fully supported | |
var a = img.parentElement; | |
while (a.nextSibling) { | |
a.appendChild(a.nextSibling); | |
} | |
}); | |
// Speichere "Standardangaben" für Wiedervorlage | |
var standardangabenButton = document.querySelector("input[type='submit'][value='speichern']"); | |
if (standardangabenButton) { | |
standardangabenButton.addEventListener("click", function() { | |
var f_nummer = getFirstElementByName('f_nummer'); | |
var f_nummerls = getFirstElementByName('f_nummerls'); | |
var f_stichwort = getFirstElementByName('f_stichwort'); | |
var f_stichwort_label = f_stichwort && f_stichwort.querySelector('option[selected]') ? f_stichwort.querySelector('option[selected]').innerText : undefined; | |
var f_nummerpol = getFirstElementByName('f_nummerpol'); | |
var f_mit_9 = getFirstElementByName('f_mit[9]'); | |
var f_mit_2 = getFirstElementByName('f_mit[2]'); | |
var f_mit_1 = getFirstElementByName('f_mit[1]'); | |
var f_artber = getFirstElementByName('f_artber'); | |
var f_gemeinde = getFirstElementByName('f_gemeinde'); | |
var f_amt = getFirstElementByName('f_amt'); | |
var f_einsatzartx = getFirstElementByName('f_einsatzartx'); | |
var f_einsatzort = getFirstElementByName('f_einsatzort'); | |
var f_bmanr = getFirstElementByName('f_bmanr'); | |
var f_eplan = getFirstElementByName('f_eplan'); | |
var f_gebuehrenpfl = getFirstElementByName('f_gebuehrenpfl'); | |
var f_hauptbericht = getFirstElementByName('f_hauptbericht'); | |
var f_bei_ff = getFirstElementByName('f_bei_ff'); | |
var f_nebenzuhaupt = getFirstElementByName('f_nebenzuhaupt'); | |
var f_vornachkfz = getFirstElementByName('f_vornachkfz'); | |
var f_persmangel = getFirstElementByName('f_persmangel'); | |
var f_alarmfahrt = getFirstElementByName('f_alarmfahrt'); | |
var f_atemschutz = getFirstElementByName('f_atemschutz'); | |
var f_csa = getFirstElementByName('f_csa'); | |
var f_datumvon = getFirstElementByName('f_datumvon'); | |
var f_zeitvon = getFirstElementByName('f_zeitvon'); | |
var f_datumbis = getFirstElementByName('f_datumbis'); | |
var f_zeitbis = getFirstElementByName('f_zeitbis'); | |
var f_rauchmelder = getFirstElementByName('f_rauchmelder'); | |
var f_verursacher = getFirstElementByName('f_verursacher'); | |
var f_eigentuemer = getFirstElementByName('f_eigentuemer'); | |
var f_geschaedigter = getFirstElementByName('f_geschaedigter'); | |
var f_hilfesuchender = getFirstElementByName('f_hilfesuchender'); | |
var f_einheitsfuehrung = getFirstElementByName('f_einheitsfuehrung'); | |
var f_einheitsfuehrungname = getFirstElementByName('f_einheitsfuehrungname'); | |
var f_einsatzleitung = getFirstElementByName('f_einsatzleitung'); | |
// Stelle sicher, dass wir die Ansicht "Standardangaben" offen haben | |
if (f_nummer) { | |
var standardangaben = { | |
f_nummer: f_nummer.value, | |
f_nummerls: f_nummerls.value, | |
f_stichwort: f_stichwort.value, | |
f_stichwort_label: f_stichwort_label, | |
f_nummerpol: f_nummerpol.value, | |
f_mit_9: f_mit_9.checked, | |
f_mit_2: f_mit_2.checked, | |
f_mit_1: f_mit_1.checked, | |
f_artber: f_artber.value, | |
f_gemeinde: f_gemeinde.value, | |
f_amt: f_amt.value, | |
f_einsatzartx: f_einsatzartx.value, | |
f_einsatzort: f_einsatzort.value, | |
f_bmanr: f_bmanr.value, | |
f_eplan: f_eplan.value, | |
f_gebuehrenpfl: f_gebuehrenpfl.checked, | |
f_hauptbericht: f_hauptbericht.checked, | |
f_bei_ff: f_bei_ff.value, | |
f_nebenzuhaupt: f_nebenzuhaupt.checked, | |
f_vornachkfz: f_vornachkfz.value, | |
f_persmangel: f_persmangel.checked, | |
f_alarmfahrt: f_alarmfahrt.checked, | |
f_atemschutz: f_atemschutz.checked, | |
f_csa: f_csa.checked, | |
f_datumvon: f_datumvon.value, | |
f_zeitvon: f_zeitvon.value, | |
f_datumbis: f_datumbis.value, | |
f_zeitbis: f_zeitbis.value, | |
f_rauchmelder: f_rauchmelder.checked, | |
f_verursacher: f_verursacher.value, | |
f_eigentuemer: f_eigentuemer.value, | |
f_geschaedigter: f_geschaedigter.value, | |
f_hilfesuchender: f_hilfesuchender.value, | |
f_einheitsfuehrung: f_einheitsfuehrung.value, | |
f_einheitsfuehrungname: f_einheitsfuehrungname.value, | |
f_einsatzleitung: f_einsatzleitung.value | |
}; | |
var recent_standardangaben = loadItem('recent_standardangaben', []); | |
recent_standardangaben.push(standardangaben); | |
storeItem('recent_standardangaben', recent_standardangaben.slice(0, 10)); | |
} | |
}); | |
} | |
// "Standardangaben"-Wiedervorlage | |
document.querySelectorAll('b').forEach((b) => { | |
if (b.innerHTML != 'Standardangaben') return; | |
var recent_standardangaben = loadItem('recent_standardangaben', []); | |
if (recent_standardangaben.length > 0) { | |
var td = b.parentElement.parentElement.parentElement; | |
if (td.nodeName.toLowerCase() != 'td') return; | |
var select = document.createElement('select'); | |
select.style.padding = '2px'; | |
select.style.marginLeft = '10px'; | |
select.onchange = function() { | |
var value = this.value; | |
this.value = '-1'; | |
var standardangaben = recent_standardangaben[value]; | |
if (standardangaben) { | |
var f_stichwort = getFirstElementByName('f_stichwort'); | |
f_stichwort.value = standardangaben.f_stichwort; | |
var f_nummerpol = getFirstElementByName('f_nummerpol'); | |
f_nummerpol.value = standardangaben.f_nummerpol; | |
var f_mit_9 = getFirstElementByName('f_mit[9]'); | |
f_mit_9.checked = standardangaben.f_mit_9; | |
var f_mit_2 = getFirstElementByName('f_mit[2]'); | |
f_mit_2.checked = standardangaben.f_mit_2; | |
var f_mit_1 = getFirstElementByName('f_mit[1]'); | |
f_mit_1.checked = standardangaben.f_mit_1; | |
var f_artber = getFirstElementByName('f_artber'); | |
f_artber.value = standardangaben.f_artber; | |
var f_gemeinde = getFirstElementByName('f_gemeinde'); | |
f_gemeinde.value = standardangaben.f_gemeinde; | |
var f_amt = getFirstElementByName('f_amt'); | |
f_amt.value = standardangaben.f_amt; | |
var f_einsatzartx = getFirstElementByName('f_einsatzartx'); | |
f_einsatzartx.value = standardangaben.f_einsatzartx; | |
var f_einsatzort = getFirstElementByName('f_einsatzort'); | |
f_einsatzort.value = standardangaben.f_einsatzort; | |
var f_bmanr = getFirstElementByName('f_bmanr'); | |
f_bmanr.value = standardangaben.f_bmanr; | |
var f_eplan = getFirstElementByName('f_eplan'); | |
f_eplan.value = standardangaben.f_eplan; | |
var f_gebuehrenpfl = getFirstElementByName('f_gebuehrenpfl'); | |
f_gebuehrenpfl.checked = standardangaben.f_gebuehrenpfl; | |
var f_hauptbericht = getFirstElementByName('f_hauptbericht'); | |
f_hauptbericht.checked = standardangaben.f_hauptbericht; | |
var f_bei_ff = getFirstElementByName('f_bei_ff'); | |
f_bei_ff.value = standardangaben.f_bei_ff; | |
var f_nebenzuhaupt = getFirstElementByName('f_nebenzuhaupt'); | |
f_nebenzuhaupt.checked = standardangaben.f_nebenzuhaupt; | |
var f_vornachkfz = getFirstElementByName('f_vornachkfz'); | |
f_vornachkfz.value = standardangaben.f_vornachkfz; | |
var f_persmangel = getFirstElementByName('f_persmangel'); | |
f_persmangel.checked = standardangaben.f_persmangel; | |
var f_alarmfahrt = getFirstElementByName('f_alarmfahrt'); | |
f_alarmfahrt.checked = standardangaben.f_alarmfahrt; | |
var f_atemschutz = getFirstElementByName('f_atemschutz'); | |
f_atemschutz.checked = standardangaben.f_atemschutz; | |
var f_csa = getFirstElementByName('f_csa'); | |
f_csa.checked = standardangaben.f_csa; | |
var f_datumvon = getFirstElementByName('f_datumvon'); | |
f_datumvon.value = standardangaben.f_datumvon; | |
var f_zeitvon = getFirstElementByName('f_zeitvon'); | |
f_zeitvon.value = standardangaben.f_zeitvon; | |
var f_datumbis = getFirstElementByName('f_datumbis'); | |
f_datumbis.value = standardangaben.f_datumbis; | |
var f_zeitbis = getFirstElementByName('f_zeitbis'); | |
f_zeitbis.value = standardangaben.f_zeitbis; | |
var f_rauchmelder = getFirstElementByName('f_rauchmelder'); | |
f_rauchmelder.checked = standardangaben.f_rauchmelder; | |
var f_verursacher = getFirstElementByName('f_verursacher'); | |
f_datumvon.value = standardangaben.f_datumvon; | |
var f_eigentuemer = getFirstElementByName('f_eigentuemer'); | |
f_datumvon.value = standardangaben.f_datumvon; | |
var f_geschaedigter = getFirstElementByName('f_geschaedigter'); | |
f_geschaedigter.value = standardangaben.f_geschaedigter; | |
var f_hilfesuchender = getFirstElementByName('f_hilfesuchender'); | |
f_hilfesuchender.value = standardangaben.f_hilfesuchender; | |
var f_einheitsfuehrung = getFirstElementByName('f_einheitsfuehrung'); | |
f_einheitsfuehrung.value = standardangaben.f_einheitsfuehrung; | |
var f_einheitsfuehrungname = getFirstElementByName('f_einheitsfuehrungname'); | |
f_einheitsfuehrungname.value = standardangaben.f_einheitsfuehrungname; | |
var f_einsatzleitung = getFirstElementByName('f_einsatzleitung'); | |
f_einsatzleitung.value = standardangaben.f_einsatzleitung; | |
} | |
}; | |
td.appendChild(select); | |
var defaultOption = document.createElement('option'); | |
defaultOption.textContent = 'Übernehme Daten aus vorheriger Eingabe...'; | |
defaultOption.value = -1; | |
select.appendChild(defaultOption); | |
for(var i = 0; i < recent_standardangaben.length; i++) { | |
var standardangaben = recent_standardangaben[i]; | |
var option = document.createElement('option'); | |
option.textContent = standardangaben.f_nummer + ' | ' + standardangaben.f_stichwort_label + ' | ' + standardangaben.f_einsatzort; | |
option.value = i; | |
select.appendChild(option); | |
} | |
} | |
}); | |
var statistikerhebungSelect = document.querySelector("select[name='artber_switch']"); | |
if (statistikerhebungSelect) { | |
var label = statistikerhebungSelect.querySelector('option[selected]') ? statistikerhebungSelect.querySelector('option[selected]').innerText : undefined; | |
if (label == 'Hilfeleistungsbericht') { | |
// Speichere "Statistikerhebung" für Wiedervorlage | |
// 1st column | |
var notrufBeiContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.childNodes[1]; | |
var notrufUeberContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.childNodes[2]; | |
var wochentagContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.childNodes[3]; | |
var alarmDurchContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.childNodes[4]; | |
var alarmUeberContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.childNodes[5]; | |
// 2nd column | |
var secondColumn = statistikerhebungSelect.parentElement.parentElement.parentElement.parentElement.parentElement.nextSibling; | |
var klassifikationContainer = secondColumn.firstChild.firstChild.childNodes[1]; | |
// 3rd column | |
var thirdColumn = secondColumn.nextSibling; | |
var gefahrstoffFreisetzungContainer = thirdColumn.firstChild.firstChild.childNodes[1]; | |
var gefahrstoffMassnahmenContainer = thirdColumn.firstChild.firstChild.childNodes[2]; | |
var f_datum_9 = getFirstElementByName('f_datum[9]'); | |
var f_std_9 = getFirstElementByName('f_std[9]'); | |
var f_min_9 = getFirstElementByName('f_min[9]'); | |
var f_wert_11 = getFirstElementByName('f_wert[11]'); | |
var f_wert_12 = getFirstElementByName('f_wert[12]'); | |
var f_wert_13 = getFirstElementByName('f_wert[13]'); | |
var f_wert_14 = getFirstElementByName('f_wert[14]'); | |
var f_wert_15 = getFirstElementByName('f_wert[15]'); | |
var f_wert_16 = getFirstElementByName('f_wert[16]'); | |
var f_wert_17 = getFirstElementByName('f_wert[17]'); | |
var f_wert_18 = getFirstElementByName('f_wert[18]'); | |
var f_wert_19 = getFirstElementByName('f_wert[19]'); | |
var f_wert_20 = getFirstElementByName('f_wert[20]'); | |
var f_wert_25 = getFirstElementByName('f_wert[25]'); | |
var f_wert_26 = getFirstElementByName('f_wert[26]'); | |
var f_wert_27 = getFirstElementByName('f_wert[27]'); | |
var f_wert_28 = getFirstElementByName('f_wert[28]'); | |
var f_wert_29 = getFirstElementByName('f_wert[29]'); | |
var f_wert_30 = getFirstElementByName('f_wert[30]'); | |
var f_wert_31 = getFirstElementByName('f_wert[31]'); | |
var f_wert_32 = getFirstElementByName('f_wert[32]'); | |
var f_wert_33 = getFirstElementByName('f_wert[33]'); | |
var f_wert_34 = getFirstElementByName('f_wert[34]'); | |
var f_wert_35 = getFirstElementByName('f_wert[35]'); | |
var f_wert_36 = getFirstElementByName('f_wert[36]'); | |
var f_wert_37 = getFirstElementByName('f_wert[37]'); | |
var statistikErhebungContainer = statistikerhebungSelect.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; | |
var statistikerhebungButton = statistikErhebungContainer.querySelector("input[type='submit'][name='saveberichtstat']"); | |
if (statistikerhebungButton) { | |
statistikerhebungButton.addEventListener("click", function() { | |
// 1st column | |
var notrufBei = notrufBeiContainer.querySelector("img[src$='radio.gif']") ? notrufBeiContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
var notrufUeber = notrufUeberContainer.querySelector("img[src$='radio.gif']") ? notrufUeberContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
var wochentag = wochentagContainer.querySelector("img[src$='radio.gif']") ? wochentagContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
var alarmDurch = alarmDurchContainer.querySelector("img[src$='radio.gif']") ? alarmDurchContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
var alarmUeber = []; | |
alarmUeberContainer.querySelectorAll("img[src$='chk.gif']").forEach((img) => { | |
alarmUeber.push(img.parentElement.parentElement.nextSibling.innerText); | |
}); | |
// 2nd column | |
var klassifikation = klassifikationContainer.querySelector("img[src$='radio.gif']") ? klassifikationContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
// 3rd column | |
var gefahrstoffFreisetzung = gefahrstoffFreisetzungContainer.querySelector("img[src$='radio.gif']") ? gefahrstoffFreisetzungContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
var gefahrstoffMassnahmen = gefahrstoffMassnahmenContainer.querySelector("img[src$='radio.gif']") ? gefahrstoffMassnahmenContainer.querySelector("img[src$='radio.gif']").parentElement.parentElement.nextSibling.innerText : undefined; | |
storeItem('statistikerhebung_' + label, { | |
notrufBei: notrufBei, | |
notrufUeber: notrufUeber, | |
wochentag: wochentag, | |
alarmDurch: alarmDurch, | |
alarmUeber: alarmUeber, | |
klassifikation: klassifikation, | |
gefahrstoffFreisetzung: gefahrstoffFreisetzung, | |
gefahrstoffMassnahmen: gefahrstoffMassnahmen, | |
f_datum_9: f_datum_9.value, | |
f_std_9: f_std_9.value, | |
f_min_9: f_min_9.value, | |
f_wert_11: f_wert_11.value, | |
f_wert_12: f_wert_12.value, | |
f_wert_13: f_wert_13.value, | |
f_wert_14: f_wert_14.value, | |
f_wert_15: f_wert_15.value, | |
f_wert_16: f_wert_16.value, | |
f_wert_17: f_wert_17.value, | |
f_wert_18: f_wert_18.value, | |
f_wert_19: f_wert_19.value, | |
f_wert_20: f_wert_20.value, | |
f_wert_25: f_wert_25.value, | |
f_wert_26: f_wert_26.value, | |
f_wert_27: f_wert_27.value, | |
f_wert_28: f_wert_28.value, | |
f_wert_29: f_wert_29.value, | |
f_wert_30: f_wert_30.value, | |
f_wert_31: f_wert_31.value, | |
f_wert_32: f_wert_32.value, | |
f_wert_33: f_wert_33.value, | |
f_wert_34: f_wert_34.value, | |
f_wert_35: f_wert_35.value, | |
f_wert_36: f_wert_36.value, | |
f_wert_37: f_wert_37.value, | |
}); | |
}); | |
} | |
// "Statistikerhebung"-Wiedervorlage | |
if (statistikerhebungSelect) { | |
var button = document.createElement('button'); | |
button.innerText = 'Übernehme Daten aus vorheriger Eingabe'; | |
button.onclick = function() { | |
var requestDelay = 0; | |
var value = loadItem('statistikerhebung_' + label, {}); | |
['notrufBei', 'notrufUeber', 'wochentag', 'alarmDurch', 'klassifikation', 'gefahrstoffFreisetzung', 'gefahrstoffMassnahmen'].forEach((id) => { | |
eval(id + 'Container').querySelectorAll("img[src$='radio.gif'], img[src$='radio0.gif']").forEach((img) => { | |
var selected = img.getAttribute('src').indexOf('radio.gif') != -1; | |
var optionValue = img.parentElement.parentElement.nextSibling.innerText; | |
if (optionValue == value[id] && !selected) { | |
setTimeout(function() { | |
var httpRequest = new XMLHttpRequest(); | |
httpRequest.open('GET', img.parentElement.parentElement.nextSibling.firstChild.getAttribute('href')); | |
httpRequest.send(); | |
}, requestDelay += 100); | |
} | |
}); | |
}); | |
alarmUeberContainer.querySelectorAll("img[src$='chk.gif'], img[src$='chk0.gif']").forEach((img) => { | |
var checked = img.getAttribute('src').indexOf('chk.gif') != -1; | |
var optionValue = img.parentElement.parentElement.nextSibling.innerText; | |
if (checked != value.alarmUeber.includes(optionValue)) { | |
setTimeout(function() { | |
var httpRequest = new XMLHttpRequest(); | |
httpRequest.open('GET', img.parentElement.parentElement.nextSibling.firstChild.getAttribute('href')); | |
httpRequest.send(); | |
}, requestDelay += 100); | |
} | |
}); | |
f_datum_9.value = value.f_datum_9; | |
f_std_9.value = value.f_std_9; | |
f_min_9.value = value.f_min_9; | |
f_wert_11.value = value.f_wert_11; | |
f_wert_12.value = value.f_wert_12; | |
f_wert_13.value = value.f_wert_13; | |
f_wert_14.value = value.f_wert_14; | |
f_wert_15.value = value.f_wert_15; | |
f_wert_16.value = value.f_wert_16; | |
f_wert_17.value = value.f_wert_17; | |
f_wert_18.value = value.f_wert_18; | |
f_wert_19.value = value.f_wert_19; | |
f_wert_20.value = value.f_wert_20; | |
f_wert_25.value = value.f_wert_25; | |
f_wert_26.value = value.f_wert_26; | |
f_wert_27.value = value.f_wert_27; | |
f_wert_28.value = value.f_wert_28; | |
f_wert_29.value = value.f_wert_29; | |
f_wert_30.value = value.f_wert_30; | |
f_wert_31.value = value.f_wert_31; | |
f_wert_32.value = value.f_wert_32; | |
f_wert_33.value = value.f_wert_33; | |
f_wert_34.value = value.f_wert_34; | |
f_wert_35.value = value.f_wert_35; | |
f_wert_36.value = value.f_wert_36; | |
f_wert_37.value = value.f_wert_37; | |
button.setAttribute('disabled', 'disabled'); | |
statistikerhebungButton.setAttribute('disabled', 'disabled'); | |
setTimeout(function() { | |
statistikerhebungButton.form.submit(); | |
}, 1500); | |
}; | |
statistikerhebungSelect.parentNode.appendChild(document.createElement('br')); | |
statistikerhebungSelect.parentNode.appendChild(button); | |
} | |
} | |
} | |
// Erhöhe Konstrat von Icons | |
document.querySelectorAll("img[src$='ZFx.gif'], img[src$='GFx.gif'], img[src$='MAx.gif']").forEach((img) => { | |
img.style.background = 'darkgray'; | |
}); | |
// Mach das Dropdown für das Personal größer... | |
document.getElementsByName('f_besatzung[]').forEach((select) => { | |
select.removeAttribute('size'); | |
var rect = select.getBoundingClientRect(); | |
select.style.height = (window.innerHeight * 0.85) + 'px'; | |
}); | |
// Speichere "Statuszeiten" für Wiedervorlage | |
var statuszeitenButton = document.querySelector("input[type='submit'][value='Zeiten speichern']"); | |
if (statuszeitenButton) { | |
statuszeitenButton.addEventListener("click", function() { | |
['f_alarmkfzdatum', 'f_alarmkfzzeit', | |
'f_endevorstaerkedatum', 'f_endevorstaerkezeit', | |
'f_abfahrtghdatum', 'f_abfahrtghzeit', | |
'f_endevorortdatum', 'f_endevorortzeit', | |
'f_ankunftdatum', 'f_ankunftdatum', | |
'f_ankunftzeit', 'f_ankunftzeit', | |
'f_abfahrtdatum', 'f_abfahrtzeit', | |
'f_ankunftghdatum', 'f_ankunftghzeit', | |
'f_klarkfzdatum', 'f_klarkfzzeit', | |
'f_kfzkm' | |
].forEach((id) => { | |
var values = loadItem(id, []); | |
document.querySelectorAll('input[type="text"][name^="' + id + '"]').forEach((input) => { | |
var index = input.name.replace(id + '[', '').replace(']', ''); | |
values[index] = input.value; | |
}); | |
storeItem(id, values); | |
}); | |
}); | |
} | |
// "Statuszeiten"-Wiedervorlage | |
document.querySelectorAll('b').forEach((b) => { | |
if (b.innerHTML != 'Statuszeiten') return; | |
var td = b.parentElement.parentElement.parentElement; | |
if (td.nodeName.toLowerCase() != 'td') return; | |
var button = document.createElement('button'); | |
button.style.marginLeft = '10px'; | |
button.innerText = 'Übernehme Daten aus vorheriger Eingabe'; | |
button.onclick = function() { | |
['f_alarmkfzdatum', 'f_alarmkfzzeit', | |
'f_endevorstaerkedatum', 'f_endevorstaerkezeit', | |
'f_abfahrtghdatum', 'f_abfahrtghzeit', | |
'f_endevorortdatum', 'f_endevorortzeit', | |
'f_ankunftdatum', 'f_ankunftdatum', | |
'f_ankunftzeit', 'f_ankunftzeit', | |
'f_abfahrtdatum', 'f_abfahrtzeit', | |
'f_ankunftghdatum', 'f_ankunftghzeit', | |
'f_klarkfzdatum', 'f_klarkfzzeit', | |
'f_kfzkm' | |
].forEach((id) => { | |
var values = loadItem(id, []); | |
document.querySelectorAll('input[type="text"][name^="' + id + '"]').forEach((input) => { | |
var index = input.name.replace(id + '[', '').replace(']', ''); | |
input.value = values[index]; | |
}); | |
}); | |
}; | |
td.appendChild(button); | |
}); | |
// Speichere "Bericht" für Wiedervorlage | |
var berichtButton = document.querySelector("input[type='submit'][value='Text speichern']"); | |
if (berichtButton) { | |
berichtButton.onclick = function() { | |
var f_berichttext = getFirstElementByName('f_berichttext'); | |
storeItem('f_berichttext', f_berichttext.value); | |
}; | |
} | |
// "Bericht"-Wiedervorlage | |
document.querySelectorAll('b').forEach((b) => { | |
if (b.innerHTML != 'Bericht') return; | |
var td = b.parentElement.parentElement.parentElement; | |
if (td.nodeName.toLowerCase() != 'td') return; | |
var button = document.createElement('button'); | |
button.style.marginLeft = '10px'; | |
button.innerText = 'Übernehme Daten aus vorheriger Eingabe'; | |
button.onclick = function() { | |
var f_berichttext = getFirstElementByName('f_berichttext'); | |
f_berichttext.value = loadItem('f_berichttext', ''); | |
}; | |
td.appendChild(button); | |
}); | |
// Wechsel Logo mit unserem Wappen aus!!! | |
//var logoImg = document.querySelector('img[src$="FOx-Logo.gif"]'); | |
//logoImg.setAttribute('height', 20); | |
//logoImg.style.padding = '2px'; | |
//logoImg.setAttribute('src', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcwAAABhCAYAAABbLpECAAAACXBIWXMAAAWJAAAFiQFtaJ36AAAgAElEQVR4nO2dCXxU1fn3nwQQAiRMELRsJn+wxqQu0ERAqSxKbN0CNYYqKAWXgK2vYKmQfgoKgq8sikDbP0tVcAFbMBZRq29JFeirBUtepCopVHgDAkpZckmAhC3z//zOnDOcubn3zr2z3Flyvp/PfJKZuXOXc+fM7zzPec7zpHi93g2kiCSDrfalaVpPItrt4Hh7PB5PrxA/P4d/flk0z4nvwys97eXxePbo3p9NRFP40wKPx1MZ5Jycbr+ViPKJqNLj8RQ4PLeA6/d4PClWxzI4dlift3OOBtuXEBGOO9vg7WW8HSzvu9G526DJvY/2MSL0/ZwitdUyj8czzs6OdJ8r83g8c3Tvx1V/jnE/i2hb2O1Hdu5tpNq5JRENeujBeTb3o7DixZeeiLf2YR2Bf6FGBOsMUUY+dr7uuRFDHW6fz//G8hqjjqZpmUS0Wtc+ekrJt20pv++W4qtIGOz0Z9XPwse0nSGYVLl1Z8JeWRJQFuYlWH2+lFsheKzXNK3A5o9nuOdkhHzcTBvb9zT5vwl89ChIdnFYL/1oER8N1+i2KeHb5Ev3Xb+NGd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oPVCDElPodZXr7JcB7SqIKIsETFnCisRr21aBess8TSkZycHhuVG1ahiA+45ahfi1kJF666RQq3CUcwBVhq8dS8uX8glAQTIKAHrlHiYgfLUBSi1oufCACCm1ZeziHjS0AwiYkpRBZLTuBOhVtV7AdC3b9/XsD8J8QZgo19661eATL4ICkBX2eplo4oFAqFogmhuGT1QGA2PDH5nhVDbuqT9eTUl9nSEDEnKaxAIZagX7+8Jks7RIFmM+q4FUnc/QqhxOfkwCO8ztZhcotWv9RED9Z9IjcsT3c3RiUlUCgUCoUZkbAwBR4unhOWLF5HK19f75/b1AN3LOYOfdZkta0lHsLlKtZ8mrGKlyEjPl9ZblBhBXOVKNHFU90t5OetXLAKhUKhMCWSgilAsMz0urpTg1a+XmEonCIbjxA2sf4SFqZlUer3nmVzlLK1qkekxDMK+BFCiVR8vJ7ldGVVKhQKhcIO0RBMwRgunFkQznVvfxxQYot0c5eYe4TrVKzTNALWI6xSp0E9cL0WDRsghFJUG1kRwWtVKBQKRZITTcEUDOfFlgd99OE2WrfuY9PUd/L6TSMQ1FNXd8q2YA4e0puKigbQkJv64CksygVEtDZyl6ZQKBSK5oIbginI5sIJAc2CeCKZOh5iSUq4YGlIQUEOe3CR3MsFEkJZrb7VCoVCoQgVNwVTpjcXTsx3DoLVuHPn17TzX/uorq7eX5UE4DUxB4o5yJwrL/O/B2FMT/e9hoom6eksinYjn5dcq7L0KBQKhSJSxEow9QzmIprN/yLi9togn9nOI1s/49bjZyqAR6FQKBTRIl4EU6FQKBSK+IWI/gef0/q4HTkbywAAAABJRU5ErkJggg=='); | |
//logoImg.nextSibling.remove(); | |
}, false); | |
function getFirstElementByName(name) { | |
var elements = document.getElementsByName(name); | |
if (elements.length) { | |
return elements[0]; | |
} else { | |
return undefined; | |
} | |
} | |
function loadItem(key, defaultValue) { | |
var value = window.localStorage.getItem(key); | |
if (value === null) { | |
return defaultValue; | |
} | |
else { | |
return JSON.parse(value); | |
} | |
} | |
function storeItem(key, value) { | |
window.localStorage.setItem(key, JSON.stringify(value)); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment