PageSourceSearch

https://funnyfuzzy.com/cdn/shop/t/627/assets/custom.js?v=175542370620304490291781250706

js funnyfuzzy.com collected 2026-09-25 18:38:08 UTC 11,797 bytes, 2 lines download raw bytes

1(function(){var HOTSPOT_CARD_OFFSET=20,MOBILE_STL_MQ="(max-width: 740px)",STL_MOB_DESIGN_W=375,STL_MOB_GAP=8;function getShopTheLookMobileViewportWidth(){return window.innerWidth||document.documentElement.clientWidth||STL_MOB_DESIGN_W}function getShopTheLookMobileSwiperSpaceBetween(){return getShopTheLookMobileViewportWidth()*STL_MOB_GAP/STL_MOB_DESIGN_W}function updateShopTheLookSwiperSpacing(section){if(!(!section||!window.matchMedia(MOBILE_STL_MQ).matches)){var swiper=section.__shopTheLookNewSwiper;!swiper||!swiper.params||(swiper.params.spaceBetween=getShopTheLookMobileSwiperSpaceBetween(),swiper.update&&swiper.update())}}function scheduleFrame(section,callback){section.__shopTheLookNewRaf&&cancelAnimationFrame(section.__shopTheLookNewRaf),section.__shopTheLookNewRaf=requestAnimationFrame(function(){section.__shopTheLookNewRaf=null,callback()})}function positionCard(card){if(!(!card||!card.__shopTheLookNewPortal)){var portalData=card.__shopTheLookNewPortal,overlayLayer=portalData.overlayLayer,anchorWrapper=portalData.anchorWrapper;if(!(!overlayLayer||!anchorWrapper||!overlayLayer.isConnected||!anchorWrapper.isConnected)){var overlayRect=overlayLayer.getBoundingClientRect(),wrapperRect=anchorWrapper.getBoundingClientRect(),cardWidth=card.offsetWidth,left=wrapperRect.left-overlayRect.left+HOTSPOT_CARD_OFFSET;card.classList.contains("shop-the-look-new__anchor-card--reverse")&&(left=wrapperRect.left-overlayRect.left+wrapperRect.width-HOTSPOT_CARD_OFFSET-cardWidth),card.style.left=left+"px",card.style.top=wrapperRect.top-overlayRect.top+HOTSPOT_CARD_OFFSET+"px"}}}function positionSectionCards(section){var cards=section.querySelectorAll(".shop-the-look-new__overlay-layer .shop-the-look-new__anchor-card");cards.forEach(function(card){positionCard(card)})}function teardownShopTheLookNew(section){section.__shopTheLookNewCleanup&&(section.__shopTheLookNewCleanup(),section.__shopTheLookNewCleanup=null);var overlay=section.querySelector(".shop-the-look-new__overlay-layer");overlay&&overlay.querySelectorAll(".shop-the-look-new__anchor-card").forEach(function(card){var pd=card.__shopTheLookNewPortal;pd&&pd.anchorWrapper&&pd.anchorWrapper.appendChild(card),card.__shopTheLookNewPortal=null}),section.__shopTheLookNewPortalReady=!1,section.__shopTheLookNewSchedulePosition=null,section.__shopTheLookNewSwiper&&section.__shopTheLookNewSwiper.destroy&&(section.__shopTheLookNewSwiper.destroy(!0,!0),section.__shopTheLookNewSwiper=null)}function getShopTheLookAnchorScope(section){return window.matchMedia(MOBILE_STL_MQ).matches?section.querySelector(".shop-the-look-new__mobile-swipe"):section.querySelector(".shop-the-look-new__desktop-scroll")}function updateShopTheLookTabNavLayout(nav){!nav||!window.matchMedia(MOBILE_STL_MQ).matches||(nav.classList.remove("shop-the-look-new__tabs--scroll"),nav.scrollWidth>nav.clientWidth&&nav.classList.add("shop-the-look-new__tabs--scroll"))}function scheduleShopTheLookTabNavLayout(section){if(section){var nav=section.querySelector(".shop-the-look-new__tabs");nav&&scheduleFrame(section,function(){updateShopTheLookTabNavLayout(nav)})}}function syncShopTheLookTabsFromSwiper(section,swiper){var n=parseInt(section.getAttribute("data-stl-look-count"),10)||0;if(!(n<1||!swiper))for(var logicalTab=swiper.realIndex%n,tabs=section.querySelectorAll(".shop-the-look-new__tab"),t=0;t<tabs.length;t++)t===logicalTab?(tabs[t].classList.add("is-active"),tabs[t].setAttribute("aria-selected","true"),tabs[t].setAttribute("tabindex","0")):(tabs[t].classList.remove("is-active"),tabs[t].setAttribute("aria-selected","false"),tabs[t].setAttribute("tabindex","-1"))}function initShopTheLookNewSwiper(section){if(window.matchMedia(MOBILE_STL_MQ).matches){var container=section.querySelector(".shop-the-look-new__mobile-swipe .shop-the-look-new__swiper");if(!(!container||typeof window.Swiper=="undefined")){var slides=container.querySelectorAll(".swiper-slide");if(slides.length!==0){var lookCount=parseInt(section.getAttribute("data-stl-look-count"),10)||0;if(!(slides.length<2)){var nextEl=section.querySelector(".shop-the-look-new__swiper-button-next"),prevEl=section.querySelector(".shop-the-look-new__swiper-button-prev"),opts={slidesPerView:"auto",centeredSlides:!0,spaceBetween:getShopTheLookMobileSwiperSpaceBetween(),watchSlidesProgress:!0,on:{slideChange:function(){syncShopTheLookTabsFromSwiper(section,this),section.__shopTheLookNewSchedulePosition&&section.__shopTheLookNewSchedulePosition()}}};lookCount>2&&(opts.loop=!0),nextEl&&prevEl&&(opts.navigation={nextEl:nextEl,prevEl:prevEl}),section.__shopTheLookNewSwiper=new window.Swiper(container,opts),syncShopTheLookTabsFromSwiper(section,section.__shopTheLookNewSwiper)}}}}}function bindShopTheLookTabs(section){var tabNav=section.querySelector(".shop-the-look-new__tabs");!tabNav||tabNav.__stlTabBound||(tabNav.__stlTabBound=!0,tabNav.addEventListener("click",function(e){var btn=e.target&&e.target.closest&&e.target.closest(".shop-the-look-new__tab");if(!(!btn||!section.contains(btn))){var ix=parseInt(btn.getAttribute("data-stl-tab-index"),10);if(!isNaN(ix)){var swiper=section.__shopTheLookNewSwiper;swiper&&(e.preventDefault(),swiper.params.loop?swiper.slideToLoop(ix):swiper.slideTo(ix))}}}))}
1function scrollShopTheLookDesktopToIndex(section,slideIndex){if(!window.matchMedia(MOBILE_STL_MQ).matches){var scrollTrack=section.querySelector(".shop-the-look-new__desktop-scroll .product-list__inner.shop-the-look-new__grid");if(scrollTrack){var targetSlide=scrollTrack.querySelector('.shop-the-look-new-block-wrap[data-stl-slide-index="'+slideIndex+'"]');targetSlide&&scrollTrack.scrollTo({left:targetSlide.offsetLeft,behavior:"smooth"})}}}function selectShopTheLookEditorBlock(section,slideIndex){if(!(isNaN(slideIndex)||slideIndex<0)){section.scrollIntoView&&section.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});var swiper=section.__shopTheLookNewSwiper;swiper&&window.matchMedia(MOBILE_STL_MQ).matches?swiper.params.loop?swiper.slideToLoop(slideIndex):swiper.slideTo(slideIndex):scrollShopTheLookDesktopToIndex(section,slideIndex),section.__shopTheLookNewSchedulePosition&&section.__shopTheLookNewSchedulePosition()}}function bindShopTheLookEditorSelection(section){if(!(!window.Shopify||!window.Shopify.designMode||section.__stlEditorBound)){section.__stlEditorBound=!0;var onBlockSelect=function(event){var selectedBlock=event.target&&event.target.closest&&(event.target.closest("[data-stl-editor-block][data-stl-slide-index]")||event.target.closest(".shop-the-look-new-block-wrap[data-stl-slide-index]"));if(!(!selectedBlock||!section.contains(selectedBlock))){var slideIndex=parseInt(selectedBlock.getAttribute("data-stl-slide-index"),10);selectShopTheLookEditorBlock(section,slideIndex)}};section.addEventListener("shopify:block:select",onBlockSelect)}}function initShopTheLookNewSection(section){if(section){var scope=getShopTheLookAnchorScope(section),overlayLayer=section.querySelector(".shop-the-look-new__overlay-layer");if(!(!scope||!overlayLayer)){var scrollViewport=scope.querySelector(".scroller"),scrollTrack=scope.querySelector(".product-list__inner.shop-the-look-new__grid"),productList=scope.querySelector(".product-list"),anchorWrappers=scope.querySelectorAll(".shop-the-look-new__anchor-wrapper");anchorWrappers.forEach(function(anchorWrapper){var anchorCard=anchorWrapper.querySelector(".shop-the-look-new__anchor-card");anchorCard&&(anchorCard.__shopTheLookNewPortal={anchorWrapper:anchorWrapper,overlayLayer:overlayLayer},anchorCard.parentElement!==overlayLayer&&overlayLayer.appendChild(anchorCard),positionCard(anchorCard))});var schedulePosition=function(){scheduleFrame(section,function(){positionSectionCards(section)})},closeSectionCards=function(){section.querySelectorAll(".shop-the-look-new__anchor-card[open]").forEach(function(card){card.style.pointerEvents="none",card.open=!1})};section.__shopTheLookNewPortalReady=!0,section.__shopTheLookNewSchedulePosition=schedulePosition;var cleanups=[];scrollTrack&&(scrollTrack.addEventListener("scroll",schedulePosition,{passive:!0}),cleanups.push(function(){scrollTrack.removeEventListener("scroll",schedulePosition)})),scrollViewport&&(scrollViewport.addEventListener("scroll",schedulePosition,{passive:!0}),cleanups.push(function(){scrollViewport.removeEventListener("scroll",schedulePosition)})),productList&&(productList.addEventListener("prev-next:prev",schedulePosition),productList.addEventListener("prev-next:next",schedulePosition),cleanups.push(function(){productList.removeEventListener("prev-next:prev",schedulePosition),productList.removeEventListener("prev-next:next",schedulePosition)}));var onWinResize=function(){schedulePosition()};window.addEventListener("resize",onWinResize),cleanups.push(function(){window.removeEventListener("resize",onWinResize)});var onOpenableOpen=function(event){event.target.classList.contains("shop-the-look-new__anchor-card")&&(event.target.style.pointerEvents="auto",schedulePosition())};section.addEventListener("openable-element:open",onOpenableOpen),cleanups.push(function(){section.removeEventListener("openable-element:open",onOpenableOpen)});var onOpenableClose=function(event){event.target.classList.contains("shop-the-look-new__anchor-card")&&(event.target.style.pointerEvents="none")};section.addEventListener("openable-element:close",onOpenableClose),cleanups.push(function(){section.removeEventListener("openable-element:close",onOpenableClose)});var onSectionPointerDown=function(event){if(section.querySelector(".shop-the-look-new__anchor-card[open]")){var target=event.target;target.closest(".shop-the-look-new__anchor-card")||target.closest(".shop-the-look-new__anchor-btn")||(event.preventDefault(),event.stopPropagation(),closeSectionCards())}};section.addEventListener("pointerdown",onSectionPointerDown),cleanups.push(function(){section.removeEventListener("pointerdown",onSectionPointerDown)}),section.__shopTheLookNewCleanup=function(){cleanups.forEach(function(fn){fn()})},schedulePosition()}}}function initShopTheLookNew(root){var scope=root||document,sections=scope.querySelectorAll(".shop-the-look-new-section");sections.forEach(function(section){teardownShopTheLookNew(section),initShopTheLookNewSection(section),initShopTheLookNewSwiper(section),section.__shopTheLookNewSwiper&&section.__shopTheLookNewSwiper.update&&section.__shopTheLookNewSwiper.update(
1),section.__shopTheLookNewSchedulePosition&&section.__shopTheLookNewSchedulePosition(),bindShopTheLookTabs(section),bindShopTheLookEditorSelection(section),scheduleShopTheLookTabNavLayout(section)})}var resizeTimer=null;window.addEventListener("resize",function(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){document.querySelectorAll(".shop-the-look-new-section").forEach(function(section){var next=window.matchMedia(MOBILE_STL_MQ).matches?"m":"d";if(section.__shopTheLookNewBreakpoint===next){scheduleShopTheLookTabNavLayout(section),updateShopTheLookSwiperSpacing(section),section.__shopTheLookNewSchedulePosition&&section.__shopTheLookNewSchedulePosition();return}section.__shopTheLookNewBreakpoint=next,initShopTheLookNew(section)})},160)}),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".shop-the-look-new-section").forEach(function(section){section.__shopTheLookNewBreakpoint=window.matchMedia(MOBILE_STL_MQ).matches?"m":"d"}),initShopTheLookNew(document)}):(document.querySelectorAll(".shop-the-look-new-section").forEach(function(section){section.__shopTheLookNewBreakpoint=window.matchMedia(MOBILE_STL_MQ).matches?"m":"d"}),initShopTheLookNew(document)),document.addEventListener("shopify:section:load",function(event){initShopTheLookNew(event.target)})})();
2//# sourceMappingURL=/cdn/shop/t/627/assets/custom.js.map?v=175542370620304490291781250706

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.