Zuletzt bearbeitet vor 4 Monaten
von Margit Link-Rodrigue

AutoDoc:BlueSpiceUserInfo und MediaWiki:Common.js: Unterschied zwischen den Seiten

(Unterschied zwischen Seiten)
K (1 Version importiert)
 
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
==DescriptionMsg==
/*BITV tabelle
{{AutoDocDescriptionMsg
|name = BlueSpiceUserInfo
|desc = {{int:bs-userinfo-description
}}
}}
==License==
{{AutoDocLicense
|name = GPL-3.0-only
}}
==Requirements==
{{AutoDocRequirements
|mediawiki = {{AutoDocVersion
|name = MediaWiki
|version = 1.35.0
}}
|extensions = {{AutoDocVersion
|name = BlueSpiceFoundation
|version = 4.0
}}
}}
==IntegratesInto==
{{AutoDocIntegratesInto
|into = {{AutoDocListItem
|item = BlueSpiceUserInfo
}}
}}
==Config==
{{AutoDocConfig
|config = {{AutoDocOption
|name = UserInfoHiddenMeta
|value = <nowiki>array (
  0 => 'email',
)</nowiki>
}}
}}
==ApiModules==
{{AutoDocApiModules
|APIModules = {{AutoDocCallback
|name = bs-userinfometa
|callback = \BlueSpice\UserInfo\Api\Meta
}}
}}
==Hooks==
{{AutoDocHooks
|Hooks = {{AutoDocCallback
|name = [https://www.mediawiki.org/wiki/Manual:Hooks/BSFoundationRendererMakeTagAttribs BSFoundationRendererMakeTagAttribs]
|callback = \BlueSpice\UserInfo\Hook\BSFoundationRendererMakeTagAttribs\AddMetaData::callback
}}
{{AutoDocCallback
|name = [https://www.mediawiki.org/wiki/Manual:Hooks/BeforePageDisplay BeforePageDisplay]
|callback = \BlueSpice\UserInfo\Hook\BeforePageDisplay\AddResources::callback
}}
}}


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";
}
}
*/
/*remedy for issues with Recentchanges filter */
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");
      }
    });
  });
}); */

Aktuelle Version vom 4. Mai 2023, 17:23 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";
}

}
*/
/*remedy for issues with Recentchanges filter */

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");
      }
    });
  });
}); */
Keine Kategorien vergebenBearbeiten

Diskussionen