PageSourceSearch

https://www.naturalorganicskincare.com/cdn/shop/t/102/assets/cart.js?v=31849550610030331101765981172

js naturalorganicskincare.com collected 2026-10-04 18:43:37 UTC 4,682 bytes, 10 lines download raw bytes

1window.refreshCartContents=async()=>{const offcanvasCart=document.querySelector("#offcanvas-cart"),cartBadges=document.querySelectorAll(".cart-badge"),cartSummary=document.querySelector("#template-cart-summary");offcanvasCart?.classList.add("loading");const data=await(await fetch(window.location.href)).text(),newDocument=new DOMParser().parseFromString(data,"text/html");offcanvasCart?.querySelector(".offcanvas-body").replaceWith(newDocument.querySelector("#offcanvas-cart .offcanvas-body")),offcanvasCart?.querySelector(".offcanvas-footer").replaceWith(newDocument.querySelector("#offcanvas-cart .offcanvas-footer")),cartSummary?.querySelector(".card-body").replaceWith(newDocument.querySelector("#template-cart-summary .card-body")),cartBadges.forEach(badge=>{badge.style.display="block",badge.textContent=newDocument.querySelector(".cart-badge").textContent}),document.querySelector("#main-cart-list")?.replaceWith(newDocument.querySelector("#main-cart-list")),document.querySelector("#template-cart #cart-recommend-list")?.replaceWith(newDocument.querySelector("#template-cart #cart-recommend-list")),offcanvasCart?.classList.remove("loading");const subTotalElement=document.getElementById("offcanvas-cart-subtotal"),successDivs=document.querySelectorAll(".to-free-shipping__success"),progressDivs=document.querySelectorAll(".to-free-shipping__progress"),progressBars=document.querySelectorAll(".to-free-shipping__bar-progress"),freeShippingAways=document.querySelectorAll(".to-free-shipping__away"),freeShippingWidgets=document.querySelectorAll(".to-free-shipping"),offCanvasProgressBar=document.querySelector(".offcanvas .to-free-shipping__bar-progress");if(subTotalElement){for(const freeShippingWidget of freeShippingWidgets)freeShippingWidget.classList.add("active");const cartTotal=parseFloat(subTotalElement.getAttribute("cart-total").substring(1)),freeShipping=parseFloat(subTotalElement.getAttribute("free-shipping"));if(cartTotal>=freeShipping){for(const progressBar of progressBars)progressBar.style.width=offCanvasProgressBar.style.width;setTimeout(()=>{for(const progressBar of progressBars)progressBar.style.width="100%"},300),setTimeout(()=>{for(const successDiv of successDivs)successDiv.classList.add("active");for(const progressDiv of progressDivs)progressDiv.classList.remove("active")},800)}else{for(const successDiv of successDivs)successDiv.classList.remove("active");for(const progressDiv of progressDivs)progressDiv.classList.add("active");const percentOfProgress=cartTotal/freeShipping*100;for(const progressBar of progressBars)progressBar.style.width=offCanvasProgressBar.style.width;setTimeout(()=>{for(const progressBar of progressBars)progressBar.style.width=percentOfProgress+"%"},300);for(const freeShippingAway of freeShippingAways)freeShippingAway.innerHTML=+parseFloat(freeShipping-cartTotal).toFixed(2)}$(".cart-recom-carousel").flickity({cellAlign:"left",contain:!0})}else for(const freeShippingWidget of freeShippingWidgets)freeShippingWidget.classList.remove("active")},window.onChangeCartQty=async input=>{await fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:input.dataset.lineItemKey,quantity:input.value})}),window.refreshCartContents()},window.showNoteButton=input=>{input.closest(".cart-note-wrapper").querySelector("button").style.display="block"},window.saveCartNote=async btn=>{btn.innerHTML=`
2        <div class="spinner-border spinner-border-sm" role="status" style="width: 1rem; height: 1rem">
3            <span class="visually-hidden">Loading...</span>
4        </div>
5    `;const note=btn.closest(".cart-note-wrapper").querySelector('[name="note"]').value;await fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({note})}),btn.innerHTML="\u2713",setTimeout(()=>{btn.innerHTML=btn.dataset.text},2e3)},window.onCheckoutBtnClick=btn=>{btn.style.height=btn.clientHeight+"px",btn.innerHTML=`
6        <div class="spinner-border spinner-border-sm" role="status" style="width: 1.2rem; height: 1.2rem">
7            <span class="visually-hidden">Loading...</span>
8        </div>
9    `};const summaryCard=document.querySelector("#template-cart-summary");if(summaryCard&&window.matchMedia("min-width: 992px")){const navbarHeight=document.querySelector("#shopify-section-navbar.sticky-top").clientHeight||0;summaryCard.style.position="sticky",summaryCard.style.top=`${navbarHeight+20}px`}window.location.hash.includes("#cart")&&document.querySelector("#offcanvas-cart")&&bootstrap.Offcanvas.getOrCreateInstance("#offcanvas-cart").show();
10//# sourceMappingURL=/cdn/shop/t/102/assets/cart.js.map?v=31849550610030331101765981172

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.