PageSourceSearch

https://www.eimskip.is/build/mobile-navigation-Ba_I14Dm.js

js eimskip.is collected 2026-10-02 09:55:36 UTC 1,733 bytes, 1 lines download raw bytes

1import{n as e}from"./rolldown-runtime-DEa_Ew-f.js";var t,o;function s(){return(s=e(()=>{t=["body--mobile-nav-open","body--ar-mobile-nav-open"],o={el:{body:document.querySelector(".body"),footer:document.querySelector(".mobile-navigation__footer")},init(){document.addEventListener("click",e=>{const t=e.target;if(!t)return;const o=t.closest(".hamburger[data-toggle-class]");if(o)return void this.toggle(o.dataset.toggleClass);const s=t.closest(".mobile-nav__button[data-nav]");s?this.slideIn(s.dataset.nav):t.closest(".mobile-navigation__back")&&this.resetLevels()})},isOpen(){return t.some(e=>this.el.body?.classList.contains(e))},toggle(e){e&&this.el.body&&(this.el.body.classList.toggle(e),this.isOpen()||this.resetLevels())},close(){this.isOpen()&&(t.forEach(e=>this.el.body?.classList.remove(e)),this.resetLevels())},slideIn(e){if(!e)return;const t=document.querySelector(`.mobile-nav__level[data-nav="${e}"]`),o=document.querySelector('.mobile-nav__level[data-level="1"]');t&&o&&(t.style.transform=`translateX(-${100*Number.parseInt(e,10)}%)`,t.style.opacity="1",o.style.transform="translateX(-100%)",o.style.opacity="0",this.el.footer&&(this.el.footer.style.transform="translateX(-100%)",this.el.footer.style.opacity="0"),this.addPaddingToNavList())},resetLevels(){document.querySelectorAll(".mobile-nav__level").forEach(e=>{e.style.transform="translateX(0)",e.style.opacity="1"===e.dataset.level?"1":"0"}),this.el.footer&&(this.el.footer.style.transform="translateX(0)",this.el.footer.style.opacity="1")},addPaddingToNavList(){const e=document.querySelector(".mobile-navigation__quick-access"),t=document.querySelector(".mobile-nav__list");e&&t&&(t.style.paddingBottom=e.offsetHeight+30+"px")}}}))()}s();export{o as default};

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.