PageSourceSearch

https://en.jandmdavidson.com/cdn/shop/t/168/assets/header.js?v=165365470732754728301777374528

js jandmdavidson.com collected 2026-09-25 14:55:43 UTC 3,633 bytes, 2 lines download raw bytes

1(function(){const header=()=>{const header2=document.querySelector(".shopify-section-header");document.querySelector(".header-always")&&header2.classList.add("always-show");const menu=document.querySelector(".list-menu--inline"),menuLinks=document.querySelectorAll(".list-menu-item"),search=document.querySelector(".header__search");header2.addEventListener("keydown",e=>{e.code==="Escape"&&search.isOpen&&search.close()});let vh=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${vh}px`);const annBar=document.querySelector(".section-announcement"),annBarObserver=new IntersectionObserver(entries=>{const[entry]=entries;entry.isIntersecting?document.documentElement.style.setProperty("--ann-height",`${entry.intersectionRect.height}px`):document.documentElement.style.setProperty("--ann-height","0px")});annBar&&annBarObserver.observe(annBar);const addBackground=()=>{if(document.querySelector(".overflow-hidden-drawer")||document.querySelector(".always-show"))return;new ResizeObserver(entries=>{const[entry]=entries;entry.contentRect.width>=1100&&(header2.classList.contains("color-background-2")&&!header2.classList.contains("shopify-section-header-sticky")&&header2.classList.remove("color-background-2"),header2.classList.contains("section--have-overlay")&&!header2.classList.contains("shopify-section-header-sticky")&&header2.classList.add("have-background"))}).observe(header2)},removeBackground=()=>{if(document.querySelector(".overflow-hidden")||document.querySelector(".overflow-hidden-drawer")||document.querySelector(".always-show"))return;new ResizeObserver(entries=>{const[entry]=entries;entry.contentRect.width>=1100&&(header2.classList.contains("color-background-1")&&!header2.classList.contains("shopify-section-header-sticky")&&header2.classList.add("color-background-2"),header2.classList.contains("section--have-overlay")&&!header2.classList.contains("shopify-section-header-sticky")&&header2.classList.remove("have-background"))}).observe(header2)};header2.addEventListener("mouseenter",addBackground),header2.addEventListener("focus",addBackground),header2.addEventListener("focusin",addBackground),header2.addEventListener("mouseleave",removeBackground),header2.addEventListener("focusout",removeBackground),document.addEventListener("DOMContentLoaded",()=>{const firstSection=document.querySelector("main .shopify-section:first-child:not(.not-margin) .section--has-overlay:not(.article-template__header)");let isSectionVisible=!1;const observer=new IntersectionObserver(([entry])=>{entry.isIntersecting&&!isSectionVisible?(isSectionVisible=!0,header2.classList.add("entering-section","color-background-2")):!entry.isIntersecting&&isSectionVisible&&(isSectionVisible=!1,header2.classList.remove("entering-section"))},{threshold:.15});firstSection&&observer.observe(firstSection),window.addEventListener("scroll",()=>{isSectionVisible&&header2.classList.add("entering-section","color-background-2")})});const main=document.querySelector("main"),breadcrumbs=document.querySelector(".breadcrumbs-wrapper");main.querySelectorAll(".shopify-section")[0]?.classList.contains("section--has-overlay")&&!main.querySelectorAll(".shopify-section")[0]?.classList.contains("not-margin")&&(header2.classList.add("color-background-1","color-background-2"),breadcrumbs&&breadcrumbs.classList.add("color-background-2"))};header(),document.addEventListener("shopify:section:load",header),document.addEventListener("shopify:section:unload",header),document.addEventListener("shopify:section:reorder",header)})();
2//# sourceMappingURL=/cdn/shop/t/168/assets/header.js.map?v=165365470732754728301777374528

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.