PageSourceSearch

https://www.herocosmetics.us/cdn/shop/t/458/assets/attentiveButtonTracker.js?v=3370706290105190701790705561

js herocosmetics.us collected 2026-10-03 21:51:42 UTC 4,514 bytes, 1 lines download raw bytes

1window.addEventListener("load",(function(){if(window.Shopify&&window.Shopify.designMode)return;const e=function(){let e=document.querySelector("#attentive_overlay"),t=!1;const s=function(e){const t=document.querySelector("footer"),s=document.querySelector(".js-main-add-to-cart"),o=document.querySelector(".sticky-add.js-pdp-sticky-nav"),n=document.querySelector("sticky-partnership");let i=!1,c=null;const a=document.querySelector("[lpStickyBar]");a&&a.classList.contains("initHidden")&&(c=document.querySelectorAll(".page-container .shopify-section").item(parseInt(a.dataset.section)-1),i=!0);const r=document.querySelector(".bb-grid__progress"),d=document.querySelector("section#freebies");r&&d&&(c=d,i=!0);const l=document.querySelector(".js-article-top"),f=document.querySelector(".js-article-sticky-footer"),u=document.querySelector(".header__inner").offsetHeight,h=new IntersectionObserver((n=>{const i=window.scrollY+window.innerHeight;n.forEach((({target:n,isIntersecting:a})=>{const r=n.getBoundingClientRect().top;if(n===s&&(!a&&n.getBoundingClientRect().top<0&&window.innerWidth<992?e.classList.contains("offset")||(e.style.setProperty("--offsetHeight",`-${o.offsetHeight}px`),e.classList.add("offset")):e.classList.contains("offset")&&e.classList.remove("offset")),n===l){let t;l&&f&&(t=f.offsetHeight),!a&&window.innerWidth<768?e.classList.contains("offset")||(e.style.setProperty("--offsetHeight",`-${t}px`),e.classList.add("offset")):e.classList.contains("offset")&&e.classList.remove("offset")}n===c&&(a?e.classList.contains("hidden")&&e.classList.remove("hidden"):e.classList.contains("hidden")||r<i&&r-u>0&&e.classList.add("hidden")),n===t&&(a?e.classList.contains("hidden")||e.classList.add("hidden"):e.classList.contains("hidden")&&(!c||c&&c.getBoundingClientRect().top<i)&&e.classList.remove("hidden"))}))}),{rootMargin:`-${u}px 0px 0px 0px`});s&&o&&h.observe(s),l&&f&&h.observe(l),c&&h.observe(c),h.observe(t);const y=function(){let t;if(s&&(window.innerWidth>=992?e.classList.contains("offset")&&e.classList.remove("offset"):s.getBoundingClientRect().top<0?e.classList.contains("offset")||(e.style.setProperty("--offsetHeight",`-${o.offsetHeight}px`),e.classList.add("offset")):e.classList.contains("offset")&&e.classList.remove("offset")),a){let s=e.dataset.height;t=a.offsetHeight,a.classList.contains("visible")?e.classList.contains("offset")&&s&&s===t||(e.dataset.height=t,e.style.setProperty("--offsetHeight",`-${t+8}px`),e.classList.add("offset")):e.classList.contains("offset")&&(delete e.dataset.height,e.classList.remove("offset"))}if(d&&(window.innerWidth>=880?e.classList.contains("offset")&&e.classList.remove("offset"):(e.style.setProperty("--offsetHeight",`-${r.offsetHeight-24}px`),e.classList.add("offset"))),l||n){let s;if(l&&f?(s=l,t=f.offsetHeight):n&&(s=n,t=n.offsetHeight),window.innerWidth>=768||s.classList.contains("closed"))e.classList.contains("offset")&&e.classList.remove("offset");else{const o=window.innerHeight,n=s.getBoundingClientRect();let i=n.top>=0&&n.top+n.height<=o,c=n.top<o&&n.top+n.height>o;i||c?e.classList.contains("offset")||(e.style.setProperty("--offsetHeight",`-${t}px`),e.classList.add("offset")):e.classList.contains("offset")&&e.classList.remove("offset")}}};document.addEventListener("attentive:resize",y);const L=new ResizeObserver(y);(s||l&&f||n||a||r)&&L.observe(t)},o=function(){const o=e.querySelector("iframe");t||"100%"===o.style.width||(e.style.zIndex=100,o.classList.add("hasButton"),s(o),t=!0),new MutationObserver((function(n){n.forEach((function({target:n}){t||"100%"===n.style.width||(e.style.zIndex=100,o.classList.add("hasButton"),s(o),t=!0),t&&"100%"===n.style.width&&(e.style.zIndex=2147483647,o.classList.remove("hasButton"),t=!1)}))})).observe(o,{attributes:!0,attributeFilter:["style"]})},n=function(){new MutationObserver((function(s){s.forEach((function({target:s}){t&&"100"!=s.style.zIndex&&(e.style.zIndex=100),t||"100"!=s.style.zIndex||(e.style.zIndex=2147483647)}))})).observe(e,{attributes:!0,attributeFilter:["style"]})};if(e)o(),n();else{const t=new MutationObserver((function(s){s.forEach((function(s){s.addedNodes.length&&s.addedNodes.forEac
1h((function(s){"attentive_overlay"===s.id&&(t.disconnect(),e=document.querySelector("#attentive_overlay"),o(),n())}))}))}));t.observe(document.body,{childList:!0})}};try{document.querySelector("landing-preloader")?document.querySelector(".page-container").classList.contains("loaded")?e():document.addEventListener("hero:preloaded",e):e()}catch(e){console.log(e)}}));

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.