PageSourceSearch

https://majorkratom.com/cdn/shop/t/1/assets/enhance.jquery.js?v=1333199724

js majorkratom.com collected 2026-09-29 08:50:02 UTC 2,574 bytes, 2 lines download raw bytes

1(function($){var cache=[],settings={thumbListId:"#thumbs",activeWrapperId:"#active-wrapper",activeImageId:"#active-image",loadingLabel:"Loading..."},$thumbList,$activeWrapper,$loading;$.fn.enhanceGallery=function(options){return options&&$.extend(settings,options),this.length>0&&($thumbList=$(settings.thumbListId,this),$activeWrapper=$(settings.activeWrapperId,this),$loading=$('<div id="active-image-loading">'+settings.loadingLabel+"</div>"),preloadImage($thumbList.find("a:first").attr("href"),$thumbList.find("a:first img").attr("alt")),$thumbList.find("a").click(function(e){preloadImage(this.href,this.alt),e.preventDefault()})),this};function swap(image){var scale=$activeWrapper.width()/image.originalWidth,wrapperWidth=$activeWrapper.width(),wrapperHeight=image.originalWidth<wrapperWidth?image.originalHeight:~~(image.originalHeight*scale);hideSpinner(),$activeWrapper.empty().height(wrapperHeight).append(image.tag),image.originalWidth>wrapperWidth&&$(settings.activeImageId).width(wrapperWidth).height(wrapperHeight).hover(function(){$(this).addClass("zoomed").width(image.originalWidth).height(image.originalHeight),$activeWrapper.mousemove(function(e){var localX=~~((e.pageX-$activeWrapper.offset().left)/wrapperWidth*100),localY=~~((e.pageY-$activeWrapper.offset().top)/wrapperHeight*100);localY>100&&(localY=100);var fromLeft=(image.originalWidth-wrapperWidth)*localX/100,fromTop=(image.originalHeight-wrapperHeight)*localY/100;$(settings.activeImageId).css("left",-fromLeft+"px").css("top",-fromTop+"px")})},function(){$(this).removeClass("zoomed").width(wrapperWidth).height(wrapperHeight),$activeWrapper.unbind("mousemove")})}function preloadImage(url,alt){var alt=alt||"",image=getCachedImage(url);if(image===!1){var cacheImage=document.createElement("img");cacheImage.id="active-image",cacheImage.onload=function(){imageLoaded(cacheImage,url)},cacheImage.src=url,cacheImage.alt=alt,showSpinner()}else swap(image)}function imageLoaded(img,url){var image={tag:img,url:url,originalWidth:img.width,originalHeight:img.height};cache.push(image),swap(image)}function showSpinner(){$activeWrapper.append($loading);var fromLeft=$activeWrapper.width()/2-$loading.width()/2,fromTop=$activeWrapper.height()/2-$loading.height()/2;$loading.css("top",fromTop+"px").css("left",fromLeft+"px")}function hideSpinner(){$loading.remove()}function getCachedImage(url){for(var i=0;i<cache.length;i++)if(cache[i].url===url)return console.log("FOUND THE CACHED IMAGE"),cache[i];return!1}})(jQuery);
2//# sourceMappingURL=/cdn/shop/t/1/assets/enhance.jquery.js.map?v=1333199724

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.