PageSourceSearch

https://viewhotels.com.au/wp-content/themes/allora-cms/assets/js/b…er_hero-with-introduction.js?ver=1789726407

js viewhotels.com.au collected 2026-10-04 06:49:34 UTC 1,369 bytes, 1 lines download raw bytes

1(()=>{class ScrollToTheNextSection{constructor(e){const o={sectionSelector:"section",buttonSelector:".js-scroll-to-the-next-section",offsetTopElementSelector:"header"};this.options=Object.assign(o,e);this.init()}getScrollPosition(e){const o=e.offsetTop;let t=o+e.offsetHeight;const{offsetTopElementSelector:c}=this.options;if(c){var r;const e=null===(r=document.querySelector(c))||void 0===r?void 0:r.offsetHeight;e&&(t-=e)}return t}handleScroll(e){window.scrollTo({top:e,behavior:"smooth"})}attachButtonEvents(e,o){o.addEventListener("click",()=>{const o=this.getScrollPosition(e);this.handleScroll(o)})}init(){const{sectionSelector:e,buttonSelector:o}=this.options;if(!e||!o)return false;const t=document.querySelector(o);const c=null!==t&&void 0!==t&&t.closest(e)?t.closest(e):document.querySelector(e);if(!c||!t)return false;this.attachButtonEvents(c,t)}}const e=new ScrollToTheNextSection({sectionSelector:".voyager-hero-with-introduction",buttonSelector:".voyager-hero-with-introduction__arrow-scroll",offsetTopElementSelector:".voyager-header"});const o=new ScrollToTheNextSection({sectionSelector:".voyager-hero",buttonSelector:".js-hero-scrollto",offsetTopElementSelector:".voyager-header"});const t=new ScrollToTheNextSection({sectionSelector:".voyager-hero-gallery",buttonSelector:".js-hero-gallery-scrollto",offsetTopElementSelector:".voyager-header"})})();

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.