Hauptmenü öffnen

WIKI LAUER-FISCHER GmbH β

Änderungen

MediaWiki:Common.js

120 Bytes hinzugefügt, 14:04, 13. Apr. 2018
keine Bearbeitungszusammenfassung
jQuery(document).ready(function () {
"use strict"
// Register slideToggle() on each category.
var makeOnClick = generateMakeOnclick();
 
jQuery("div.generated-sidebar.portlet").each(makeOnClick);
makeOnClick.defaultExpanded = false;
// Registers the slideToggle() function on this and sets up the cookie
function makeOnClickgenerateMakeOnClick() {
"use strict";
var n = 0; var makeOnClick = function () { if (jQuery(this).children("h3").is(":hidden")) { return; }
if (makeOnClick.defaultExpanded === undefined) { makeOnClick.defaultExpanded var k = true; }n
if (makeOnClick.n === undefined) { makeOnClick.n = 0; }++
var n = makeOnClick jQuery(this).nattr({ "role": "button", "type": "button" });
var expanded = makeOnClick.n++;defaultExpanded
jQuery var cookie = getCookie(this)cookieName + k.attrtoString({ "role": "button", "type": "button" }));
var if (cookie === null) { setStateCookie(k, expanded ); } else { expanded = cookie === makeOnClick.defaultExpanded"1"; }
var cookie = getCookie jQuery(cookieName + nthis).children("h3").toStringattr("aria-pressed", expanded ? "true" : "false"); jQuery(this).children("h3").addClass(expanded ? "nav-expanded" : "nav-collapsed");
if (cookie =expanded == nullfalse) { setStateCookie jQuery(n, expandedthis); } else { expanded = cookie === .children("1div").hide(); }
jQuery(this).children("h3").attrclick(function ("aria-pressed", expanded ? "true" : "false");{ var newExpanded = jQuery(this).childrenattr("h3aria-pressed").addClass(expanded ? !== "nav-expanded" : "nav-collapsedtrue"; setStateCookie(k, newExpanded);
if (newExpanded) { jQuery(this).removeClass("nav-collapsed"); jQuery(this).addClass("nav-expanded == false") ; } else { jQuery(this).childrenremoveClass("divnav-expanded"); jQuery(this).hideaddClass("nav-collapsed"); }
jQuery(this).children("h3").click(function () { var newExpanded = jQuery(this).attr("aria-pressed") !== , newExpanded ? "true"; setStateCookie(n, newExpanded: "false");
if (newExpanded) { jQuery(this).removeClass("nav-collapsed"); jQueryparent(this).addClasschildren("navdiv.pBody:first-expanded"); } else { jQuery(this).removeClass("navof-expandedtype"); jQuery(this).addClassslideToggle("nav-collapsed"'fast'); })  jQuery(this).attr("aria-pressed", newExpanded ? "true" : "false"); }
jQuery(this) makeOnClick.parent().children("div.pBody:first-of-type").slideToggle('fast'); })defaultExpanded = true
return makeOnClick
}
function getCookie(key) {