PageSourceSearch

https://www.lovisa.co.uk/cdn/shop/t/811/assets/sticky-bar.js?v=694091830342912611789977862

js lovisa.co.uk collected 2026-09-26 13:25:34 UTC 2,712 bytes, 16 lines download raw bytes

1function setupStickyBar(){const stickyBar=document.querySelector(".free-shipping-bar-mobile-container"),target=document.querySelector(".pdp-payment-options"),footer=document.querySelector("#shopify-section-footer");if(!stickyBar||!target||!footer||window.innerWidth>=990)return;const placeholder=document.createElement("div");placeholder.style.height=`${stickyBar.offsetHeight}px`,placeholder.style.display="none",stickyBar.parentNode.insertBefore(placeholder,stickyBar);let isFooterVisible=!1;const toggleSticky=isVisible=>{const shouldShowSticky=!isVisible&&!isFooterVisible;stickyBar.classList.toggle("is-fixed",shouldShowSticky),placeholder.style.display=shouldShowSticky?"block":"none";let shippingBar=$(".free-shipping-bar-mobile-container");const cartIconsStyle=document.querySelector("#cart-icons-style");if(shippingBar.hasClass("is-fixed")){const offset=shippingBar.outerHeight()+8;cartIconsStyle.innerHTML=`
2        html .accessibility-icon,
3        html #CookiebotWidget,
4        html .gorgias-chat-button {
5          bottom: ${offset}px !important;
6        }
7        html body:has(#CookiebotWidget) .gorgias-chat-button,
8        html body:has(.accessibility-icon) .gorgias-chat-button,
9        html body:has(.accessibility-icon) #CookiebotWidget {
10          bottom: ${offset+50}px !important;
11        }
12        html body:has(.accessibility-icon):has(#CookiebotWidget) .gorgias-chat-button {
13          bottom: ${offset+100}px !important;
14        }
15      `}else cartIconsStyle.innerHTML=""};new IntersectionObserver(([entry])=>{toggleSticky(entry.isIntersecting)},{root:null,threshold:.01}).observe(target),new IntersectionObserver(([entry])=>{isFooterVisible=entry.isIntersecting,toggleSticky(target.getBoundingClientRect().top<window.innerHeight)},{root:null,threshold:.01}).observe(footer);const checkManual=()=>{const rect=target.getBoundingClientRect(),footerRect=footer.getBoundingClientRect();isFooterVisible=footerRect.top<window.innerHeight&&footerRect.bottom>0,toggleSticky(rect.bottom>0&&rect.top<window.innerHeight)};checkManual(),window.addEventListener("scroll",checkManual,{passive:!0}),window.addEventListener("resize",checkManual),window.addEventListener("orientationchange",checkManual)}document.addEventListener("DOMContentLoaded",()=>{const observer=new MutationObserver(()=>{const sticky=document.querySelector(".free-shipping-bar-mobile-container"),target=document.querySelector(".pdp-payment-options"),footer=document.querySelector("#shopify-section-footer");sticky&&target&&footer&&(observer.disconnect(),setupStickyBar())});observer.observe(document.body,{childList:!0,subtree:!0})});
16//# sourceMappingURL=/cdn/shop/t/811/assets/sticky-bar.js.map?v=694091830342912611789977862

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.