PageSourceSearch

https://biokhaan.com/cdn/shop/t/18/assets/predictive-search.js?v=182735180844909691161781090903

js biokhaan.com collected 2026-10-06 13:17:34 UTC 1,338 bytes, 2 lines download raw bytes

1class PredictiveSearch extends HTMLElement{constructor(){super(),this.input=this.querySelector('input[name="q"]'),this.predictiveSearchResults=this.querySelector('[data-ref="predictive-search"]'),this.input.addEventListener("input",this.debounce(event=>{this.onChange(event)},300).bind(this))}onChange(){const searchTerm=this.input.value.trim();if(!searchTerm.length){this.hide();return}this.getSearchResults(searchTerm)}getSearchResults(searchTerm){fetch(Theme.routes.predictive_search_url+`?q=${searchTerm}&section_id=predictive-search&resources[type]=product,collection,page,article`).then(response=>{if(!response.ok){var error=new Error(response.status);throw this.hide(),error}return response.text()}).then(text=>{const resultsMarkup=new DOMParser().parseFromString(text,"text/html").querySelector("#shopify-section-predictive-search").innerHTML;this.predictiveSearchResults.innerHTML=resultsMarkup,this.show()}).catch(error=>{throw this.hide(),error})}show(){this.predictiveSearchResults.style.display="block"}hide(){this.predictiveSearchResults.style.display="none"}debounce(fn,wait){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}}customElements.define("predictive-search",PredictiveSearch);
2//# sourceMappingURL=/cdn/shop/t/18/assets/predictive-search.js.map?v=182735180844909691161781090903

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.