I am here to prevent the first-page-empty bug!
|
|
Zeile 1: |
Zeile 1: |
|
/* Das folgende JavaScript wird für alle Benutzer geladen. */
|
|
<details> |
|
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) { |
|
<summary><!--{$cheader|escape:'html'}--></summary>
|
|
document.body.classList.add( 'mw-rcfilters-ui-initialized' );
|
|
<div class="detailscontent">
|
|
} |
|
<!--{$cdescription|escape:'html'}-->
|
|
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'RecentChanges' ) {
|
|
<hr> |
|
document.body.classList.add( 'mw-rcfilters-ui-initialized' );
|
|
<!--{$chelp|escape:'html'}-->
|
|
}
|
|
</div> |
|
|
|
</details> |
|
/*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";
|
|
|
} |
|
|
else if (currentText == "Nicht Erfüllt") {
|
|
|
node.style.backgroundColor = "#e9c4c4";
|
|
|
}
|
|
|
|
|
|
}
|
|
Aktuelle Version vom 29. März 2023, 17:27 Uhr
<details>
<summary></summary>
</details>