|
|
Zeile 1: |
Zeile 1: |
| /* Das folgende JavaScript wird für alle Benutzer geladen. */
| | <includeonly><div class="bs-collapsible collapse-pre-one mw-collapsible mw-collapsed"> |
| if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Watchlist' ) {
| | <div class="mw-collapsible-toggle" style="float: none;"> |
| document.body.classList.add( 'mw-rcfilters-ui-initialized' );
| | ==={{{cheader|}}}=== |
| }
| | </div><div class="mw-collapsible-content"> |
| if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'RecentChanges' ) {
| | {{{ccontent|}}} |
| document.body.classList.add( 'mw-rcfilters-ui-initialized' );
| | </div></div></includeonly> |
| }
| |
| | |
| /*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";
| |
| }
| |