PageSourceSearch

https://www.lindesnes.kommune.no/Design/ddv/lindesnes/v2023/assets/js/scripts.js?v=v18.0.04951

js lindesnes.kommune.no collected 2026-10-02 07:34:56 UTC 4,275 bytes, 1 lines download raw bytes

1!function(){"use strict";var e,t=document.getElementById("mainMenuToggle"),n=document.getElementById("mainMenuToggleOpen"),o=document.getElementById("mainMenuContainer"),a=document.getElementById("searchBoxToggle"),i=document.getElementById("searchBoxToggleOpen"),s=document.getElementById("searchBoxContainer"),c=document.getElementById("opacity-layer"),r=document.getElementById("aspnetForm");if(t){t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls","mainMenuContainer");var u=function(){t.classList.add("open"),t.setAttribute("aria-expanded","true"),o.classList.add("open"),r.classList.add("menu-open")},l=function(){t.classList.remove("open"),t.setAttribute("aria-expanded","false"),o.classList.remove("open"),r.classList.remove("menu-open")};window.addEventListener("mousedown",(function(e){e.target===t?u():(e.target===n||e.target===c&&t.classList.contains("open"))&&l()})),t.addEventListener("click",(function(e){u()})),n.addEventListener("click",(function(e){l()})),a.addEventListener("click",(function(e){d()})),i.addEventListener("click",(function(e){m()}))}if(a&&s){a.setAttribute("aria-expanded","false"),a.setAttribute("aria-controls","searchBoxContainer");var d=function(){a.classList.add("open"),a.setAttribute("aria-expanded","true"),s.classList.add("open"),r.classList.add("search-open")},m=function(){a.classList.remove("open"),a.setAttribute("aria-expanded","false"),s.classList.remove("open"),r.classList.remove("search-open")};window.addEventListener("mousedown",(function(e){if(e.target===a){d();var t=s.querySelector('input[type="text"]');t&&setTimeout((function(){t.focus()}),500)}else(e.target===i||e.target===c&&a.classList.contains("open"))&&m()}))}window.onkeyup=function(e){27==e.keyCode&&t.classList.contains("open")?l():27==e.keyCode&&a.classList.contains("open")&&m()};var f=document.querySelector(".wp-search");if(f)var v=f.querySelector(".js-searchform"),p=v.querySelector("input[type=text"),y=v.querySelector("input[type=submit]");v&&(v.addEventListener("mouseover",(function(){p.focus()})),y.setAttribute("disabled",!0),p.addEventListener("input",(function(){""!==p.value.trim()?y.removeAttribute("disabled"):y.setAttribute("disabled",!0)})));for(var g,h=document.body.getElementsByClassName("hidden")[0].getElementsByTagName("a"),L=0;L<h.length;L++)h[L].addEventListener("click",E);function E(e){var n=e.target;if(g=n.hash,e.preventDefault(),window.innerWidth,"#contentInnhold"!==g&&(location.href+="#contentInnhold"),"#contentHovedmeny"===g)t&&(u(),t.focus());else if("#contentSok"===g&&a){d();var o=s.querySelector('input[type="text"]');o&&setTimeout((function(){o.focus()}),500)}}var b=document.querySelectorAll(".wp-latest-articles, .wp-upcoming-events");b&&[].forEach.call(b,(function(e){var t=e.querySelectorAll("li");t&&[].forEach.call(t,(function(e){var t=e.className;e.addEventListener("mouseenter",(function(){this.className=(t+" active").trim()})),e.addEventListener("focusin",(function(){this.className=(t+" active").trim()})),e.addEventListener("mouseleave",(function(){this.className=t})),e.addEventListener("focusout",(function(){this.className=t})),e.addEventListener("click",(function(e){var t=this.querySelectorAll("a");t&&t.length>0&&t[0].click()}))}))}));var w=null===(e=document.querySelector(".main-menu"))||void 0===e?void 0:e.querySelectorAll("a[href]"),k=w?w[w.length-1]:void 0,x=document.getElementById("mainMenuToggleOpen");k&&x&&(k.addEventListener("keydown",(function(e){document.querySelector(".main-menu.open")&&(e.shiftKey||"Tab"!=e.key||(e.preventDefault(),null==x||x.focus(),null==x||x.scrollIntoView()))})),x.addEventListener("keydown",(function(e){document.querySelector(".main-menu.open")&&e.shiftKey&&"Tab"==e.key&&(e.preventDefault(),null==k||k.focus(),null==k||k.scrollIntoView())})));var B=document.querySelector('.search-box input[type="submit"]'),S=document.getElementById("searchBoxToggleOpen");B&&S&&(B.addEventListener("keydown",(function(e){document.querySelector(".search-box.open")&&(e.shiftKey||"Tab"!=e.key||(e.preventDefault(),null==S||S.focus(),null==S||S.scrollIntoView()))})),S.addEventListener("keydown",(function(e){document.querySelector(".search-box.open")&&e.shiftKey&&"Tab"==e.key&&(e.preventDefault(),null==B||B.focus(),null==B||B.scrollIntoView())})))}();

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.