PageSourceSearch

https://www.wemtoyota.com/wp-content/themes/magnetis-dealer/dist/js/scroll-utils.jvZd5l2X.js

js wemtoyota.com collected 2026-09-24 13:28:28 UTC 1,495 bytes, 1 lines download raw bytes

1function a(){let o=0;const t=document.querySelector("#main_header"),e=document.querySelector("#main_menu"),s=document.querySelector(".topbar"),n=document.querySelector("#notification_bar.fixed");return t&&(t.classList.contains("disposition_2")?t.classList.contains("only_menu_sticky")?o=t.offsetHeight-((s==null?void 0:s.offsetHeight)??0):o=t.offsetHeight:t.classList.contains("disposition_4")||(t.classList.contains("only_menu_sticky")?o=(e==null?void 0:e.offsetHeight)??0:o=t.offsetHeight+((e==null?void 0:e.offsetHeight)??0)),n&&(o+=n.offsetHeight)),o}function c(o,t=!1){if(!o||o==="#")return;const e=document.querySelector(o);if(!e)return;const s=a(),n=document.body.classList.contains("page-template-showroom");if(t||n){const i=document.querySelector(":target");i&&(i.style.paddingTop="0",i.style.marginTop="0");const r=e.getBoundingClientRect().top+window.scrollY-s;window.scrollTo({top:r,behavior:"smooth"})}else e.style.paddingTop=`${s}px`,e.style.marginTop=`-${s}px`}document.addEventListener("click",o=>{const t=o.target.closest('a[href^="#"]');if(!t)return;const e=t.getAttribute("href");if(!e||e==="#"){o.preventDefault();return}location.pathname.replace(/^\//,"")===t.pathname.replace(/^\//,"")&&location.hostname===t.hostname&&e.startsWith("#")&&c(e,t.classList.contains("js-scroll-to-anchor"))});window.addEventListener("load",()=>{window.location.hash&&setTimeout(()=>c(window.location.hash),100)});window.scrollToAnchor=c;export{a as calculateHeaderOffset,c as scrollToAnchor};

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.