PageSourceSearch

https://relentlessathleticsllc.com/wp-content/cache/perfmatters/re…/minify/3e5dd7053eff.main.min.js?ver=1.2.1

js relentlessathleticsllc.com collected 2026-10-08 03:27:44 UTC 16,467 bytes, 22 lines download raw bytes

1const HeaderHeight={init(){this.update();this.bindEvents()},update(){const header=document.querySelector('.header-wrapper');if(header){document.documentElement.style.setProperty('--header-height',header.offsetHeight+'px')}},bindEvents(){let timer;window.addEventListener('resize',()=>{clearTimeout(timer);timer=setTimeout(()=>this.update(),250)},{passive:!0})}};document.addEventListener('DOMContentLoaded',()=>HeaderHeight.init());document.addEventListener('DOMContentLoaded',()=>{const $=(s,r=document)=>r.querySelector(s);const $$=(s,r=document)=>Array.from(r.querySelectorAll(s));const isMobile=window.matchMedia("(max-width: 768px)").matches;$$('.program-goals-section').forEach(section=>{let currentLayer,fadeLayer,swapBackground=()=>{};if(!isMobile){const overlay=$('.hover-bg-overlay',section);if(overlay){currentLayer=overlay.querySelector('.bg-current')||overlay.appendChild(Object.assign(document.createElement('div'),{className:'bg-current'}));fadeLayer=overlay.querySelector('.bg-fade')||overlay.appendChild(Object.assign(document.createElement('div'),{className:'bg-fade'}))}
2let fading=!1;fadeLayer&&fadeLayer.addEventListener('transitionend',()=>{if(getComputedStyle(fadeLayer).opacity==='1'){currentLayer.style.backgroundImage=fadeLayer.style.backgroundImage;fadeLayer.style.opacity=0;fading=!1}});
2swapBackground=(url)=>{if(!overlay||!url||fading)return;fading=!0;fadeLayer.style.backgroundImage=`url(${url})`;void fadeLayer.offsetWidth;fadeLayer.style.opacity=1}}
3$$('.pg-accordion',section).forEach((acc)=>{const items=$$('.pg-item',acc);const heights=new WeakMap();const cacheHeight=(el)=>heights.set(el,el.scrollHeight);const preloadHeights=()=>{items.forEach(it=>{const cnt=$('.pg-content',it);if(!cnt)return;const wasOpen=it.classList.contains('is-open');const prev=cnt.style.transition;cnt.style.transition='none';it.classList.add('is-open');cnt.style.height='auto';void cnt.offsetHeight;cacheHeight(cnt);if(!wasOpen){it.classList.remove('is-open');cnt.style.height='0px'}else{cnt.style.height=heights.get(cnt)+'px'}
4cnt.style.transition=prev})};const ensureOneOpen=()=>{let openItem=$('.pg-item.is-open',acc)||items[0];if(openItem&&!openItem.classList.contains('is-open'))openItem.classList.add('is-open');if(openItem){const cnt=$('.pg-content',openItem);const btn=$('.pg-button',openItem);cnt.style.height=(heights.get(cnt)||cnt.scrollHeight)+'px';if(btn)btn.setAttribute('aria-expanded','true');if(!isMobile){const bg=btn&&btn.dataset.bg;if(bg&&currentLayer)currentLayer.style.backgroundImage=`url(${bg})`}}};items.forEach(it=>{const btn=$('.pg-button',it);const cnt=$('.pg-content',it);if(!it.classList.contains('is-open')){if(btn)btn.setAttribute('aria-expanded','false');if(cnt)cnt.style.height='0px'}});if(!isMobile){const urls=new Set();$$('.pg-button[data-bg]',acc).forEach(b=>{const u=b.dataset.bg;if(u)urls.add(u);});urls.forEach(u=>{const img=new Image();img.src=u})}
5setTimeout(()=>{preloadHeights();ensureOneOpen()},100);acc.addEventListener('click',(e)=>{const btn=e.target.closest('.pg-button');if(!btn)return;const item=btn.closest('.pg-item');if(item.classList.contains('is-open'))return;items.forEach(o=>{if(o!==item){o.classList.remove('is-open');$('.pg-button',o)?.setAttribute('aria-expanded','false');$('.pg-content',o).style.height='0px'}});item.classList.add('is-open');btn.setAttribute('aria-expanded','true');const cnt=$('.pg-content',item);cnt.style.height=(heights.get(cnt)||cnt.scrollHeight)+'px';if(!isMobile)swapBackground(btn.dataset.bg);});window.addEventListener('resize',()=>{acc.style.height='auto';acc.style.overflow='visible';preloadHeights();const openCnt=$('.pg-item.is-open .pg-content',acc);if(openCnt)openCnt.style.height=(heights.get(openCnt)||openCnt.scrollHeight)+'px'})})})});document.addEventListener("DOMContentLoaded",function(){const elements=document.querySelectorAll(".moving-text");if(!elements.length)return;elements.forEach(function(el){const baseText=el.getAttribute("data-text");if(!baseText)return;let repeated="";while((repeated.length*10)<(window.innerWidth*2)){repeated+=baseText}
6el.textContent=repeated+repeated;if(el.classList.contains('is-animated')){el.style.animation="none";void el.offsetWidth;el.style.animation=""}})});document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".description-wrapper .description-content").forEach(container=>{const content=container.querySelector(".full-content");const btn=container.querySelector(".read-more-btn");if(!content||!btn)return;requestAnimationFrame(()=>{const fullHeight=content.scrollHeight;content.style.setProperty('--full-height',fullHeight+'px');content.classList.add('truncated-content');container.classList.add('has-truncation');const overlay=document.createElement('div');overlay.className='read-more-overlay';content.appendChild(overlay);let expanded=!1;btn.onclick=()=>{expanded=!expanded;content.classList.toggle('truncated-content',!expanded);content.classList.toggle('expanded-content',expanded);container.classList.toggle('has-truncation',!expanded);overlay.classList.toggle('hidden',expanded);btn.textContent=expanded?'Read Less':'Read More'}})})});document.addEventListener('DOMContentLoaded',function(){function toggleAccordion(button){const content=button.nextElementSibling;const sign=button.querySelector('.accordion-sign');const parentItem=button.closest('.accordion-item');const isExpanded=button.getAttribute('aria-expanded')==='true';document.querySelectorAll('.accordion-button').forEach((btn)=>{btn.setAttribute('aria-expanded','false');btn.querySelector('.accordion-sign').classList.remove('open');btn.nextElementSibling.style.height='0'});if(!isExpanded){button.setAttribute('aria-expanded','true');content.style.height=content.scrollHeight+'px';sign.classList.add('open')}}
7document.querySelectorAll('.accordion-button').forEach((button)=>{button.addEventListener('click',function(){toggleAccordion(this)})})});document.addEventListener("DOMContentLoaded",function(){const bar=document.querySelector(".mobile-floating-bar");if(!bar)return;let ticking=!1;function toggleFloatingBar(){const scrollPosition=window.scrollY+window.innerHeight;const pageHeight=document.documentElement.scrollHeight;if(scrollPosition>
7=pageHeight-20){bar.classList.add("hidden")}else{bar.classList.remove("hidden")}
8ticking=!1}
9function requestTick(){if(!ticking){requestAnimationFrame(toggleFloatingBar);ticking=!0}}
10toggleFloatingBar();window.addEventListener("scroll",requestTick,{passive:!0})});function fitHeroTexts(selector,parentSelectors=['.hero','.lead-magnet-section','.pages-section','.accordion-section','.text-with-image-section','.classes-section','.program-goals-section','.embed-code-section','.text-image-section','.coaches-section','.free-intro-section','.related-posts-section','.job-position-section','.coach-hero','.case-study-cta']){const elements=document.querySelectorAll(selector);if(!elements.length)return;const viewportWidth=window.innerWidth||document.documentElement.clientWidth;elements.forEach(el=>{let parent=null;for(const sel of parentSelectors){parent=el.closest(sel);if(parent)break}
11if(!parent)return;el.style.fontSize='15vw';el.style.bottom='0';el.classList.remove('ready');const rect=el.getBoundingClientRect();if(!rect.width)return;const maxWidth=viewportWidth*0.9;let newSize=parseFloat(window.getComputedStyle(el).fontSize);if(rect.width>maxWidth){const scale=maxWidth/rect.width;newSize=Math.max(10,newSize*scale);el.style.fontSize=newSize+'px'}
12const parentRect=parent.getBoundingClientRect();const parentHeight=parentRect.height||parent.offsetHeight;const textHeight=el.offsetHeight;let hiddenPart=Math.min(textHeight*0.2,parentHeight*0.2);const adminBar=document.querySelector('#wpadminbar');if(adminBar)hiddenPart+=32;el.style.bottom=`-${hiddenPart}px`;el.classList.add('ready')})}
13function throttle(fn,wait){let timeout=null;return function(){if(timeout)return;timeout=setTimeout(()=>{fn();timeout=null},wait)}}
14window.addEventListener('load',()=>{fitHeroTexts('.outlined-text')});window.addEventListener('resize',throttle(()=>{fitHeroTexts('.outlined-text')},150));jQuery(function($){$('.gallery-section').each(function(){const $section=$(this);const $modal=$section.find('.gallery-lightbox');const $img=$modal.find('#gallery-lightbox-img');const $html=$('html');const $loadMoreBtn=$section.find('.gallery-load-more');const $mobileScroll=$section.find('.gallery-scroll');const $progressBar=$section.find('.gallery-progress');const $swipeHint=$section.find('.gallery-swipe-hint');let currentImageIndex=0;let currentLinksArray=[];if($mobileScroll.length&&$progressBar.length){$mobileScroll.on('scroll',function(){const scrollLeft=this.scrollLeft;const scrollWidth=this.scrollWidth-this.clientWidth;const scrollPercent=scrollWidth>0?(scrollLeft/scrollWidth)*100:0;$progressBar.css('width',Math.min(100,Math.max(0,scrollPercent))+'%');if(scrollLeft<=10){$swipeHint.removeClass('hidden')}else{$swipeHint.addClass('hidden')}})}
15if($loadMoreBtn.length){$loadMoreBtn.on('click',function(e){e.preventDefault();const $itemsToShow=$section.find('.gallery-item-hidden').slice(0,9);$itemsToShow.each(function(index){const $item=$(this);setTimeout(()=>{$item.removeClass('gallery-item-hidden').addClass('fade-in');setTimeout(()=>{const remainingCount=$section.find('.gallery-item-hidden').length;if(remainingCount<=0){$loadMoreBtn.closest('.gallery-load-more-wrapper').fadeOut(300)}},100)},index*50)})})}
16function openLightbox(index,linksArray){currentImageIndex=index;currentLinksArray=linksArray;$img.attr('src',currentLinksArray[currentImageIndex].href);$html.addClass('is-clipped');$modal.addClass('is-active')}
17function closeLightbox(){$modal.removeClass('is-active');$html.removeClass('is-clipped');$img.attr('src','')}
18function navigateLightbox(delta){currentImageIndex=(currentImageIndex+delta+currentLinksArray.length)%currentLinksArray.length;$img.attr('src',currentLinksArray[currentImageIndex].href)}
19function getCurrentLinks(){const isMobile=$section.find('.gallery-scroll-container').is(':visible');if(isMobile){return $section.find('.gallery-scroll-container a.mobile-lightbox').toArray()}else{return $section.find('.gallery-block .gallery-item:not(.gallery-item-hidden) a.simple-lightbox').toArray()}}
20$section.on('click','a.simple-lightbox, a.mobile-lightbox',function(e){e.preventDefault();const allLinks=getCurrentLinks();const clickedIndex=allLinks.indexOf(this);if(clickedIndex!==-1){openLightbox(clickedIndex,allLinks)}});$modal.on('click','.modal-background, .lightbox-close',function(e){e.stopPropagation();closeLightbox()});$modal.on('click','.glb-prev',function(e){e.stopPropagation();navigateLightbox(-1)});$modal.on('click','.glb-next',function(e){e.stopPropagation();navigateLightbox(1)});$(document).on('keydown',function(e){if(!$modal.hasClass('is-active'))return;if(e.key==='Escape')closeLightbox();if(e.key==='ArrowLeft')navigateLightbox(-1);if(e.key==='ArrowRight')navigateLightbox(1);})})});document.addEventListener('DOMContentLoaded',function(){const mobileMenu=document.querySelector('#ast-hf-mobile-menu');if(mobileMenu){mobileMenu.addEventListener('click',(e)=>{const button=e.target;const expanded=button.getAttribute('aria-expanded')==='true';button.setAttribute('aria-expanded',!expanded)})}});document.addEventListener('DOMContentLoaded',function(){const header=document.querySelector('#masthead');if(!header)return;function handleScroll(){if(window.scrollY>0){header.classList.add('scrolled')}else{header.classList.remove('scrolled')}}
21window.addEventListener('scroll',handleScroll);handleScroll()});
21jQuery(document).ready(function($){$('.ast-builder-menu-mobile .main-navigation .menu-item-has-children > .ast-menu-toggle').on('click',function(e){e.preventDefault();e.stopPropagation();var $parent=$(this).parent();var $submenu=$parent.children('.sub-menu');if($parent.hasClass('open')){$submenu.stop(!0,!0).slideUp(300);$parent.removeClass('open')}else{$submenu.stop(!0,!0).slideDown(300);$parent.addClass('open')}})});function alignLineContainers(){if(window.innerWidth<768)return;document.querySelectorAll('.text-with-image-section').forEach(section=>{const heading=section.querySelector('.text-content h2');const imageContainer=section.querySelector('.image-container');const line=imageContainer?.querySelector('.line-container, .line-container-reverse');if(heading&&imageContainer&&line){line.style.top='0';const imageTop=imageContainer.getBoundingClientRect().top+window.scrollY;const headingBox=heading.getBoundingClientRect();const headingTop=headingBox.top+window.scrollY;const headingHeight=headingBox.height;const visualMiddle=(headingTop-imageTop)+(headingHeight/2)-10;line.style.position='absolute';line.style.top=`${visualMiddle}px`}});document.querySelectorAll('.coach-hero').forEach(section=>{const heading=section.querySelector('.coach-name');const imageContainer=section.querySelector('.desktop-images');const line=imageContainer?.querySelector('.line-container');if(heading&&imageContainer&&line){const imageTop=imageContainer.getBoundingClientRect().top+window.scrollY;const headingBox=heading.getBoundingClientRect();const headingTop=headingBox.top+window.scrollY;const headingHeight=headingBox.height;const visualMiddle=(headingTop-imageTop)+(headingHeight/2)-5;line.style.position='absolute';line.style.top=`${visualMiddle}px`}});document.querySelectorAll('.single-event-who').forEach(section=>{const heading=section.querySelector('.event-who-text h2');const imageContainer=section.querySelector('.event-who-media');const line=imageContainer?.querySelector('.line-container, .line-container-reverse');if(heading&&imageContainer&&line){line.style.top='0';const imageTop=imageContainer.getBoundingClientRect().top+window.scrollY;const headingBox=heading.getBoundingClientRect();const headingTop=headingBox.top+window.scrollY;const headingHeight=headingBox.height;const visualMiddle=(headingTop-imageTop)+(headingHeight/2)-5;line.style.position='absolute';line.style.top=`${visualMiddle}px`}});document.querySelectorAll('.case-study-cta').forEach(section=>{const heading=section.querySelector('.case-study-cta-content h1, .case-study-cta-content h2, .case-study-cta-content h3');const imageContainer=section.querySelector('.case-study-cta-media');const line=imageContainer?.querySelector('.line-container, .line-container-reverse');if(heading&&imageContainer&&line){line.style.top='0';const imageTop=imageContainer.getBoundingClientRect().top+window.scrollY;const headingBox=heading.getBoundingClientRect();const headingTop=headingBox.top+window.scrollY;const headingHeight=headingBox.height;const visualMiddle=(headingTop-imageTop)+(headingHeight/2)-5;line.style.position='absolute';line.style.top=`${visualMiddle}px`}})}
22document.addEventListener("DOMContentLoaded",alignLineContainers);window.addEventListener("resize",()=>{requestAnimationFrame(alignLineContainers)});document.addEventListener('DOMContentLoaded',function(){const nameItems=document.querySelectorAll('.coach-name-item');const slides=document.querySelectorAll('.coach-slide');let hoverTimeout=null;const HOVER_DELAY=150;nameItems.forEach(item=>{item.addEventListener('mouseenter',function(){const index=this.dataset.coachIndex;hoverTimeout=setTimeout(()=>{setActiveCoach(index)},HOVER_DELAY)});item.addEventListener('mouseleave',function(){if(hoverTimeout){clearTimeout(hoverTimeout);hoverTimeout=null}});item.addEventListener('click',function(){const index=this.dataset.coachIndex;setActiveCoach(index)})});function setActiveCoach(index){nameItems.forEach(item=>{item.classList.remove('is-active');if(item.dataset.coachIndex===index){item.classList.add('is-active')}});
22slides.forEach(slide=>{slide.classList.remove('is-active');if(slide.dataset.coachIndex===index){slide.classList.add('is-active')}})}});document.addEventListener('DOMContentLoaded',function(){document.querySelectorAll('.footer-quick-links-menu .menu-item-has-children').forEach(function(item){var subMenu=item.querySelector(':scope > .sub-menu');if(!subMenu)return;subMenu.style.height='0';subMenu.style.opacity='0';subMenu.style.transform='translateY(-6px)';subMenu.style.transition='height 0.4s ease, opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s';item.addEventListener('mouseenter',function(){subMenu.style.height=subMenu.scrollHeight+'px';subMenu.style.opacity='1';subMenu.style.transform='translateY(0)'});item.addEventListener('mouseleave',function(){subMenu.style.height='0';subMenu.style.opacity='0';subMenu.style.transform='translateY(-6px)'})})})

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.