PageSourceSearch

https://www.wemtoyota.com/wp-content/themes/magnetis-dealer/dist/js/sticky-menu.DZudghcz.js

js wemtoyota.com collected 2026-10-01 23:52:54 UTC 1,644 bytes, 1 lines download raw bytes

1const s=document.querySelector("#main_header"),t=document.querySelector("#main_menu");var p;if(s&&t){const a=s.querySelector(".topbar"),r=!!(window.phpOptions&&window.phpOptions.isFrontPage);let i=!1,d=0,c=!1,n=null;!r&&t.classList.contains("only_menu_sticky")&&(n=document.querySelector("#menu-stick-sentinel"),n||(n=document.createElement("div"),n.id="menu-stick-sentinel",n.style.height="0",(p=t.parentNode)==null||p.insertBefore(n,t)));const L=()=>{const o=s.classList.contains("only_menu_sticky"),e=s.classList.contains("disposition_2"),l=s.classList.contains("disposition_3"),_=s.classList.contains("disposition_4");return(e||l||_)&&o},u=()=>{const o=window.scrollY;if(!r&&t.classList.contains("only_menu_sticky")&&n){const e=n.getBoundingClientRect().top;!i&&e<=0?(s.classList.add("scrolled"),t.classList.add("scrolled"),i=!0):i&&e>0&&(s.classList.remove("scrolled"),t.classList.remove("scrolled"),i=!1)}if(L()&&a){const e=a.offsetHeight;!i&&o>=e?(s.classList.add("scroll_stuck"),t.classList.add("scroll_stuck"),i=!0):i&&o<e&&(s.classList.remove("scroll_stuck"),t.classList.remove("scroll_stuck"),i=!1)}if(s.classList.contains("disposition_4")){const e=document.querySelector("#main_menu_5"),l=s.querySelector(".menu-toggle .burger");o>d?(s.classList.remove("scroll_up"),s.classList.add("scroll_down"),s.classList.contains("scroll_stuck")&&e&&(e.style.display="none",l==null||l.classList.remove("active"))):(s.classList.add("scroll_up"),s.classList.remove("scroll_down")),d=o}},m=()=>{c||(requestAnimationFrame(()=>{u(),c=!1}),c=!0)};window.addEventListener("scroll",m,{passive:!0}),window.addEventListener("resize",m,{passive:!0}),u()}

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.