PageSourceSearch

https://www.americanheritagebilliards.com/cdn/shop/t/51/assets/product.js?v=101142421124201319211779976155

js americanheritagebilliards.com collected 2026-10-05 00:55:00 UTC 3,398 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{const theToggle=document.getElementById("the_toggle"),theText=document.getElementById("the_text");function initOveriewViewMore(){var clientHeight=theText.clientHeight,scrollHeight=theText.scrollHeight,isClamped=scrollHeight>clientHeight;isClamped?theToggle.style.display="block":theToggle.style.display="none"}function handleClick(){event.preventDefault(),theText.classList.contains("clamped_text")?(theToggle.textContent="Read Less",theText.classList.remove("clamped_text"),theText.classList.add("expanded_text")):(theToggle.textContent="Read More",theText.classList.remove("expanded_text"),theText.classList.add("clamped_text"))}function updateInventoryDisplay(){document.addEventListener("variant:changed",function(event2){var variant=event2.detail.variant,display=document.querySelector(".ProductMeta__Inventory");display&&(variant.available?display.textContent="In Stock":display.textContent="Out of Stock")})}initOveriewViewMore(),updateInventoryDisplay(),theToggle.addEventListener("click",handleClick),window.addEventListener("resize",initOveriewViewMore)});function toggleVariantThumbnails(event2){let variant=event2,navScroller=document.getElementsByClassName("Product__SlideshowNav--thumbnails")[0];if(navScroller.classList.add("is-hidden"),variant){let sku=variant.sku.toLowerCase(),thumbs=document.querySelectorAll(".Product__SlideshowNav .Product__SlideshowNavImage"),hasThumb=document.querySelectorAll('.Product__SlideshowNav .Product__SlideshowNavImage[data-color="'+sku+'"]').length,thumbsMobile=document.querySelectorAll(".Product__SlideshowMobileNav .flickity-page-dots .dot");var flag=!0;if(hasThumb){thumbs.forEach(function(thumb,index){sku===thumb.dataset.color.toLowerCase()?(thumb.classList.remove("hidden-tablet-and-up"),flag&&(thumb.click(),flag=!1)):thumb.classList.add("hidden-tablet-and-up")});var mobileFlag=!0;thumbsMobile.forEach(function(thumb){sku===thumb.dataset.color.toLowerCase()?(thumb.classList.remove("hidden-phone","hidden-tablet-and-up"),mobileFlag&&(thumb.click(),mobileFlag=!1)):thumb.classList.add("hidden-phone","hidden-tablet-and-up")})}else thumbs.forEach(function(thumb){thumb.classList.remove("hidden-tablet-and-up")}),thumbsMobile.forEach(function(thumb){thumb.classList.remove("hidden-phone")})}setTimeout(function(){navScroller.classList.remove("is-hidden")},750)}function adjustAddToCartButton(){var separator=document.querySelector(".Button__SeparatorDot");separator&&(separator.classList.remove("Button__SeparatorDot"),separator.classList.add("Button__SeparatorDash"),separator.textContent="-");var priceElement=document.querySelector(".ProductForm__AddToCart [data-money-convertible]");if(priceElement){var price=priceElement.textContent.trim();priceElement.textContent=price+".00"}}document.addEventListener("DOMContentLoaded",function(){document.addEventListener("variant:changed",function(event2){toggleVariantThumbnails(event2.detail.variant),adjustAddToCartButton()});const variantDataElement=document.querySelector("[data-product-json]");if(variantDataElement){const jsonData=JSON.parse(variantDataElement.innerHTML),currentVariantId=jsonData.selected_variant_id,currentVariant=jsonData.product.variants.find(variant=>variant.id===currentVariantId);toggleVariantThumbnails(currentVariant)}});
2//# sourceMappingURL=/cdn/shop/t/51/assets/product.js.map?v=101142421124201319211779976155

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.