(Unterschied zwischen Seiten)
((Benutzername entfernt) (Logbucheinzelheiten entfernt)) |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
/*BITV tabelle*/ | |||
var allTableCells = document.getElementById("bitv").getElementsByTagName("td"); | |||
for( var i = 0; i < allTableCells.length; i++ ) { | |||
var node = allTableCells[i]; | |||
//get the text from the first child node - which should be a text node | |||
var currentText = node.childNodes[0].nodeValue; | |||
currentText = currentText.trim(); | |||
//check for 'one' and assign this table cell's background color accordingly | |||
if (currentText == "Erfüllt") { | |||
node.style.backgroundColor = "#c5e8c9"; | |||
} | |||
if (currentText == "Eher Erfüllt") { | |||
node.style.backgroundColor = "#c5e8c9"; | |||
} | |||
else if (currentText == "Teilweise Erfüllt") { | |||
node.style.backgroundColor = "#f7e1b2"; | |||
} | |||
else if (currentText == "Eher nicht Erfüllt") { | |||
node.style.backgroundColor = "#e9c4c4"; | |||
} | |||
else if (currentText == "Nicht Erfüllt") { | |||
node.style.backgroundColor = "#e9c4c4"; | |||
} | |||
else if (currentText == "Nicht anwendbar") { | |||
node.style.backgroundColor = "#d2d2d2"; | |||
} | |||
} | |||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) { | |||
document.body.classList.add( 'mw-rcfilters-ui-initialized' ); | |||
} | |||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Recentchanges' ) { | |||
document.body.classList.add( 'mw-rcfilters-ui-initialized' ); | |||
} | |||
/*Close details elements */ | |||
// Fetch all the details element. | |||
const details = document.querySelectorAll("details"); | |||
// Add the onclick listeners. | |||
details.forEach((targetDetail) => { | |||
targetDetail.addEventListener("click", () => { | |||
// Close all the details that are not targetDetail. | |||
details.forEach((detail) => { | |||
if (detail !== targetDetail) { | |||
detail.removeAttribute("open"); | |||
} | |||
}); | |||
}); | |||
}); |
Version vom 29. März 2023, 17:10 Uhr
/*BITV tabelle*/
var allTableCells = document.getElementById("bitv").getElementsByTagName("td");
for( var i = 0; i < allTableCells.length; i++ ) {
var node = allTableCells[i];
//get the text from the first child node - which should be a text node
var currentText = node.childNodes[0].nodeValue;
currentText = currentText.trim();
//check for 'one' and assign this table cell's background color accordingly
if (currentText == "Erfüllt") {
node.style.backgroundColor = "#c5e8c9";
}
if (currentText == "Eher Erfüllt") {
node.style.backgroundColor = "#c5e8c9";
}
else if (currentText == "Teilweise Erfüllt") {
node.style.backgroundColor = "#f7e1b2";
}
else if (currentText == "Eher nicht Erfüllt") {
node.style.backgroundColor = "#e9c4c4";
}
else if (currentText == "Nicht Erfüllt") {
node.style.backgroundColor = "#e9c4c4";
}
else if (currentText == "Nicht anwendbar") {
node.style.backgroundColor = "#d2d2d2";
}
}
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) {
document.body.classList.add( 'mw-rcfilters-ui-initialized' );
}
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Recentchanges' ) {
document.body.classList.add( 'mw-rcfilters-ui-initialized' );
}
/*Close details elements */
// Fetch all the details element.
const details = document.querySelectorAll("details");
// Add the onclick listeners.
details.forEach((targetDetail) => {
targetDetail.addEventListener("click", () => {
// Close all the details that are not targetDetail.
details.forEach((detail) => {
if (detail !== targetDetail) {
detail.removeAttribute("open");
}
});
});
});
Dateiversionen
Klicke auf einen Zeitpunkt, um diese Version zu laden.
Version vom | Vorschaubild | Maße | Benutzer | Kommentar | |
---|---|---|---|---|---|
aktuell | 18:04, 11. Mär. 2024 | 516 × 291 (16 KB) | Margit Link-Rodrigue (Diskussion | Beiträge) | ||
18:03, 11. Mär. 2024 | 516 × 291 (17 KB) | Margit Link-Rodrigue (Diskussion | Beiträge) | |||
13:26, 8. Feb. 2024 | 516 × 291 (20 KB) | Monique Gähl (Diskussion | Beiträge) | |||
19:11, 5. Dez. 2023 | 516 × 641 (27 KB) | Monique Gähl (Diskussion | Beiträge) | |||
17:57, 16. Okt. 2023 | 586 × 641 (30 KB) | Monique Gähl (Diskussion | Beiträge) | |||
11:02, 11. Sep. 2023 | 586 × 541 (27 KB) | Monique Gähl (Diskussion | Beiträge) | |||
17:28, 20. Jul. 2023 | 516 × 411 (22 KB) | Monique Gähl (Diskussion | Beiträge) | |||
11:26, 26. Jun. 2023 | 516 × 401 (21 KB) | Monique Gähl (Diskussion | Beiträge) | |||
10:15, 16. Jun. 2023 | 516 × 281 (17 KB) | Monique Gähl (Diskussion | Beiträge) | |||
13:51, 15. Mai 2023 | 516 × 131 (9 KB) | Florian Bäckmann (Diskussion | Beiträge) |
Du kannst diese Datei nicht überschreiben.
Dateiverwendung
Die folgenden 6 Seiten verwenden diese Datei:
Drawio-Tag verwendet
There are no pages with this draw.io image