Änderungen

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

MediaWiki:Common.js

5.661 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 () {
var sql_margin_top = jQuery("#n-WINAPO-SQL ause strict").css("margin-top"); var sql_margin_bottom = "calc(" + jQuery// Register slideToggle("#p-AddOn-Produkte")on each category.css("margin-bottom") + " + " + jQuery("#p-AddOn-Produkte div").css("padding-bottom") + ")"; var sql_font_size makeOnClick = jQuery("#n-WINAPO-SQL a").cssgenerateMakeOnClick("font-size"); var sql_padding_left = jQuery("#p-search > h3").css("padding-left");   jQuery("#n-WINAPO-SQL").detach(); jQuery("#p-AddOn-Produkte").css({ "margin-bottom": "0px" }); jQuery("#p-AddOn-Produkte div").css({ "padding-bottom": "0px" }); jQuery("#p-AddOn-Produkte").after("<a href=\"/Kategorie:WINAPO_SQL\" class=\"portlet generated-sidebar\"><h3>WINAPO SQL</h3></a>"); jQuery("#p-AddOn-Produkte + a > h3").css({ "margin-bottom": sql_margin_bottom, "margin-top": sql_margin_top, "padding-left": sql_padding_left, "padding-top": "0px", "padding-bottom": "0px", "font-size": sql_font_size, "line-height": sql_line_height }); jQuery("#p-AddOn-Produkte + a").css({"display": "block", "margin-bottom": "0px", "margin-top": "0px", "padding-top": "0px", "padding-bottom": "0px"});
// 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 k = getCookie("showSection" + n); var expanded;
if (cookie === null) { expanded = true; setStateCookie(n, expanded); } else { expanded = cookie === "1"; }++
jQuery(this).attr({ "aria-pressed", expanded ? "truerole" : "falsebutton"); var css = expanded ? arrow_expanded : arrow_collapsed; jQuery(this).parent().css({ "background-image": css, "background-repeattype": "no-repeatbutton" });
if (expanded) { jQuery(this).addClass("var expanded"); } else { jQuery(this).addClass("collapsed"); jQuery(this).parent().children("div")= m.hide(); }defaultExpanded
jQuery(this).click(function () { jQueryvar cookie = getCookie(this)cookieName + k.parenttoString().children("div.pBody:first-of-type").slideToggle('fast');
var newExpanded = jQueryif (this).attr("aria-pressed") !cookie == "true"; var newArrow = newExpanded ? arrow_expanded : arrow_collapsed; setStateCookie(n, newExpanded); jQuery(this).parent().css("background-image", newArrow); jQuery(this).attr("aria-pressed", newExpanded ? "true" : "false");  if (newExpandednull) { 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.defaultExpanded = true  return makeOnClick}function setStateCookiegetCookie(k, expandedkey) { "use strict"; var now cookieQuery = new Date(); nowdocument.cookie.setFullYearmatch(now.getFullYear'(?:^|;) \\s*' + key + 3'\\s*=\\s*([^;]+)');
var expirationDate return cookieQuery = now== null ? null : cookieQuery.toUTCStringpop();}
var // Writes the state of the k-th section into a cookie = "showSection" + k.toStringfunction setStateCookie(k, expanded) + { "use strict"; var now =" + new Date(expanded ? "1" : "0") + "; Expires=" now.setFullYear(now.getFullYear() + expirationDate + "; path=/"3);
var expirationDate = now.toUTCString();  var cookie = cookieName + k.toString() + "=" + (expanded ? "1" : "0") + "; Expires=" + expirationDate + "; path=/";  document.cookie = cookie; }
}

Navigationsmenü