|
|
(29 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
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' );
| |
| }
| |
|
| |
|
| /*Target based tabs*/
| |
| var hashLinks = document.querySelectorAll("a[href^='#']");
| |
| [].forEach.call(hashLinks, function (link) {
| |
| link.addEventListener("click", function (event) {
| |
| event.preventDefault();
| |
| history.pushState({}, "", link.href);
| |
|
| |
| // Update the URL again with the same hash, then go back
| |
| history.pushState({}, "", link.href);
| |
| history.back();
| |
| });
| |
| });
| |
|
| |
|
| |
| /*BITV tabelle*/
| |
| var cells = document.getElementById("bitv").getElementsByTagName("td");
| |
| for (var i = 0; i < cells.length; i++) {
| |
| if (cells[i].innerHTML == "Erfüllt") {
| |
| cells[i].style.backgroundColor = "red";
| |
| }
| |
| }
| |