PageSourceSearch

https://www.levi.co.za/cdn/shop/t/47/assets/levisrewards.js?v=4272550094929744101775115095

js levi.co.za collected 2026-10-02 19:16:42 UTC 5,896 bytes, 2 lines download raw bytes

1var current_page=window.location.pathname.split("/").pop();current_page=="customer-account-update"||current_page=="red-tab-points"||current_page=="red-tab-points-history"||current_page=="login"||current_page=="customer-service"||(current_page=="redtab-offline-register"?document.addEventListener("DOMContentLoaded",function(){const stores=[{id:"3355",name:"Levi's\xAE Store - V&A Waterfront"},{id:"3356",name:"Levi's\xAE Store - Canal Walk"},{id:"3351",name:"Levi's\xAE Store - Cavendish"},{id:"3352",name:"Levi's\xAE Store - Tygervalley"},{id:"3364",name:"Levi's\xAE Store - Sandton"},{id:"3361",name:"Levi's\xAE Store - Eastgate"},{id:"3366",name:"Levi's\xAE Store - Cresta"},{id:"3365",name:"Levi's\xAE Store - Clearwater"},{id:"3358",name:"Levi's\xAE Store - Fourways"},{id:"3362",name:"Levi's\xAE Store - Mall Of Africa"},{id:"3360",name:"Levi's\xAE Store - Menlyn"},{id:"3354",name:"Levi's\xAE Store - Centurion"},{id:"3363",name:"Levi's\xAE Store - Mall of the North"},{id:"3357",name:"Levi's\xAE Store - Gateway"},{id:"3353",name:"Levi's\xAE Store - Pavillion"},{id:"3359",name:"Levi's\xAE Store - I'langa"},{id:"3350",name:"Levi's\xAE Store - Adderley CBD"},{id:"3369",name:"Levi's\xAE Outlet - Access Park"},{id:"3372",name:"Levi's\xAE Outlet - Cape Gate"},{id:"3374",name:"Levi's\xAE Outlet - Access City"},{id:"3371",name:"Levi's\xAE Outlet - Woodmead"},{id:"3373",name:"Levi's\xAE Outlet - East Point"},{id:"3375",name:"Levi's\xAE Outlet - Retail Crossing"},{id:"3370",name:"Levi's\xAE Outlet - Atterbury"},{id:"3376",name:"Levi's\xAE Outlet - Bloemfontein"},{id:"3368",name:"Levi's\xAE Outlet - Springfield"},{id:"3381",name:"Levi's\xAE Store - Midlands"},{id:"3380",name:"Levi's\xAE Store - Galleria"},{id:"3383",name:"Levi's\xAE Store - HIGHVELD"},{id:"3379",name:"Levi's\xAE Store - Brooklyn"},{id:"3382",name:"Levi's\xAE Store - THAVANI"},{id:"3378",name:"Levi's\xAE Store - FAIRLANDS WALK"},{id:"3367",name:"Levi's\xAE Store - ROSEBANK"},{id:"3387",name:"Levi's\xAE Store - Boardwalk"},{id:"3385",name:"Levi's\xAE Store - Greenacres"},{id:"3386",name:"Levi's\xAE Store - Levi Somerset"},{id:"3388",name:"Levi's\xAE Store - Levi Outlet Fourways Crossing"},{id:"3899",name:"Levi's\xAE Store - Levi Wonderpark"}];var storecode=new URLSearchParams(window.location.search).get("store");if(storecode!=null)var checkInterval1=setInterval(function(){var storefield1=$(".offline-form .main-form form input#storecode");if(storefield1.length>0&&(clearInterval(checkInterval1),storecode!=null)){var frstore=stores.find(store=>store.id===storecode).name;storefield1.val(storecode);var htmlContent=`<div class="storename">Store : <span class="store">${frstore}</span></div>`;storefield1.after(htmlContent)}},1e3);var loader=document.querySelector(".offline-form .main-form .loader");document.querySelector(".offline-form .main-form form#conditionalForm").addEventListener("submit",function(event){event.preventDefault();var customer_phone=$(this).find("input#phone").val(),customer_email=$(this).find("input#email").val(),form=this,formData=new FormData(form),serializedFormData=new URLSearchParams(formData).toString();loader.classList.add("visible");var xhr=new XMLHttpRequest;xhr.open("POST","https://phpstack-839621-4344448.cloudwaysapps.com/api/levissa/iscustomer",!0),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.onreadystatechange=function(){if(xhr.readyState===XMLHttpRequest.DONE)if(xhr.status===200){var response=xhr.responseText,responsedata=JSON.parse(response);if(console.log(responsedata.data),responsedata.data==0){var newDiv=document.createElement("div");newDiv.classList.add("iscustomer");
1var ptag=document.createElement("p");ptag.classList.add("iscustomer-qa"),ptag.innerHTML="You are already registered in-store, want to link your Red Tab account online?";var redirecttag=document.createElement("a");redirecttag.classList.add("redirect-link"),redirecttag.setAttribute("href","/account/login"),redirecttag.innerHTML="Sign Up",newDiv.appendChild(ptag),newDiv.appendChild(redirecttag);var referenceElement=document.querySelector(".offline-form .main-form form#conditionalForm");referenceElement.style.display="none",loader.classList.remove("visible"),referenceElement.parentNode.insertBefore(newDiv,referenceElement.nextSibling)}else creatnewaccount(serializedFormData)}else console.error("Error updating data:",xhr.status,xhr.statusText)},xhr.send(serializedFormData)});function creatnewaccount(serializedFormData){var xhr=new XMLHttpRequest;xhr.open("POST","https://phpstack-839621-4344448.cloudwaysapps.com/api/levissa/customercreate",!0),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.onreadystatechange=function(){if(xhr.readyState===XMLHttpRequest.DONE)if(xhr.status===200){var response=xhr.responseText,responsedata=JSON.parse(response);if(responsedata.ReturnCode==0){var newform1=document.querySelector(".offline-form .main-form form#conditionalForm");newform1.style.display="none",loader.classList.remove("visible");var successmessage='<p class="success_message">Thank you for providing your details. A SMS will be sent to you to complete your registration details. If you would like to link your Red Tab account online, <a href="/account/login">click here</a>.</p>';newform1.insertAdjacentHTML("afterend",successmessage)}else if(responsedata.ReturnCode!=200){var newform1=document.querySelector(".offline-form .main-form form#conditionalForm");newform1.style.display="none",loader.classList.remove("visible");var successmessage='<p class="error_message">There was an error in registration. Please contact store manager.</p>';newform1.insertAdjacentHTML("afterend",successmessage)}}else console.error("Error updating data:",xhr.status,xhr.statusText)},xhr.send(serializedFormData)}}):current_page=="account");
2//# sourceMappingURL=/cdn/shop/t/47/assets/levisrewards.js.map?v=4272550094929744101775115095

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.