(Unterschied zwischen Seiten)
K (1 Version importiert) |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
= | /* Das folgende JavaScript wird für alle Benutzer geladen. */ | ||
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' ); | |||
} | |||
} | |||
/*BITV tabelle*/ | |||
var allTableCells = document.getElementById("bitv").getElementsByTagName("td"); | |||
for(var i = 0, max = allTableCells.length; i < max; 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; | |||
//check for 'one' and assign this table cell's background color accordingly | |||
if (currentText === "one") | |||
node.style.backgroundColor = "5.2"; | |||
} |
Version vom 10. März 2023, 17:55 Uhr
/* Das folgende JavaScript wird für alle Benutzer geladen. */
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' );
}
/*BITV tabelle*/
var allTableCells = document.getElementById("bitv").getElementsByTagName("td");
for(var i = 0, max = allTableCells.length; i < max; 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;
//check for 'one' and assign this table cell's background color accordingly
if (currentText === "one")
node.style.backgroundColor = "5.2";
}