PageSourceSearch

https://whiteandgreenhome.com/cdn/shop/t/29/assets/terms-checkbox.js?v=113181342682280765221732804543

js whiteandgreenhome.com collected 2026-10-04 13:34:01 UTC 2,574 bytes, 22 lines download raw bytes

1document.addEventListener("DOMContentLoaded",function(){const styleElement=document.createElement("style");if(styleElement.textContent=`
2    .terms-checkbox-container {
3      display: flex;
4      align-items: center;
5      margin-top: 15px;
6    }
7
8    .terms-checkbox-container.align-right {
9      justify-content: flex-end;
10    }
11
12    .terms-checkbox {
13      margin-right: 10px;
14    }
15
16    .terms-checkbox-label {
17      font-size: 14px;
18      line-height: 1.5;
19      color: #333;
20    }
21  `,document.head.appendChild(styleElement),typeof themeSettings<"u"&&themeSettings.enable_checkbox){let agregarCheckbox2=function(container,referenceSelector,isCartPage=!1){if(!container)return;const referenceElement=document.querySelector(referenceSelector);if(!referenceElement||container.querySelector(".terms-checkbox-container"))return;const checkboxContainer=document.createElement("div");checkboxContainer.classList.add("terms-checkbox-container"),isCartPage&&checkboxContainer.classList.add("align-right");const checkbox=document.createElement("input");checkbox.type="checkbox",checkbox.id="terms-checkbox",checkbox.classList.add("terms-checkbox"),checkbox.setAttribute("aria-required","true");const label=document.createElement("label");label.htmlFor="terms-checkbox",label.innerHTML=checkboxText,label.classList.add("terms-checkbox-label"),checkboxContainer.appendChild(checkbox),checkboxContainer.appendChild(label),referenceElement.parentNode.insertBefore(checkboxContainer,referenceElement.nextSibling);const checkoutButton=container.querySelector('button[name="checkout"]');checkoutButton&&(checkoutButton.disabled=!checkbox.checked,checkbox.addEventListener("change",()=>{checkoutButton.disabled=!checkbox.checked}))},manejarPaginaCarrito2=function(){if(window.location.pathname==="/cart"){const container=document.querySelector(".cart__footer-wrapper");agregarCheckbox2(container,".cart__footer-wrapper .js-contents",!0)}},manejarCartDrawer2=function(){const container=document.querySelector(".cart-drawer");agregarCheckbox2(container,".cart-drawer .taxes-discounts",!1)};var agregarCheckbox=agregarCheckbox2,manejarPaginaCarrito=manejarPaginaCarrito2,manejarCartDrawer=manejarCartDrawer2;const checkboxText=themeSettings.checkbox_text;if(!checkboxText)return;manejarPaginaCarrito2(),manejarCartDrawer2();const cartDrawer=document.querySelector(".cart-drawer");cartDrawer&&new MutationObserver(()=>{manejarCartDrawer2()}).observe(cartDrawer,{childList:!0,subtree:!0})}});
22//# sourceMappingURL=/cdn/shop/t/29/assets/terms-checkbox.js.map?v=113181342682280765221732804543

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.