PageSourceSearch

https://professional.imageskincare.com/cdn/shop/t/131/assets/custom.js?v=79822166264641631421781095798

js imageskincare.com collected 2026-10-02 17:04:05 UTC 3,861 bytes, 1 lines download raw bytes

1window.onload=function(){document.querySelector("body").addEventListener("click",(function(t){const e=function(t){for(;null!==t;){if(t.tagName&&"A"===t.tagName.toUpperCase())return t;t=t.parentNode}return null}(t.target);null!==e&&e.href.includes("cart/change")&&setTimeout((function(){e.click()}),2e3)}),!1);const t=document.getElementsByName("customer[password]")[0];if(t&&null==window.location.href.match(/login/)){const e=document.getElementById("password_letter"),s=document.getElementById("password_capital"),a=document.getElementById("password_number"),o=document.getElementById("password_symbol"),n=document.getElementById("password_length");t.onfocus=function(){document.getElementById("password-message").style.display="block"},t.onblur=function(){document.getElementById("password-message").style.display="none"},t.onkeyup=function(){t.value.match(/[a-z]/g)?(e.classList.remove("password-invalid"),e.classList.add("password-valid")):(e.classList.remove("password-valid"),e.classList.add("password-invalid"));t.value.match(/[A-Z]/g)?(s.classList.remove("password-invalid"),s.classList.add("password-valid")):(s.classList.remove("password-valid"),s.classList.add("password-invalid"));t.value.match(/[0-9]/g)?(a.classList.remove("password-invalid"),a.classList.add("password-valid")):(a.classList.remove("password-valid"),a.classList.add("password-invalid"));t.value.match(/[^a-zA-Z0-9 ]/g)?(o.classList.remove("password-invalid"),o.classList.add("password-valid")):(o.classList.remove("password-valid"),o.classList.add("password-invalid")),t.value.length>=12?(n.classList.remove("password-invalid"),n.classList.add("password-valid")):(n.classList.remove("password-valid"),n.classList.add("password-invalid"))}}const e=()=>{window.tolstoyWidget.subscribe("tolstoy_add_to_cart",(t=>{document.querySelector("cart-drawer").setAttribute("open",""),window.tolstoyWidget.closePlayer(),setTimeout((function(){window.CartDrawer.triggerCustomRefresh()}),1e3)}),{})};window.tolstoyWidget?e():window.addEventListener("tolstoyWidgetReady",(()=>{e()}));const s=document.querySelectorAll(".payment-options-open"),a=document.querySelector(".IS-modal"),o=document.querySelectorAll(".close-modal");function n(){a.classList.remove("visible")}s&&(s.forEach((t=>{t.addEventListener("click",(()=>{a.classList.add("visible")}))})),o.forEach((t=>{t.addEventListener("click",n)}))),function(){function t(){const t=window.location.pathname.includes("/cart");return document.querySelector(t?".cart-page-error":".cart-drawer-error")}function e(e){const s=t();s&&(s.style.display="block",s.innerHTML=`<span style="color: #ffae00;;font-weight:bold;">&#9888;</span> ${e}`,s.scrollIntoView({behavior:"smooth",block:"center"}))}async function s(){const t=await fetch("/cart.js"),e=await t.json(),s=new Map(e.items.map((t=>[t.key,t.quantity])));document.querySelectorAll(".quantity-selector__input").forEach((t=>{const e=t.dataset.lineKey,a=s.get(e);null!=a&&(t.value=a)}))}async function a(a,o){!function(){const e=t();e&&(e.style.display="none",e.textContent="")}();try{const t=await fetch("/cart/change.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,quantity:o})}),n=await t.json();if(!t.ok)return e(n.description||"Unable to update cart"),void await s();location.reload()}catch(t){console.error(t),e("Something went wrong"),await s()}}document.addEventListener("click",(function(t){const e=t.target.closest(".js-qty-change, .js-remove-item");if(!e)return;t.preventDefault();const s=e.dataset.lineKey;if(e.classList.contains("js-remove-item"))return void a(s,0);const o=e.closest("quantity-selector");o?.querySelector(".quantity-selector__input");a(s,Number(e.dataset.quantity))})),document.addEventListener("change",(function(t){const e=t.target.closest(".quantity-selector__input");if(!e)return;a(e.dataset.lineKey,Number(e.value))}))}()};

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.