PageSourceSearch

https://www.thayernissan.com/_astro/InventorySearch.astro_astro_type_script_index_0_lang.45Dn43RI.js

js thayernissan.com collected 2026-10-08 10:15:30 UTC 1,358 bytes, 1 lines download raw bytes

1function h(){const r=document.querySelector(".inv-infinite");if(!r)return;const s=document.getElementById(r.dataset.invGrid??""),c=r.querySelector("a.load-more"),d=r.querySelector(".inv-sentinel");if(!s||!c||!d)return;const n=r,w=s,l=c,f=d,b=Number(n.dataset.invLast??"1");let o=!1;const y=e=>{const t=new URL(e,window.location.origin);return t.searchParams.set("fragment","1"),t.toString()},p=e=>Number(new URL(e,window.location.origin).searchParams.get("page")??"1");async function u(){if(o)return;const e=n.dataset.invNext;if(e){o=!0,n.dataset.invLoading="1";try{const t=await fetch(y(e),{headers:{"X-Requested-With":"fetch"}});if(!t.ok)throw new Error(`HTTP ${t.status}`);const x=await t.text(),g=new DOMParser().parseFromString(x,"text/html").querySelector(".grid");if(g)for(const L of Array.from(g.children))w.appendChild(L);const v=p(e);if(v>=b){i.disconnect(),n.remove();return}const a=new URL(e,window.location.origin);a.searchParams.set("page",String(v+1));const m=a.pathname+a.search;n.dataset.invNext=m,l.setAttribute("href",m)}catch{i.unobserve(f)}finally{o=!1,n.dataset.invLoading="0"}}}const i=new IntersectionObserver(e=>{for(const t of e)t.isIntersecting&&u()},{rootMargin:"600px 0px"});i.observe(f),l.addEventListener("click",e=>{e.preventDefault(),u()})}document.readyState!=="loading"?h():document.addEventListener("DOMContentLoaded",h);

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.