PageSourceSearch

https://degerfors.se/2.2b562a0f15e574ebc2e136/91.19aeb83315f2f8905…/1789620928345/BODY/0/sv-template-asset.js

js degerfors.se collected 2026-09-24 21:46:46 UTC 16,284 bytes, 33 lines download raw bytes

1(function(){if(window&&window.addEventListener){var e=Object.create(null),m,r,d=function(){clearTimeout(r);r=setTimeout(m,100)},p=function(){},t=function(){var g;window.addEventListener("resize",d,!1);window.addEventListener("orientationchange",d,!1);window.MutationObserver?(g=new MutationObserver(d),g.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),p=function(){try{g.disconnect(),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",d,
2!1)}catch(e){}}):(document.documentElement.addEventListener("DOMSubtreeModified",d,!1),p=function(){document.documentElement.removeEventListener("DOMSubtreeModified",d,!1);window.removeEventListener("resize",d,!1);window.removeEventListener("orientationchange",d,!1)})},u=function(g){function e(a){var c;void 0!==a.protocol?c=a:(c=document.createElement("a"),c.href=a);return c.protocol.replace(/:/g,"")+c.host}var d,n;window.XMLHttpRequest&&(d=new XMLHttpRequest,n=e(location),g=e(g),d=void 0===d.withCredentials&&
3""!==g&&g!==n?XDomainRequest||void 0:XMLHttpRequest);return d};m=function(){function d(){--l;0===l&&(p(),t())}function q(a){return function(){!0!==e[a.base]&&a.useEl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a.hash)}}function m(a){return function(){var c=document.body,b=document.createElement("x");a.onload=null;b.innerHTML=a.responseText;if(b=b.getElementsByTagName("svg")[0])b.setAttribute("aria-hidden","true"),b.style.position="absolute",b.style.width=0,b.style.height=0,b.style.overflow=
4"hidden",c.insertBefore(b,c.firstChild);d()}}function n(a){return function(){a.onerror=null;a.ontimeout=null;d()}}var a,c,f,h,l=0,b,k;p();k=document.getElementsByTagName("use");for(h=0;h<k.length;h+=1){try{c=k[h].getBoundingClientRect()}catch(v){c=!1}f=(a=k[h].getAttributeNS("http://www.w3.org/1999/xlink","href"))&&a.split?a.split("#"):["",""];a=f[0];f=f[1];b=c&&0===c.left&&0===c.right&&0===c.top&&0===c.bottom;c&&0===c.width&&0===c.height&&!b?a.length&&(b=e[a],!0!==b&&setTimeout(q({useEl:k[h],base:a,
5hash:f}),0),void 0===b&&(f=u(a),void 0!==f&&(b=new f,e[a]=b,b.onload=m(b),b.onerror=n(b),b.ontimeout=n(b),b.open("GET",a),b.send(),l+=1))):b?a.length&&e[a]&&q({useEl:k[h],base:a,hash:f})():void 0===e[a]?e[a]=!0:e[a].onload&&(e[a].abort(),delete e[a].onload,e[a]=!0)}k="";l+=1;d()};window.addEventListener("load",function q(){window.removeEventListener("load",q,!1);r=setTimeout(m,0)},!1)}})();
6var lp=function(b,d){var a=b.utils=b.utils||{};a.isOnlineMode=function(){return window.self===window.top};var c=function(a){var b=sv&&sv.PageContext?sv.PageContext.pageId:null;return b?b.substr(0,a.length)==a:!1};a.isTemplate=function(){return c("91.")};a.isPage=function(){return c("4.")};a.isArticle=function(){return c("5.")};a.addJsClass=function(){d("html").addClass("lp-js")};return b}(lp||{},jQuery);
7var lp=function(n,y){function x(){var c=[];return function f(g){if(g===document.documentElement)return!1;for(var b=0,d=c.length;b<d;b++)if(c[b][0]===g)return c[b][1];b=!1;d=window.getComputedStyle(g);"hidden"===d.visibility||"none"===d.display?b=!0:g.parentNode&&(b=f(g.parentNode));c.push([g,b]);return b}}function h(c){c&&c.focus&&(c.focus(),"input"===c.tagName.toLowerCase()&&c.select())}var v=function(c){var k=[],f=[],g=x();c=c.querySelectorAll("input, select, a[href], textarea, button, [tabindex]");
8for(var b,d,h=0,m=c.length;h<m;h++)b=c[h],d=b.tabIndex,0>d||"INPUT"===b.tagName&&"hidden"===b.type||b.disabled||g(b)||(0===d?k.push(b):f.push({tabIndex:d,node:b}));f=f.sort(function(b,c){return b.tabIndex-c.tabIndex}).map(function(b){return b.node});Array.prototype.push.apply(f,k);return f},m=null;(n.focusTrap=n.focusTrap||{}).create=function(c,k){function f(a){a={returnFocus:a&&void 0!=a.returnFocus?a.returnFocus:e.returnFocusOnDeactivate,onDeactivate:a&&void 0!==a.onDeactivate?a.onDeactivate:e.onDeactivate};
9b();if(a.onDeactivate)a.onDeactivate();a.returnFocus&&setTimeout(function(){h(w)},0);r=!1;return this}function g(){if(r){m&&m.pause();m=p;l=v(q);var a;if(e.initialFocus){if(a="string"===typeof e.initialFocus?document.querySelector(e.initialFocus):e.initialFocus,!a)throw Error("`initialFocus` refers to no known node");}else if(a=l[0],!a)throw Error("You can't have a focus-trap without at least one focusable element");h(a);document.addEventListener("focus",t,!0);document.addEventListener("click",n,
10!0);document.addEventListener("mousedown",d,!0);document.addEventListener("touchstart",d,!0);document.addEventListener("keydown",u,!0);return p}}function b(){if(r&&m===p)return document.removeEventListener("focus",t,!0),document.removeEventListener("click",n,!0),document.removeEventListener("mousedown",d,!0),document.removeEventListener("touchstart",d,!0),document.removeEventListener("keydown",u,!0),m=null,p}function d(a){e.clickOutsideDeactivates&&!q.contains(a.target)&&f({returnFocus:!1})}function n(a){e.clickOutsideDeactivates||
11q.contains(a.target)||(a.preventDefault(),a.stopImmediatePropagation())}function t(a){q.contains(a.target)||(a.preventDefault(),a.stopImmediatePropagation(),"function"===typeof a.target.blur&&a.target.blur())}function u(a){if("Tab"===a.key||9===a.keyCode){a.preventDefault();l=v(q);var b=l.indexOf(a.target),c=l[l.length-1],d=l[0];a.shiftKey?a.target===d||-1===l.indexOf(a.target)?h(c):h(l[b-1]):a.target===c?h(d):h(l[b+1
11])}!1===e.escapeDeactivates||"Escape"!==a.key&&"Esc"!==a.key&&27!==a.keyCode||f()}
12var l=[],w=null,r=!1,q="string"===typeof c?document.querySelector(c):c,e=k||{};e.returnFocusOnDeactivate=k&&void 0!=k.returnFocusOnDeactivate?k.returnFocusOnDeactivate:!0;e.escapeDeactivates=k&&void 0!=k.escapeDeactivates?k.escapeDeactivates:!0;var p={activate:function(a){a={onActivate:a&&void 0!==a.onActivate?a.onActivate:e.onActivate};r=!0;w=document.activeElement;if(a.onActivate)a.onActivate();g();return p},deactivate:f,pause:b,unpause:g};return p};return n}(lp||{},jQuery);
13(function(c,b,p){c.tapHandling=!1;c.tappy=!0;var f=function(d){return d.each(function(){function d(a){b(a.target).trigger("tap",[a,b(a.target).attr("href")])}function f(a){a=a.originalEvent||a;return(a=a.touches||a.targetTouches)?[a[0].pageX,a[0].pageY]:null}function g(a){clearTimeout(h);h=setTimeout(function(){e=c.tapHandling=!1},1E3);a.which&&1<a.which||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),e||c.tapHandling&&c.tapHandling!==a.type?e=!1:(c.tapHandling=a.type,d(a)))}var h,
14k,l,e;b(this).bind("touchstart.tappy MSPointerDown.tappy",function(a){if(a.touches&&1<a.touches.length||a.targetTouches&&1<a.targetTouches.length)return!1;a=f(a);l=a[0];k=a[1]}).bind("touchmove.tappy MSPointerMove.tappy",function(a){e||(a=f(a))&&(10<Math.abs(k-a[1])||10<Math.abs(l-a[0]))&&(e=!0)}).bind("touchend.tappy MSPointerUp.tappy",g).bind("click.tappy",g)})};if(b.event&&b.event.special)b.event.special.tap={add:function(d){f(b(this))},remove:function(d){b(this).unbind(".tappy")}};else{var m=
15b.fn.bind,n=b.fn.unbind;b.fn.bind=function(b){/(^| )tap( |$)/.test(b)&&f(this);return m.apply(this,arguments)};b.fn.unbind=function(b){/(^| )tap( |$)/.test(b)&&this.unbind(".tappy");return n.apply(this,arguments)}}})(this,jQuery);
16var lp=function(c,b){var a=c.expandingMenu=c.expandingMenu||{},d=!1,e,f;a.buttonIconContent='\x3csvg role\x3d"img" aria-label\x3d"" class\x3d"lp-icon lp-icon--open"\x3e\x3cuse xmlns:xlink\x3d"http://www.w3.org/1999/xlink" xlink:href\x3d"/rest-api/svg-sources/lp-icons.svg#lp-plus-circle"\x3e\x3c/use\x3e\x3c/svg\x3e';a.buttonIconContent+='\x3csvg role\x3d"img" aria-label\x3d"" class\x3d"lp-icon lp-icon--close"\x3e\x3cuse xmlns:xlink\x3d"http://www.w3.org/1999/xlink" xlink:href\x3d"/rest-api/svg-sources/lp-icons.svg#lp-minus-circle"\x3e\x3c/use\x3e\x3c/svg\x3e';
17a.buttonIconContent+='\x3cspan class\x3d"lp-user-hidden"\x3e\u00d6ppna/St\u00e4ng\x3c/span\x3e';a.focusTrap=null;f=function(a){a.preventDefault();var c=b(this);a=0===c.siblings("ul").length;var d=c.prev("a").attr("href");a?b.get(window.location.pathname+"?target\x3d"+d,function(a){a=b('a[href\x3d"'+d+'"]',a).next("ul");e(a);a.insertAfter(c);a.hide();c.parent("li").toggleClass("lp-open");a.slideDown("fast")}):(a=c.parent("li"),a.hasClass("lp-open")?(a.removeClass("lp-open"),a.find("\x3eul").show().slideUp("fast")):
18(a.addClass("lp-open"),a.find("\x3eul").hide().slideDown("fast")))};e=function(c){b("a",c).each(function(){b(this).parent().hasClass("lp-has-children")&&b('\x3cbutton class\x3d"lp-toggler"\x3e'+a.buttonIconContent+"\x3c/button\x3e").insertAfter(this).bind("tap",f)})};var g=function(c){a.$menu.data("voiceover-fix")?c():(a.$menu.data("voiceover-fix",!0).attr("role","dialog").attr("tabindex","-1"),a.$menu.appendTo(b("body")),b("header .sv-searchform-portlet").prependTo(a.$menu),a.$pageContainer=b("body \x3e div.sv-layout").eq(0).attr("aria-hidden",
19"false"),setTimeout(c,50))};a.isMobileNavigationOpen=!1;a.openMobileNavigation=function(){return a.isMobileNavigationOpen?!1:(g(function(){a.$menu.css("left",0);a.isMobileNavigationOpen=!0;a.$pageContainer&&a.$pageContainer.attr("aria-hidden","true");a.focusTrap&&a.focusTrap.activate()}),!0)};a.closeMobileNavigation=function(){return a.isMobileNavigationOpen?(a.$menu.css("left",-315),a.isMobileNavigationOpen=!1,a.$pageContainer&&a.$pageContainer.attr("aria-hidden","false"),a.focusTrap&&a.focusTrap.deactivate(),
20!0):!1};a.toggleMobileNavigation=function(){a.isMobileNavigationOpen?a.closeMobileNavigation():a.openMobileNavigation()};a.initialize=function(){e(b(".lp-menu ul"));a.$menu=b(".lp-menu");a.isMobileNavigationOpen=!1;"focusTrap"in lp&&(a.focusTrap=lp.focusTrap.create(a.$menu.get(0),{onDeactivate:function(){a.closeMobileNavigation()&&(d=!0,setTimeout(function(){d=!1},300))},initialFocus:a.$menu.find("a").get(0),clickOutsideDeactivates:!0}));a.$closeButton=b('\x3cbutton class\x3d"lp-close-button"\x3e\x3csvg role\x3d"img" aria-hidden\x3d"true" class\x3d"lp-icon"\x3e\x3cuse xmlns:xlink\x3d"http://www.w3.org/1999/xlink" xlink:href\x3d"/webdav/files/system/svg/lp-icons.svg#lp-cross"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"lp-user-hidden"\x3eSt\u00e4ng meny\x3c/span\x3e\x3c/button\x3e');
21a.$closeButton.appendTo(a.$menu);b("a.lp-skip-to-menu-mobile, a.lp-skip-to-menu-smartphone").bind("tap",function(b){b.preventDefault();d||a.toggleMobileNavigation()});b("body").bind("click",function(c){b(c.target).is(b(".lp-skip-to-menu-mobile"))||0<b(c.target).parents(b(".lp-skip-to-menu-mobile")).length||0<b(c.target).parents(".lp-menu").length||a.closeMobileNavigation()});a.$closeButton.bind("tap",function(){a.closeMobileNavigation()})};return c}(lp||{},jQuery);(function(c){c(function(){lp.expandingMenu.initialize()})})(jQuery);
22(function(a,b){b.isOnlineMode()&&(a("html").delegate(".lp-clickable-area","click",function(b){b.target.tagName.match(/^a$/i)||a("a:first",this)[0].click()}),a("head").append('\x3cstyle type\x3d"text/css"\x3e.lp-clickable-area { cursor: pointer; }\x3c/style\x3e'));a.fn.clickableArea=function(){this.addClass("lp-clickable-area")}})(jQuery,lp.utils);jQuery(function(a){a(".sv-archive-portlet li, .lp-clickable-box, .lp-entry-links li").clickableArea()});
23var lp=function(f,g){var c=f.toggle=f.toggle||{},l=function(b){var a=[];return function(){var d=Array.prototype.slice.call(arguments);if(1===d.length&&g.isFunction(d[0]))a.push(arguments[0]);else for(var c=0;c<a.length;c++)a[c].apply(b,d);return b}},n=function(b,a){var d=!1,f=b.selector,h="slide",m={slide:["slideDown","slideUp"],fade:["fadeIn","fadeOut"]};this.change=l(this);this.opened=l(this);this.closed=l(this);this.$elem=b;this.$target=a;this.isOpen=function(){return d};this.toggle=function(){d?
24this.close():this.open();return this};this.open=function(){if(d)return this;var c=this,e=m[h][0];
24if(g.isFunction(e))e(a,function(){c.opened()});else a[e]("fast",function(){c.opened()});d=!0;this.change(d);b.attr("aria-expanded","true");a.attr("aria-hidden","false");return this};this.close=function(){if(!d)return this;var c=this,e=m[h][1];if(g.isFunction(e))e(a,function(){c.closed()});else a[e]("fast",function(){c.closed()});d=!1;this.change(d);b.attr("aria-expanded","false");a.attr("aria-hidden",
25"true");return this};this.name=function(a){if("undefined"===typeof a)return f;f=a;return this};this.effect=function(a){if("undefined"===typeof a)return h;a in m&&(h=a);return this};var n=this;b.click(function(){n.toggle();return!1});a.hide();var k=a.attr("id");k||(k="lp-toggle-target-"+c.togglers.length,a.attr("id",k));b.attr("aria-expanded","false");b.attr("aria-controls",k);a.attr("aria-hidden","true")};c.togglers=[];c.setup=function(b,a){"string"===typeof b&&(b=g(b));"string"===typeof a&&(a=g(a));
26if(b.data("lp-toggler"))return b.data("lp-toggler");var d=new n(b,a);b.data("lp-toggler",d);c.togglers.push(d);return d};c.get=function(b){for(var a=0;a<c.togglers.length;a++)if(c.togglers[a].name()==b)return c.togglers[a];return null};c.group=function(){for(var b=g.map(Array.prototype.slice.call(arguments),function(a){return"string"===typeof a?c.get(a):a}),a=0;a<b.length;a++)b[a].change(function(a){if(a)for(a=0;a<b.length;a++)b[a].name()!=this.name()&&b[a].close()})};return f}(lp||{},jQuery);
27var lp=function(a,f,g){var d=a.svgIcons=a.svgIcons||{};d.setAttributes=function(e,b){for(var c,d,a=b.length-1;0<=a;a--)if(c=b[a],3===c.length||2===c.length)d=3===c.length?e.setAttributeNS:e.setAttribute,d.apply(e,c)};d.createIcon=function(e,b){var c=f.createElementNS("http://www.w3.org/2000/svg","use"),a=f.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttributes(c,[["http://www.w3.org/1999/xlink","xlink:href",e],["http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"]]);
28d.setAttributes(a,[["http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"],["role","img"],["aria-hidden","true"],["class",b||"lp-icon"]]);a.appendChild(c);return a};d.$append=function(a,b){(b instanceof g?b.get(0):b).appendChild(a)};d.$prepend=function(a,b){var c=b instanceof g?b.get(0):b;c.insertBefore(a,c.firstChild)};return a}(lp||{},this.document,$svjq||jQuery);
29var lp=function(b,k){var c=b.pageTools=b.pageTools||{},g=!1,e=null,h=[],f=function(a){return"string"===typeof a?k(a):a};c.add=function(a,d,b){if(!g)return c;a=f(a);d=f(d);b||(b=(a.attr("class")||a.text()||a.selector).replace(/ /,""));d.appendTo(e);h.push(lp.toggle.setup(a,d).name(b));return c};c.initialize=function(a){e=f(a);g=!!e.length;return c};c.group=function(){lp.toggle.group.apply(lp.toggle,h);return c};return b}(lp||{},jQuery);
30(function(f,a){f(function(){function k(){var c=this.$elem;c.trigger("faq:toggle",[this]);this.isOpen()?c.addClass("lp-decoration-faq--is-open").removeClass("lp-decoration-faq--is-closed").removeClass("lp-decoration-faq--is-opening"):c.addClass("lp-decoration-faq--is-closed").removeClass("lp-decoration-faq--is-open").removeClass("lp-decoration-faq--is-closing")}function l(c){var a=this.$elem;a.trigger("faq:change",[this]);c?a.addClass("lp-decoration-faq--is-opening"):a.addClass("lp-decoration-faq--is-closing")}
31if(window.self===window.top){f(".lp-decoration-faq").each(function(c,b){for(var g=f(b).children(),d=0;d<g.length;d+=2){var e=g.eq(d).wrap("\x3cbutton\x3e\x3c/button\x3e").parent(),h=g.eq(d+1);e.addClass("lp-decoration-faq__toggler");h.addClass("lp-decoration-faq__content");var m=a.svgIcons.createIcon("/rest-api/svg-sources/lp-icons.svg#lp-plus-circle","lp-icon lp-toggler-icon lp-toggler-icon--open"),n=a.svgIcons.createIcon("/rest-api/svg-sources/lp-icons.svg#lp-minus-circle","lp-icon lp-toggler-icon lp-toggler-icon--close");
32a.svgIcons.$prepend(m,e);a.svgIcons.$prepend(n,e);e.add(h).wrapAll('\x3cdiv class\x3d"lp-decoration-faq__wrap" /\x3e');a.toggle.setup(e,h).opened(k).closed(k).change(l)}});var b=location.href.split("#")[1]||"";b&&(b=f("#"+b).closest("button"),0<b.parents(".lp-decoration-faq").length&&b.click())}})})($svjq||jQuery,window.lp||{});
33jQuery(function(a){"svtabs"in a.fn&&a(".lp-css-tabs").svtabs();lp.utils.isTemplate()||lp.pageTools.initialize(a(".lp-pagetools").parent()).add(".lp-page-share-link",".lp-pagetools-share","share").group();if(!lp.utils.isTemplate()){var b=lp.toggle.setup('.lp-site-tools a[href\x3d"#translate"]',a(".lp-header-translate").closest(".sv-portlet"));a=lp.toggle.setup('.lp-site-tools a[href\x3d"#listen"]',a(".lp-header-listen").closest(".sv-portlet"));lp.toggle.group("header-shortcuts",b,a)}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.