PageSourceSearch

https://www.hl-cruises.com/cache-buster-1789982739/dist/nav-scroller/nav-scroller.js

js hl-cruises.com collected 2026-10-02 07:41:04 UTC 1,658 bytes, 2 lines download raw bytes

1!function(){"use strict";class t{constructor(t){this.$navScroller=t,this.$navScrollerList=this.$navScroller.querySelector('[data-nav-scroller="list"]'),this.$buttonPrev=this.$navScroller.querySelector('[data-nav-scroller="prev"]'),this.$buttonNext=this.$navScroller.querySelector('[data-nav-scroller="next"]'),this.$scrollItems=Array.from(this.$navScrollerList.children),this.startScroll=!0,this.endScroll=!1}initialize(){this.scrollCheck(),this.setEvents()}scrollCheck(){const t=this.$navScrollerList.scrollLeft,s=this.$navScrollerList.scrollWidth,l=this.$navScrollerList.offsetWidth,e=s-l-10,r=s-l-100,i=t-100;t>10?this.$buttonPrev.classList.add("show-left-shadow"):this.$buttonPrev.classList.remove("show-left-shadow"),t>e?this.$buttonNext.classList.add("hide-right-shadow"):this.$buttonNext.classList.remove("hide-right-shadow"),this.startScroll=i<100,this.endScroll=t+100>r}setEvents(){[1280,1024,768,480,375,320].forEach(t=>{window.mediaMatch[t].addEventListener("change",()=>{this.scrollCheck()})}),this.$navScrollerList.addEventListener("scroll",()=>{this.scrollCheck()},{passive:!0}),this.$scrollItems.length&&(this.$buttonPrev.onclick=()=>{!1===this.startScroll?this.$navScrollerList.scrollLeft-=100:this.$navScrollerList.scrollLeft=0},this.$buttonNext.onclick=()=>{!1===this.endScroll?this.$navScrollerList.scrollLeft+=100:this.$navScrollerList.scrollLeft=this.$navScrollerList.scrollWidth})}}window.addEventListener("content.loaded",s=>{const l=s.detail.$context;if(l){const s=l.querySelectorAll('[data-nav-scroller="root"]');s.length>0&&s.forEach(s=>{new t(s).initialize()})}})}();
2//# sourceMappingURL=nav-scroller.js.map?v=d677873ce3bce38a3341

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.