PageSourceSearch

https://www.rhinogreenhouses.co.uk/cdn/shop/t/674/assets/buy-butto…?v=163261194444904009671767688653

js rhinogreenhouses.co.uk collected 2026-10-10 00:32:12 UTC 1,858 bytes, 2 lines download raw bytes

1window.addEventListener("pageshow",function(event){if(window.performance.getEntriesByType("navigation")[0].type==="back_forward"){const buyButton=document.querySelector('product-form.product-form button[type="submit"]'),stickyAtcButton=document.querySelector("sticky-atc .sticky-atc-button__submit"),greenhouseInCartMsg=document.querySelector("product-form.product-form[data-greenhouse-product-type] .greenhouse-in-cart-msg"),greenhouseType=document.querySelector("product-form.product-form[data-greenhouse-product-type]").getAttribute("data-greenhouse-product-type"),cartCountElements=document.querySelectorAll(".cart-count-bubble .cart-count-number"),cartCountSeoElements=document.querySelectorAll(".cart-count-bubble .cart-count-number-seo");buyButton&&stickyAtcButton&&greenhouseInCartMsg&&greenhouseType&&fetch("/cart.js").then(response=>response.json()).then(data=>{let totalItems=0;if(data.items.forEach(item=>{totalItems+=item.quantity}),totalItems===0){buyButton.disabled=!1,stickyAtcButton.disabled=!1,greenhouseInCartMsg.style.display="none",cartCountElements.forEach(element=>{const countBubble=element.closest(".cart-count-bubble");countBubble&&countBubble.remove()});return}data.items.forEach(item=>{if(item.product_type===greenhouseType){buyButton.disabled=!0,stickyAtcButton.disabled=!0,greenhouseInCartMsg.style.display="block",cartCountElements.forEach(element=>{element.innerText=totalItems}),cartCountSeoElements.forEach(element=>{element.innerText=`${totalItems} items`});return}else buyButton.disabled=!1,stickyAtcButton.disabled=!1,greenhouseInCartMsg.style.display="none",cartCountElements.forEach(element=>{element.innerText=totalItems}),cartCountSeoElements.forEach(element=>{element.innerText=`${totalItems} items`})})})}});
2//# sourceMappingURL=/cdn/shop/t/674/assets/buy-button-validation.js.map?v=163261194444904009671767688653

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.