PageSourceSearch

https://www.athleticpropulsionlabs.com/cdn/shop/t/2/assets/custom.js?v=19604217717141908181788442642

js athleticpropulsionlabs.com collected 2026-09-24 09:05:17 UTC 20,513 bytes, 2 lines download raw bytes

1"use strict";function loadScript(src,done){var js=document.createElement("script");js.src=src,js.onload=function(){done&&done()},js.onerror=function(){console.error("Failed to load script "+src),done&&done()},document.head.appendChild(js)}document.addEventListener("discount_kit:cart_changed",()=>{if(window.location.pathname.includes("/cart")){window.location.reload();return}document.dispatchEvent(new CustomEvent("product:added",{detail:{quantity:0}})),setTimeout(()=>{fetch("/cart.js").then(response=>response.json()).then(cart=>{document.querySelectorAll(".Header__CartCount, .Header__CartDotCount").forEach(el=>{el.textContent=cart.item_count}),document.querySelectorAll(".Header__CartDot").forEach(dot=>{cart.item_count===0?dot.classList.remove("is-visible"):dot.classList.add("is-visible")})}).catch(error=>{console.error("Error fetching cart:",error)})},500)});function enhanceGEModalAccessibility(){var recommendationModal=document.querySelector(".recommendation-modal__container");if(recommendationModal){recommendationModal.setAttribute("aria-modal","true"),recommendationModal.setAttribute("role","dialog");var firstFocusableElement=recommendationModal.querySelector(".recommendation-modal__close-button"),lastFocusableElement=recommendationModal.querySelector(".recommendation-modal__button--minimal"),closeButton=firstFocusableElement;closeButton&&closeButton.setAttribute("aria-label","Close country selector modal"),recommendationModal.addEventListener("keydown",function(e){e.target==firstFocusableElement&&e.key=="Tab"&&e.shiftKey?(e.preventDefault(),lastFocusableElement.focus()):e.target==lastFocusableElement&&e.key=="Tab"&&!e.shiftKey&&(e.preventDefault(),firstFocusableElement.focus())})}}var GEModalObserver=new MutationObserver(function(mutations){mutations.forEach(function(mutation){mutation.addedNodes.length>0&&mutation.addedNodes.forEach(function(node){if(node.nodeType===1){if((node.matches(".recommendation-modal__container")||node.querySelector(".recommendation-modal__container"))&&enhanceGEModalAccessibility(),node.matches(".recommendation-modal__flag")||node.querySelector(".recommendation-modal__flag")){enhanceGEModalAccessibility();var modalHeading=document.querySelector(".recommendation-modal__message");modalHeading.setAttribute("tabindex","0"),modalHeading.focus()}var alignStartMessage=node.matches(".recommendation-modal__message--align-start")?node:node.querySelector(".recommendation-modal__message--align-start");if(alignStartMessage){enhanceGEModalAccessibility(),alignStartMessage.setAttribute("tabindex","0"),alignStartMessage.focus();var selectField=document.querySelector(".recommendation-modal__selector--flag");if(selectField){selectField.setAttribute("id","country_code__selector");var label=document.createElement("label");label.setAttribute("for","country_code__selector"),label.classList.add("screenreader"),label.textContent="Change country/region",selectField.parentNode.insertBefore(label,selectField)}}}})})});GEModalObserver.observe(document.body,{childList:!0,subtree:!0}),(function(){var touchingCarousel=!1,touchStartCoords;document.body.addEventListener("touchstart",function(e){if(e.target.closest(".flickity-slider"))touchingCarousel=!0;else{touchingCarousel=!1;return}touchStartCoords={x:e.touches[0].pageX,y:e.touches[0].pageY}}),document.body.addEventListener("touchmove",function(e){if(touchingCarousel&&e.cancelable){var moveVector={x:e.touches[0].pageX-touchStartCoords.x,y:e.touches[0].pageY-touchStartCoords.y};Math.abs(moveVector.x)>7&&e.preventDefault()}},{passive:!1}),addFlickityAccessibility()})();function addFlickityAccessibility(){const carouselObserver=new MutationObserver(mutationsList=>{mutationsList.forEach(mutation=>{if(mutation.target.nodeType===1&&(mutation.target.classList?.contains("flickity-enabled")||mutation.target.classList?.contains("nosto-carousel"))){const $carousel=mutation.target,$prevButton=$carousel.querySelector(".flickity-prev-next-button.previous"),$nextButton=$carousel.querySelector(".flickity-prev-next-button.next"),$carouselParents=getParents($carousel),$section=$carouselParents.find($carouselParent=>$carouselParent.classList?.contains("Section")),$carouselWrapper=$carouselParents.find($carouselParent=>$carouselParent.classList?.contains("ProductListWrapper")),ariaLabel=`${$section?.querySelector(".SectionHeader__Heading")?.innerText} carousel`||"carousel",$carouselInstructions=document.createElement("p");$carouselInstructions.classList.add("screenreader"),$carouselInstructions.innerText=SDG.Data.carouselInstructions,$carouselWrapper.setAttribute("aria-label",ariaLabel),$carouselWrapper.setAttribute("role","regi
1on"),$carouselWrapper.querySelector(".screenreader")||$carouselWrapper.prepend($carouselInstructions),$prevButton&&$prevButton.hasAttribute("disabled")&&$nextButton&&$nextButton.hasAttribute("disabled")&&($prevButton.classList.add("no-opacity"),$nextButton.classList.add("no-opacity")),$prevButton&&!$prevButton.hasAttribute("disabled")&&$nextButton&&!$nextButton.hasAttribute("disabled")&&($prevButton.classList.remove("no-opacity"),$nextButton.classList.remove("no-opacity")),carouselObserver.disconnect()}})});carouselObserver.observe(document.querySelector("main"),{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]})}function updateCarouselButtons(){const nextButton=document.querySelector(".flickity-prev-next-button.next");if(!nextButton)return;const buttonObserver=new MutationObserver(mutationsList=>{mutationsList.forEach(mutation=>{let $prevButton,$nextButton;mutation.target.attributes.disabled&&($prevButton=mutation.target.previousElementSibling,$nextButton=mutation.target,$prevButton&&$nextButton&&$prevButton.hasAttribute("disabled")&&$nextButton.hasAttribute("disabled")&&($prevButton.classList.add("no-opacity"),$nextButton.classList.add("no-opacity"),buttonObserver.disconnect())),mutation.target.attributes.disabled||($prevButton=mutation.target.previousElementSibling,$nextButton=mutation.target,$prevButton&&$nextButton&&(!$prevButton.hasAttribute("disabled")||!$nextButton.hasAttribute("disabled"))&&($prevButton.classList.remove("no-opacity"),$nextButton.classList.remove("no-opacity"),buttonObserver.disconnect()))})});buttonObserver.observe(nextButton,{subtree:!1,childList:!0,attributes:!0,attributeFilter:["disabled"]})}window.addEventListener("resize",()=>{const $nostoCarousels=document.querySelectorAll(".ProductList--carousel");updateCarouselButtons(),$nostoCarousels.forEach($nostoCarousel=>{window.innerWidth>992&&$nostoCarousel.hasAttribute("tabindex")&&$nostoCarousel.removeAttribute("tabindex")})});function getParents(el){for(var parents=[];el;el=el.parentNode)parents.push(el);return parents}function setShippingAddressCharLimits(){var maxCharAddress=35,maxCharName=17,$firstNameShip=document.getElementById("checkout_shipping_address_first_name"),$lastNameShip=document.getElementById("checkout_shipping_address_last_name"),$addressFieldShip=document.getElementById("checkout_shipping_address_address1"),$apartmentFieldShip=document.getElementById("checkout_shipping_address_address2"),$cityFieldShip=document.getElementById("checkout_shipping_address_city"),$zipFieldShip=document.getElementById("checkout_shipping_address_zip"),$phoneFieldShip=document.getElementById("checkout_shipping_address_phone");$firstNameShip&&($firstNameShip.maxLength=maxCharName,$lastNameShip.maxLength=maxCharName,$addressFieldShip.maxLength=maxCharAddress,$apartmentFieldShip.maxLength=maxCharAddress,$cityFieldShip.maxLength=maxCharAddress,$zipFieldShip.maxLength=maxCharAddress,$phoneFieldShip.maxLength=maxCharAddress)}function setBillingAddressCharLimits(){var maxCharAddress=35,maxCharName=17,$firstNameBill=document.getElementById("checkout_billing_address_first_name"),$lastNameBill=document.getElementById("checkout_billing_address_last_name"),$addressFieldBill=document.getElementById("checkout_billing_address_address1"),$apartmentFieldBill=document.getElementById("checkout_billing_address_address2"),$cityFieldBill=document.getElementById("checkout_billing_address_city"),$zipFieldBill=document.getElementById("checkout_billing_address_zip"),$phoneFieldBill=document.getElementById("checkout_billing_address_phone");$firstNameBill&&($firstNameBill.maxLength=maxCharName,$lastNameBill.maxLength=maxCharName,$addressFieldBill.maxLength=maxCharAddress,$apartmentFieldBill.maxLength=maxCharAddress,$cityFieldBill.maxLength=maxCharAddress,$zipFieldBill.maxLength=maxCharAddress,$phoneFieldBill.maxLength=maxCharAddress)}document.addEventListener("keydown",setShippingAddressCharLimits),document.addEventListener("keydown",setBillingAddressCharLimits),typeof cartGWP<"u"&&document.addEventListener("DOMContentLoaded",()=>{cartGWP(!0)});const searchClearDesktop=document.getElementById("searchClear");searchClearDesktop&&(searchClearDesktop.onclick=function(){$(".Search__Form__Desktop .searchBox").val("")}
1);function returnCartFocus(){const addBtn=document.getElementById("cartBtn"),sideCart=document.getElementById("sidebar-cart"),cartClose=document.getElementById("cartClose");addBtn&&addBtn.addEventListener("click",()=>{const previousActiveElement=document.activeElement;sideCart.getAttribute("aria-hidden")==="false"&&(cartClose.onclick=function(){previousActiveElement.focus()})})}returnCartFocus();function variantOptionCheck(){const variantOptions=document.querySelectorAll(".js-option"),addToCartButton=document.getElementById("cartBtn"),addToCartMessage=document.getElementById("pmAddToCartMessage");variantOptions.forEach(inputEl=>{if(inputEl.checked){addToCartButton&&addToCartButton.classList.remove("disabled"),addToCartMessage&&addToCartMessage.classList.remove("show-message"),console.log("REMOVED DISABLED");var sizeValue=inputEl.value||inputEl.getAttribute("data-size-input")||"";console.log("sizeValue: ",sizeValue),$("#selectedSizeDisplay").text(sizeValue)}inputEl.addEventListener("click",()=>{addToCartButton.classList.remove("disabled"),addToCartMessage.classList.remove("show-message")})})}variantOptionCheck();function trapFocus(element){const focusableEls=element.querySelectorAll("a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled])");let length=Object.keys(focusableEls).length;for(;focusableEls[length-1].offsetParent===null;)delete focusableEls[length-1],length-=1;const firstFocusableEl=focusableEls[0],lastFocusableEl=focusableEls[length-1];
1firstFocusableEl.focus();function addEvent(e){(e.key==="Tab"||e.keyCode===9)&&(e.shiftKey&&document.activeElement===firstFocusableEl?(lastFocusableEl.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===lastFocusableEl&&(firstFocusableEl.focus(),e.preventDefault()))}element.addEventListener("keydown",addEvent)}function estimateShip(){const estimate=document.getElementById("estimateShipping");estimate?.addEventListener("click",()=>{setTimeout(()=>{const results=document.querySelector(".ShippingEstimator__ResultsInner"),errorList=document.querySelector(".Alert__ErrorList"),estimateErr=document.querySelector(".js-error-item");errorList&&errorList.setAttribute("role","presentation"),estimateErr&&estimateErr.focus(),results&&(results.innerHTML=results.innerHTML.replace("<p>","<h3>"),results.innerHTML=results.innerHTML.replace("</p>","</h3>"))},2e3)})}estimateShip();function imageFocus(){const dotButtons=document.querySelectorAll(".js-image-focus");if(dotButtons.length>0)for(let i=0;i<dotButtons.length;i+=1)dotButtons[i].addEventListener("click",()=>{const imageLink=dotButtons[i].getAttribute("href").substring(1),focusImage=document.getElementById(imageLink);focusImage.setAttribute("tabindex","-1"),focusImage.focus()})}imageFocus();function skipToContent(){const skipBtn=document.getElementById("skipToContent");if(skipBtn){const skipToLink=document.getElementById(skipBtn.getAttribute("href").substring(1));skipBtn.addEventListener("click",()=>{skipToLink.setAttribute("tabindex","-1"),skipToLink.focus()})}}skipToContent();function quickViewCheckLowStock(selectedVariant){var variantId=selectedVariant.id,lowStockElements=document.querySelectorAll(".lowStock");lowStockElements.length>0&&lowStockElements.forEach(elem=>{elem.style.display="none"});var lowStockElement=document.querySelectorAll('[data-lowStockId="'+variantId+'"]');lowStockElement!=null&&lowStockElement.length>0&&(lowStockElement[0].style.display="block");var notifyMeElements=document.querySelectorAll(".notifyMe");notifyMeElements.length>0&&notifyMeElements.forEach(elem=>{elem.style.display="none"});var isNotifyMe=$("#isNotifyMe").val();if(isNotifyMe==1&&selectedVariant.available==0){var notifyMeElement=document.querySelectorAll('[data-notifyMeId="'+variantId+'"]');if(notifyMeElement!=null&&notifyMeElement.length>0){notifyMeElement[0].style.display="block";var href=$(notifyMeElement).find("a").attr("href");setTimeout(function(){var html='<a href="'+href+'">NOTIFY ME</a>';$("#boost-pfs-quickview-cart-btn-text").html(html)},100)}}}jQuery(window).on("load",function(){window.location.pathname=="/collections/all-shoes"&&window.location.search==""&&jQuery(".boost-pfs-filter-tree-mobile-button button").click(),window.location.pathname=="/collections/archive-sale"&&window.location.search.includes("bysize=1")&&jQuery(".boost-pfs-filter-tree-mobile-button button").click(),window.location.pathname=="/collections/july4"&&window.location.search.includes("bysize=1")&&jQuery(".boost-pfs-filter-tree-mobile-button button").click(),window.location.pathname=="/collections/end-of-summer-event-2026"&&window.location.search.includes("bysize=1")&&jQuery(".boost-pfs-filter-tree-mobile-button button").click(),jQuery("main").on("click",".boost-pfs-filter-tree-desktop-button",function(){jQuery(".boost-pfs-filter-tree-mobile-button button").click()}),jQuery(".boost-pfs-filter-right-col").on("click touchstart",".quick-add",function(evt){if(evt.preventDefault(),evt.stopPropagation(),evt.stopImmediatePropagation(),evt.type==="touchstart"){const $this=jQuery(this);return $this.data("touch-handled",!0),$this.data("touch-moved",!1),$this.on("touchmove.quickview",function(moveEvt){const touch=moveEvt.originalEvent.touches[0],elementFromPoint=document.elementFromPoint(touch.clientX,touch.clientY);!$this.is(elementFromPoint)&&!$this.has(elementFromPoint).length&&$this.data("touch-moved",!0)}),$this.one("touchend",function(e){return e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),$this.off("touchmove.quickview"),$this.data("touch-moved")||$this.parent().parent().find(".boost-pfs-quickview-btn").click(),!1}),!1}
1else evt.type==="click"&&!jQuery(this).data("touch-handled")&&jQuery(this).parent().parent().find(".boost-pfs-quickview-btn").click();return jQuery(this).data("touch-handled",!1),!1}),jQuery(".product-detail-list .list-product-details p.read-more-meta").click(function(){var parentElement=jQuery(this).parent();parentElement.toggleClass("active"),parentElement.hasClass("active")?jQuery(this).text("View less"):jQuery(this).text("Read more")}),jQuery(".pdp-accordion h2 span").click(function(){var $accordion=jQuery(this).closest(".pdp-accordion");jQuery(".pdp-accordion").not($accordion).removeClass("active"),$accordion.toggleClass("active")})}),jQuery(".mobile-product-slider").on("init reInit afterChange",function(event,slick){slick.$dots.find("li button").removeAttr("aria-current"),slick.$dots.find("li.slick-active button").attr("aria-current","true")}),jQuery(".mobile-product-slider").slick({dots:!0,arrows:!1,infinite:!0,centerMode:!1,slidesToShow:1,initialSlide:0,lazyLoad:"ondemand",responsive:[{breakpoint:700,settings:{slidesToShow:1,initialSlide:0,dots:!0,arrows:!1,infinite:!0,centerMode:!1}},{breakpoint:500,settings:{slidesToShow:1,initialSlide:0,dots:!0,arrows:!1,infinite:!0,centerMode:!1}}]});function detectSlickDots(){new MutationObserver(mutationsList=>{mutationsList.forEach(mutation=>{mutation.target.nodeType===1&&mutation.target.classList?.contains("slick-initialized")&&document.querySelectorAll(".slick-dots").forEach($dots=>{$dots.setAttribute("tabindex","0"),$dots.querySelectorAll("li").forEach($dot=>{$dot.setAttribute("tabindex","0"),$dot.addEventListener("keydown",e=>{const $dotBtn=e.target.querySelector("button");e.key==="Enter"&&$dotBtn.click()})})})})}).observe(document.querySelector("body"),{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]})}detectSlickDots();function detectActiveDot(){const $activeDot=document.querySelector(".js-index-carousel");$activeDot&&$activeDot.querySelectorAll(".dot").forEach(dot=>{_.hasClass(dot,"is-selected")?dot.setAttribute("aria-current",!0):dot.removeAttribute("aria-current"),dot.addEventListener("transitionend",()=>{_.hasClass(dot,"is-selected")?dot.setAttribute("aria-current",!0):dot.removeAttribute("aria-current")})})}detectActiveDot(),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('.swiffy-slider[data-section-name="Newest Releases"]').forEach(sli
1der=>{const slides=slider.querySelectorAll(".slider-container > div");let currentIndex=0;function updateAccessibilityAttributes(){slides.forEach((slide,index)=>{let isVisible=index>=currentIndex&&index<currentIndex+3;slide.setAttribute("aria-hidden",String(!isVisible)),slide.setAttribute("aria-current",isVisible?"true":"false"),slide.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])').forEach(el=>{el.setAttribute("tabindex",isVisible?"0":"-1")})})}const nextButton=slider.querySelector(".slider-nav-next"),prevButton=slider.querySelector(".slider-nav"),sliderWrapper=slider.querySelector(".slider-indicators"),sliderNav=slider.querySelectorAll(".slider-indicators > li");nextButton.addEventListener("click",()=>{currentIndex<slides.length-3&&(currentIndex+=1),updateAccessibilityAttributes()}),prevButton.addEventListener("click",()=>{currentIndex>0&&(currentIndex-=1),updateAccessibilityAttributes()}),updateAccessibilityAttributes(),new MutationObserver(()=>{sliderNav.forEach(li=>{const button=li.querySelector("button");button.removeAttribute("aria-current"),li.classList.contains("active")&&button.setAttribute("aria-current","true")})}).observe(sliderWrapper,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class"]})})}),(function(){$(window).on("scroll",function(){$(this).scrollTop()>=53?$("body").addClass("stickyscroll"):$("body").removeClass("stickyscroll")})})(),(function(){$(".AnnouncementBar__Slide").on("click","#attn_ann",function(){window.innerWidth>=760?window.__attentive.trigger(null,null,null,350971):window.__attentive.trigger(null,null,null,350967)})})(),(function(){var goTopBtn=document.querySelector(".back-to-top");function trackScroll(){window.pageYOffset>300?(goTopBtn.classList.add("showbtt"),goTopBtn.disabled=!1):(goTopBtn.classList.remove("showbtt"),goTopBtn.disabled=!0)}function backToTop(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"});const main=document.getElementById("main");main&&main.focus()}window.addEventListener("scroll",trackScroll),goTopBtn.addEventListener("click",backToTop),goTopBtn.addEventListener("keydown",function(e){(e.key===" "||e.key==="Spacebar"||e.key==="Enter")&&(e.preventDefault(),backToTop(e))})})(),jQuery(document).ready(function(){function updateSlickSlideFocus($slider){$slider.find(".slick-slide").each(function(){var $slide=jQuery(this),isHidden=$slide.attr("aria-hidden")==="true";isHidden?$slide.attr("tabindex",-1):$slide.removeAttr("tabindex"),$slide.find("a, button, input, select, textarea, [tabindex]").each(function(){isHidden?jQuery(this).attr("tabindex",-1):jQuery(this).removeAttr("tabindex")})})}jQuery(".slick-slider").each(function(){var $slider=jQuery(this);$slider.on("afterChange.slickADA",function(){setTimeout(function(){updateSlickSlideFocus($slider)},$slider.slick("slickGetOption","speed")||300)}),updateSlickSlideFocus($slider)})}),(function(){var sidebarCart=document.getElementById("sidebar-cart");if(sidebarCart){var previousValue=sidebarCart.getAttribute("aria-hidden");new MutationObserver(function(){var currentValue=sidebarCart.getAttribute("aria-hidden"),prev=previousValue;if(previousValue=currentValue,currentValue==="false"&&prev==="true"){var overlay=document.querySelector(".PageOverlay");(!overlay||!overlay.classList.contains("is-visible"))&&sidebarCart.setAttribute("aria-hidden","true")}}).observe(sidebarCart,{attributes:!0,attributeFilter:["aria-hidden"]})}})();
2//# sourceMappingURL=/cdn/shop/t/2/assets/custom.js.map?v=19604217717141908181788442642

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.