PageSourceSearch

https://www.allthatgrows.in/cdn/shop/t/183/assets/in-view.js?v=158303221847540477331733903734

js allthatgrows.in collected 2026-09-25 03:55:13 UTC 1,113 bytes, 2 lines download raw bytes

1const thresholds={any:0,all:1};export default function inView(elementOrSelector,onStart,{root,margin:rootMargin,amount="any"}={}){if(typeof IntersectionObserver>"u")return()=>{};let elements;typeof elementOrSelector=="string"?elements=document.querySelectorAll(elementOrSelector):elementOrSelector instanceof Element?elements=[elementOrSelector]:elements=Array.from(elementOrSelector||[]);const activeIntersections=new WeakMap,onIntersectionChange=entries=>{entries.forEach(entry=>{const onEnd=activeIntersections.get(entry.target);if(entry.isIntersecting!==!!onEnd)if(entry.isIntersecting){const newOnEnd=onStart(entry);typeof newOnEnd=="function"?activeIntersections.set(entry.target,newOnEnd):observer.unobserve(entry.target)}else onEnd&&(onEnd(entry),activeIntersections.delete(entry.target))})},observer=new IntersectionObserver(onIntersectionChange,{root,rootMargin,threshold:typeof amount=="number"?amount:thresholds[amount]});return elements.forEach(element=>observer.observe(element)),()=>observer.disconnect()}
2//# sourceMappingURL=/cdn/shop/t/183/assets/in-view.js.map?v=158303221847540477331733903734

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.