PageSourceSearch

https://thermos.com/cdn/shop/t/458/assets/product-color-switcher.js?v=111238106021155725281789489786

js thermos.com collected 2026-09-24 19:21:02 UTC 2,855 bytes, 2 lines download raw bytes

1function initGridProductColors(){$(".grid-product__colors").off("click focus","label.color-swatch").on("click focus","label.color-swatch",function(e){let $this=$(this),WinWidth=$(window).width(),Variant_Url=$this.attr("data-variant-url"),Grid_Product_Color_Image=".grid-product__color-image--"+$this.attr("data-variant-id"),divcountId=$(Grid_Product_Color_Image).length;if(WinWidth<768){let Variant_Image=$this.attr("data-variant-image");$this.closest(".grid-product__content").find(".grid-product__image").attr("src",Variant_Image)}let $colorGroup=$this.closest(".grid-product__colors");$this.closest(".grid-product__content").find(".grid-product__link, .grid-product__title").attr("href",Variant_Url),$colorGroup.find("label.color-swatch").removeClass("selected-variant-list").attr("aria-checked","false"),$this.addClass("selected-variant-list").attr("aria-checked","true");let productId=$this.attr("data-product-id");$("#"+productId).val($this.attr("data-variant-id")),$(".grid-product__image-mask .grid-product__color-image").removeClass("selected-data"),divcountId>1?$(Grid_Product_Color_Image).each(function(){$(this).addClass("selected-data")}):$(Grid_Product_Color_Image).addClass("selected-data")}),$(".grid-product__colors").off("mouseenter focus","label.color-swatch--with-image").on("mouseenter focus","label.color-swatch--with-image",function(){let $this=$(this),Variant_Id=$this.attr("data-variant-id"),Variant_Image=$this.attr("data-variant-image"),Grid_Product_Color_Image=".grid-product__color-image--"+Variant_Id;$(Grid_Product_Color_Image).length>1?$(Grid_Product_Color_Image).each(function(){$(this).css("background-image","url("+Variant_Image+")").addClass("is-active")}):$(Grid_Product_Color_Image).css("background-image","url("+Variant_Image+")").addClass("is-active")}),$(".grid-product__colors").off("mouseleave focusout","label.color-swatch--with-image").on("mouseleave focusout","label.color-swatch--with-image",function(){let Grid_Product_Color_Image=".grid-product__color-image--"+$(this).attr("data-variant-id");$(Grid_Product_Color_Image).removeClass("is-active")}),$(".grid-product__colors").on("keydown","label.color-swatch",function(e){let $this=$(this),$allSwatches=$this.closest(".grid-product__colors").find("label.color-swatch"),currentIndex=$allSwatches.index($this);if(e.key==="ArrowRight"){e.preventDefault();let nextIndex=(currentIndex+1)%$allSwatches.length;$allSwatches.eq(nextIndex).focus().trigger("focus")}else if(e.key==="ArrowLeft"){e.preventDefault();let prevIndex=(currentIndex-1+$allSwatches.length)%$allSwatches.length;$allSwatches.eq(prevIndex).focus().trigger("focus")}}),$(".grid__item:not(.aos-init)").addClass("aos-init aos-animate")}$(document).ready(function(){initGridProductColors()});
2//# sourceMappingURL=/cdn/shop/t/458/assets/product-color-switcher.js.map?v=111238106021155725281789489786

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.