Änderungen

Aus WIKI LAUER-FISCHER GmbH
Wechseln zu: Navigation, Suche

MediaWiki:Common.js

4.883 Bytes entfernt, 14:59, 13. Apr. 2018
keine Bearbeitungszusammenfassung
var arrow_expanded cookieName = "url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgIHhtbG5zOmNjPSJodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9ucyMiCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiCiAgIHhtbG5zOmlua3NjYXBlPSJodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy9uYW1lc3BhY2VzL2lua3NjYXBlIgogICB3aWR0aD0iMTYiCiAgIGhlaWdodD0iMTYiCiAgIGlkPSJzdmcyIgogICB2ZXJzaW9uPSIxLjEiCiAgIGlua3NjYXBlOnZlcnNpb249IjAuNDguNSByMTAwNDAiCiAgIHNvZGlwb2RpOmRvY25hbWU9ImFycm93LWV4cGFuZGVkLnN2ZyI+CiAgPGRlZnMKICAgICBpZD0iZGVmczQiIC8+CiAgPHNvZGlwb2RpOm5hbWVkdmlldwogICAgIGlkPSJiYXNlIgogICAgIHBhZ2Vjb2xvcj0iI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IDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBkPSJtIDYuMDAxLDIuOTk4IDUuMDAxLDUgLTUuMDAxLDUgeiIKICAgICAgIGlkPSJwYXRoMjk5NyIKICAgICAgIGlua3NjYXBlOmNvbm5lY3Rvci1jdXJ2YXR1cmU9IjAiCiAgICAgICBzdHlsZT0iZmlsbDojNzk3OTc5IiAvPgogIDwvZz4KPC9zdmc+)";
// Delete WINAPO SQL from Addon-Produkte and insert a new link after Addon-Produkte.
// That way WINAPO SQL looks like big link and is not affected by slideToggle() on Addon-Produkte.
jQuery(document).ready(function () {
jQuery("#n-WINAPO-SQLuse strict").detach(); jQuery// Register slideToggle("#p-AddOn-Produkte")on each category.css({ "margin-bottom": "2px" }); jQuery("#p-AddOn-Produkte").after("<a hrefvar makeOnClick =\"/Kategorie:WINAPO_SQL\" class=\"portlet generated-sidebar\"><h3>WINAPO SQL</h3></a>"); jQuery("#p-AddOn-Produkte + a > h3").cssgenerateMakeOnClick({ "margin-bottom": "12px" });
// Register slideTogglejQuery("div.generated-sidebar.portlet") on .each category(makeOnClick); makeOnClick.defaultExpanded = false; jQuery("div.generated#p-sidebar.portlet > h3tb").each(makeOnClick);
});
// Registers the slideToggle() function on this and sets up the cookie
function makeOnClickgenerateMakeOnClick(n) {
"use strict";
var n = 0; var makeOnClick = function m() { if (jQuery(this).attrchildren({ "roleh3": "button", "type).is(": hidden"button" })) { return; }
var cookie = getCookie("showSection" + n); var expanded;  if (cookie === null) { expanded k = true; setStateCookie(n, expanded); } else { expanded = cookie === "1"; }
jQuery(this).attr("aria-pressed", expanded ? "true" : "false"); var css = expanded ? arrow_expanded : arrow_collapsed; jQuery(this).parent().css({ "background-image": css, "background-repeat": "no-repeat" }); n++
if (expanded) { jQuery(this).addClassattr({ "expandedrole"); } else { jQuery(this).addClass(: "button", "collapsedtype"); jQuery(this).parent().children(: "divbutton").hide(}); }
jQuery(this).click(function () { jQuery(this).parent().children("div.pBody:first-of-type")var expanded = m.slideToggle('fast');defaultExpanded
var newExpanded cookie = jQuerygetCookie(this).attr("aria-pressed") !== "true"; var newArrow = newExpanded ? arrow_expanded : arrow_collapsed; setStateCookie(n, newExpanded); jQuery(this)cookieName + k.parenttoString().css("background-image", newArrow); jQuery(this).attr("aria-pressed", newExpanded ? "true" : "false");
if (newExpandedcookie === null) { jQuerysetStateCookie(this).removeClass("collapsed").addClass("k, expanded");
}
else {
jQuery(this).removeClass("expanded= cookie === ").addClass("collapsed1");
}
})
function getCookie jQuery(keythis) { .children("h3").attr("aria-pressed", expanded ? "true" : "use strictfalse"); var cookieQuery = documentjQuery(this).cookiechildren("h3").match('addClass(expanded ?"nav-expanded" :^|;)\\s*' + key + '\\s*=\\s*([^;]+)'"nav-collapsed");
return cookieQuery if (expanded ==false) { jQuery(this).children("div").hide(); }  jQuery(this).children("h3").click(function () { var newExpanded = null jQuery(this).attr("aria-pressed") !== "true"; setStateCookie(k, newExpanded);  if (newExpanded) { jQuery(this).removeClass("nav-collapsed"); jQuery(this).addClass("nav-expanded"); } else { jQuery(this).removeClass("nav-expanded"); jQuery(this).addClass("nav-collapsed"); }  jQuery(this).attr("aria-pressed", newExpanded ? null "true" : "false");  jQuery(this).parent().children("div.pBody: cookieQueryfirst-of-type").popslideToggle('fast'); })
}
// Writes the state of the k-th section into a cookiemakeOnClick. function setStateCookie(k, expanded) { "use strict"; var now defaultExpanded = new Date(); now.setFullYear(now.getFullYear() + 3);true
return makeOnClick}function getCookie(key) { "use strict"; var expirationDate cookieQuery = nowdocument.toUTCStringcookie.match('(?:^|;)\\s*' + key + '\\s*=\\s*([^;]+)');
var cookie return cookieQuery == "showSection" + k.toString() + "=" + (expanded null ? "1" null : "0"cookieQuery.pop() + "; Expires=" + expirationDate + "; path=/";}
// Writes the state of the k-th section into a cookie.function setStateCookie(k, expanded) { "use strict"; var now = new Date(); now.setFullYear(now.getFullYear() + 3);  var expirationDate = now.toUTCString();  var cookie = cookieName + k.toString() + "=" + (expanded ? "1" : "0") + "; Expires=" + expirationDate + "; path=/";  document.cookie = cookie; }
}

Navigationsmenü