PageSourceSearch

https://www.zenuebeauty.com/cdn/shop/t/35/assets/cart-progress-bar.js?v=138379735837485303411780064579

js zenuebeauty.com collected 2026-10-04 17:10:32 UTC 2,561 bytes, 2 lines download raw bytes

1(function(){function updateProgressBar(){var wrapper=document.querySelector(".progress-wrapper"),fill=document.getElementById("progress-fill"),textContainer=document.getElementById("progress-text");if(!wrapper||!fill||!textContainer){console.log("Required elements not found");return}var cartTotal=parseFloat(wrapper.getAttribute("data-cart-total"))||0,settings=window.cartProgressSettings||{},t1=settings.threshold1||parseFloat(wrapper.getAttribute("data-threshold-1"))||1199,t2=settings.threshold2||parseFloat(wrapper.getAttribute("data-threshold-2"))||1599,t3=settings.threshold3||parseFloat(wrapper.getAttribute("data-threshold-3"))||1799,d1=settings.discount1||wrapper.getAttribute("data-discount-1")||"10",d2=settings.discount2||wrapper.getAttribute("data-discount-2")||"15",d3=settings.discount3||wrapper.getAttribute("data-discount-3")||"20",msgTemplate1=settings.message1||wrapper.getAttribute("data-message-1")||"Add Items worth \u20B9{amount} to UNLOCK {discount1}",msgTemplate2=settings.message2||wrapper.getAttribute("data-message-2")||"CONGRATS! YOU UNLOCKED {discount1} | ADD \u20B9{amount} for {discount2}",msgTemplate3=settings.message3||wrapper.getAttribute("data-message-3")||"CONGRATS! YOU UNLOCKED {discount2} | ADD \u20B9{amount} for {discount3}",msgComplete=settings.messageComplete||wrapper.getAttribute("data-message-complete")||"CONGRATS! YOU HAVE UNLOCKED ALL OFFERS! {discount3} APPLIED";function fillPlaceholders(template,amount){return template.replace("{amount}",amount).replace("{discount1}",d1).replace("{discount2}",d2).replace("{discount3}",d3)}var pct=0,msg="";cartTotal<t1?(pct=cartTotal/t1*33.33,msg=fillPlaceholders(msgTemplate1,Math.ceil(t1-cartTotal))):cartTotal>=t1&&cartTotal<t2?(pct=33.33+(cartTotal-t1)/(t2-t1)*33.33,msg=fillPlaceholders(msgTemplate2,Math.ceil(t2-cartTotal))):cartTotal>=t2&&cartTotal<t3?(pct=66.66+(cartTotal-t2)/(t3-t2)*33.34,msg=fillPlaceholders(msgTemplate3,Math.ceil(t3-cartTotal))):(pct=100,msg=fillPlaceholders(msgComplete,0)),fill.style.width=pct+"%",textContainer.innerHTML=msg,pct>=100?fill.classList.add("full"):fill.classList.remove("full")}window.updateProgressBar=updateProgressBar,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",updateProgressBar):updateProgressBar(),document.addEventListener("cartdrawer:opened",function(){setTimeout(updateProgressBar,100)}),document.addEventListener("cart:updated",function(){setTimeout(updateProgressBar,100)})})();
2//# sourceMappingURL=/cdn/shop/t/35/assets/cart-progress-bar.js.map?v=138379735837485303411780064579

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.