Datei:Sandkasten-11346612.drawio.png und MediaWiki:Common.js: Unterschied zwischen den Seiten

(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.

(neueste | älteste) Zeige ( | ältere 10) (10 | 20 | 50 | 100 | 250 | 500)
Version vomVorschaubildMaßeBenutzerKommentar
16:44, 14. Mär. 2023Vorschaubild der Version vom 16:44, 14. Mär. 2023266 × 101 (3 KB)Florian Bäckmann (Diskussion | Beiträge)
16:44, 14. Mär. 2023Vorschaubild der Version vom 16:44, 14. Mär. 2023266 × 101 (3 KB)Florian Bäckmann (Diskussion | Beiträge)
16:42, 14. Mär. 2023Vorschaubild der Version vom 16:42, 14. Mär. 2023266 × 101 (3 KB)Florian Bäckmann (Diskussion | Beiträge)
16:42, 14. Mär. 2023Vorschaubild der Version vom 16:42, 14. Mär. 2023266 × 101 (3 KB)Florian Bäckmann (Diskussion | Beiträge)
16:42, 14. Mär. 2023Vorschaubild der Version vom 16:42, 14. Mär. 2023276 × 101 (4 KB)Florian Bäckmann (Diskussion | Beiträge)
12:22, 14. Dez. 2022Vorschaubild der Version vom 12:22, 14. Dez. 2022146 × 102 (4 KB)Florian Bäckmann (Diskussion | Beiträge)
14:44, 15. Nov. 2022Vorschaubild der Version vom 14:44, 15. Nov. 2022206 × 102 (4 KB)Margit Link-Rodrigue (Diskussion | Beiträge)
12:55, 24. Okt. 2022Vorschaubild der Version vom 12:55, 24. Okt. 2022146 × 102 (4 KB)Margit Link-Rodrigue (Diskussion | Beiträge)
11:38, 28. Jul. 2022Vorschaubild der Version vom 11:38, 28. Jul. 2022101 × 101 (2 KB)Florian Bäckmann (Diskussion | Beiträge)
17:14, 18. Jan. 2022Vorschaubild der Version vom 17:14, 18. Jan. 202231 × 82 (2 KB)WikiSysop (Diskussion | Beiträge)
(neueste | älteste) Zeige ( | ältere 10) (10 | 20 | 50 | 100 | 250 | 500)

Drawio-Tag verwendet

    There are no pages with this draw.io image

Keine Kategorien vergebenBearbeiten

Diskussionen