PageSourceSearch

https://us.princesspolly.com/cdn/shop/t/1482/assets/lateshipment-popup-us.js?v=100061801875425276471748883821

js princesspolly.com collected 2026-09-24 09:21:35 UTC 3,192 bytes, 2 lines download raw bytes

1var domain="US";const countryCodeExpression=/loc=([\w]{2})/,userIPExpression=/ip=([\w\.]+)/;function initCountry(){return new Promise((resolve,reject)=>{var xhr=new XMLHttpRequest;xhr.timeout=3e3,xhr.onreadystatechange=function(){if(this.readyState==4)if(this.status==200){let countryCode=countryCodeExpression.exec(this.responseText),ip=userIPExpression.exec(this.responseText);(countryCode===null||countryCode[1]===""||ip===null||ip[1]==="")&&reject("IP/Country code detection failed");let result={countryCode:countryCode[1],IP:ip[1]};resolve(result)}else reject(xhr.status)},xhr.ontimeout=function(){reject("timeout")},xhr.open("GET","https://www.cloudflare.com/cdn-cgi/trace",!0),xhr.send()})}initCountry().then(result=>{JSON.parse(JSON.stringify(result)).countryCode!="US"&&document.querySelectorAll(".ls-track-section").forEach(function(el){el.style.display="none"})}).catch(e=>console.log(e)),domain=="AU"?(document.getElementById("ls-track-heading-text").innerText="EDIT POST CODE",document.getElementById("ls-track-heading-desc").innerText="Enter a post code to see when it will arrive.",document.getElementById("zipcode").placeholder="Enter Post Code"):(document.getElementById("ls-track-heading-text").innerText="EDIT ZIP CODE",document.getElementById("ls-track-heading-desc").innerText="Enter a ZIP code to see when it will arrive.",document.getElementById("zipcode").placeholder="Enter Zip Code");function get(name){if(name=new RegExp("[?&]"+encodeURIComponent(name)+"=([^&]*)").exec(location.search))return decodeURIComponent(name[1])}const atcForm=document.querySelector(".shopify-product-form");atcForm&&atcForm.addEventListener("keydown",e=>{if(e.keyCode===13){const focusedInput=atcForm.querySelector("input:focus");focusedInput&&focusedInput.id==="zipcode"&&(e.preventDefault(),myFunction())}}),document.querySelector("#ls-close").addEventListener("click",function(e){document.getElementById("zipcode").value="",document.getElementById("output-desc").innerHTML=""},!1),document.getElementById("track-submit").onclick=function(){myFunction()};function myFunction(){var domain2="US";console.log("domain"+domain2);var to_pincode=document.getElementById("zipcode").value;const url="https://app.lateshipment.com/princesspolly/ls_estimateddelivery.php?to_pincode="+to_pincode+"&domain="+domain2;fetch(url,{method:"POST"}).then(response=>response.text()).then(function(html){document.getElementById("output-desc").innerHTML=html,startTimer()})}function startTimer(){clearInterval(downloadTimer);var timeleft=document.getElementById("remaining_time").getAttribute("data-value");document.getElementById("progressBar").value=timeleft;var hours=Math.floor(timeleft/60),minutes=timeleft%60;document.getElementById("remaining_time").innerHTML=hours+"hrs "+minutes+"mins";var downloadTimer=setInterval(function(){console.log(timeleft),timeleft<=0&&clearInterval(downloadTimer),document.getElementById("progressBar").value=timeleft,hours=Math.floor(timeleft/60),minutes=timeleft%60,document.getElementById("remaining_time").innerHTML=hours+"hrs "+minutes+"mins",timeleft-=1},6e4)}
2//# sourceMappingURL=/cdn/shop/t/1482/assets/lateshipment-popup-us.js.map?v=100061801875425276471748883821

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.