PageSourceSearch

https://shop.bluffworks.com/cdn/shop/t/417/assets/theme.js?v=95000517468101289891790242708

js bluffworks.com collected 2026-10-03 19:17:54 UTC 5,432 bytes, 2 lines download raw bytes

1(function(a){a.fn.equalHeights=function(){var b=0,c=a(this);return c.each(function(){var c2=a(this).innerHeight();c2>b&&(b=c2)}),c.css("height",b)},a("[data-equal]").each(function(){var b=a(this),c=b.data("equal");b.find(c).equalHeights()})})(jQuery);var afterResize=(function(){var t={};return function(callback,ms,uniqueId){uniqueId||(uniqueId="Don't call this twice without a uniqueId"),t[uniqueId]&&clearTimeout(t[uniqueId]),t[uniqueId]=setTimeout(callback,ms)}})();window.theme=window.theme||{},theme.cacheSelectors=function(){theme.cache={$w:$(window),$body:$("body"),$mobileNavTrigger:$("#MobileNavTrigger"),$mobileNav:$("#MobileNav"),$mobileSublistTrigger:$(".mobile-nav__sublist-trigger"),$productGridImages:$(".grid-link__image--product"),$featuredGridImages:$(".grid-link__image--collection"),$productImage:$("#ProductPhotoImg"),$productImageGallery:$(".gallery__item"),cartNoteAdd:".cart__note-add",cartNote:".cart__note",$cartCount:$(".cart-count"),$addToCartBtn:$('form[action^="/cart/add"] :submit')}},theme.init=function(){theme.cacheSelectors(),theme.mobileNav(),theme.equalHeights(),theme.cartPage(),theme.productImageGallery(),theme.enableAjax()},theme.mobileNav=function(){theme.cache.$mobileNavTrigger.on("click",function(){theme.cache.$mobileNav.slideToggle(220)}),theme.cache.$mobileSublistTrigger.on("click",function(evt){var $el=$(this);evt.preventDefault(),$el.toggleClass("is-active").next(".mobile-nav__sublist").slideToggle(200)})},theme.equalHeights=function(){theme.cache.$w.on("load",resizeElements()),theme.cache.$w.on("resize",afterResize(function(){resizeElements()},250,"equal-heights"));function resizeElements(){theme.cache.$productGridImages.css("height","auto").equalHeights(),theme.cache.$featuredGridImages.css("height","auto").equalHeights()}},theme.productImageGallery=function(){theme.cache.$productImageGallery.length&&(theme.cache.$productImageGallery.magnificPopup({type:"image",mainClass:"mfp-fade",closeOnBgClick:!0,closeBtnInside:!1,closeOnContentClick:!0,tClose:"Close (Esc)",removalDelay:500,callbacks:{open:function(){$("html").css("overflow-y","hidden")},close:function(){$("html").css("overflow-y","")}},gallery:{enabled:!0,navigateByImgClick:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><span class="mfp-chevron mfp-chevron-%dir%"></span></button>',tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)"}}),theme.cache.$productImage.bind("click",function(){var imageId=$(this).attr("data-image-id");theme.cache.$productImageGallery.filter('[data-image-id="'+imageId+'"]').trigger("click")}))},theme.cartPage=function(){},theme.backButton=function(){var referrerDomain=urlDomain(document.referrer),shopDomain=urlDomain(document.url);if(shopDomain===referrerDomain)return history.back(),!1;function urlDomain(url){var a=document.createElement("a");return a.href=url,a.hostname}},theme.addToCartflip=function($addToCartBtn2){var addToCartText=$addToCartBtn2.attr("data-add-to-cart")||"Add to Cart";$addToCartBtn2.clone(!0).prop("disabled",!1).removeClass("disabled").addClass("btn--unflipped").find("span").text(addToCartText).end().hide().insertAfter($addToCartBtn2),$addToCartBtn2.unbind("click").removeClass("disabled").find("span").text("View cart").end().bind("click",function(e2){e2.preventDefault(),window.location.href="/cart"}).prop("disabled",!1).addClass("btn--flipped").after('<span class="continue-shopping"> <a class="btn--secondary" href="/collections/all">Continue shopping</a></span>'),$(".continue-shopping a").bind("click",theme.backButton),$('.single-option-selector, [name="quantity"]').bind("click",function(){$(this).closest("form").find(".btn--flipped, .continue-shopping, .note").remove(),$(this).closest("form").find(".btn--unflipped").removeClass(".btn--unflipped").show()})},theme.enableAjax=function(){theme.cache.$addToCartBtn.bind("click",function(e){e.preventDefault(),$(".note.errors").remove();var $addToCartBtn=$(this),$addToCartForm=$(this).closest("form"),$addToCartBtnText=$(this).find("span");$addToCartForm.length&&($addToCartBtn.attr("data-add-to-cart",$addToCartBtnText.text()).prop("disabled",!0).addClass("disabled").addClass("btn--loading"),$.ajax({url:"/cart/add.js",dataType:"json",type:"post",data:$addToCartForm.serialize(),success:function(lineItem){$.getJSON("/cart.js",function(cart){theme.cache.$cartCount.text(cart.item_count),$(".hidden-count").removeClass("hidden-count")}
1),$addToCartBtn.removeClass("btn--loading"),theme.addToCartflip($addToCartBtn)},error:function(XMLHttpRequest,textStatus){var data=eval("("+XMLHttpRequest.responseText+")"),response=data.description,status=XMLHttpRequest.status;$addToCartBtn.removeClass("btn--loading"),status===422&&$("#productSelect option").length===1?$addToCartBtnText.text("Sold Out"):($addToCartBtn.prop("disabled",!1).removeClass("disabled"),$addToCartBtnText.text($addToCartBtn.attr("data-add-to-cart"))),$addToCartBtn.after('<p class="note errors">'+response+"</p>")}}))})},$("a[href='#shopSubmenu']").click(function(){var link=$(this);$("#shopSubmenu").mouseenter(function(event){$("#shopSubmenu .header-submenu-inner").mouseleave(function(event2){event2.stopPropagation(),link.trigger("click")})}),$()}),$(theme.init);function debounce(fn,wait){let t;return(...args)=>{clearTimeout(t),t=setTimeout(()=>fn.apply(this,args),wait)}}
2//# sourceMappingURL=/cdn/shop/t/417/assets/theme.js.map?v=95000517468101289891790242708

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.