PageSourceSearch

https://shop.varsity.com/cdn/shop/t/205/assets/custom.js?v=125709215513038750701787605342

js varsity.com collected 2026-09-24 09:23:50 UTC 5,545 bytes, 2 lines download raw bytes

1function initMobileFooterAccordion(){window.innerWidth<=1024?document.querySelectorAll(".footer-main .links-footer, .footer-main .social-media-footer").forEach(function(section){const header=section.querySelector(".footer-header");header&&!header.hasAttribute("data-accordion-initialized")&&(header.setAttribute("data-accordion-initialized","true"),header.addEventListener("click",function(){section.classList.toggle("active")}))}):document.querySelectorAll(".footer-main .links-footer, .footer-main .social-media-footer").forEach(function(section){section.classList.remove("active");const header=section.querySelector(".footer-header");header&&header.removeAttribute("data-accordion-initialized")})}document.addEventListener("DOMContentLoaded",function(){initMobileFooterAccordion()});let resizeTimer;window.addEventListener("resize",function(){clearTimeout(resizeTimer),resizeTimer=setTimeout(function(){initMobileFooterAccordion()},250)});const observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){mutation.addedNodes.length&&initMobileFooterAccordion()})});document.body&&observer.observe(document.body,{childList:!0,subtree:!0}),document.addEventListener("DOMContentLoaded",function(){const hideUnavailablePickup=()=>{document.querySelectorAll("div.store-availability-information").forEach(availability=>{const titleElement=availability.querySelector("p.store-availability-information__title");titleElement&&titleElement.textContent.trim().includes("Pickup currently unavailable")&&(availability.style.display="none")})};hideUnavailablePickup(),new MutationObserver(()=>{hideUnavailablePickup()}).observe(document.body,{childList:!0,subtree:!0})}),document.addEventListener("click",function(e){const btn=e.target.closest(".vs-share__copy-btn");if(!btn)return;const url=btn.getAttribute("data-copy-url"),feedback=btn.parentElement.querySelector(".vs-share__copy-feedback");navigator.clipboard.writeText(url).then(function(){feedback&&(feedback.textContent="Copied!",feedback.classList.add("is-visible"),setTimeout(function(){feedback.classList.remove("is-visible")},2e3))})}),document.addEventListener("DOMContentLoaded",function(){const configEl=document.querySelector("[data-toc-config]"),intro=document.querySelector(".vs-blog-article__intro");if(!configEl||!intro)return;let config;try{config=JSON.parse(configEl.textContent)}catch{return}const headings=document.querySelectorAll(".vs-blog-article__content h2"),faqItems=document.querySelectorAll(".vs-faq__item"),faqHeadingEl=document.querySelector(".vs-faq__heading");if(!headings.length&&!faqItems.length)return;const usedSlugs={};function slugify(text){let base=text.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),slug=base,counter=2;for(;usedSlugs[slug];)slug=base+"-"+counter,counter++;return usedSlugs[slug]=!0,slug}const scrollOffsetCalc="calc(var(--sticky-header-desktop-height, 0px) + var(--sticky-header-mobile-height, 0px) + "+config.scrollOffset+"px)",listItemsHTML=[];
1if(headings.forEach(function(heading){heading.id||(heading.id=slugify(heading.textContent)),heading.style.scrollMarginTop=scrollOffsetCalc,listItemsHTML.push('<li><a href="#'+heading.id+'">'+heading.textContent+"</a></li>")}),faqItems.length){const faqTopicLabel=faqHeadingEl?faqHeadingEl.textContent:"Frequently Asked Questions",faqTopicId=faqHeadingEl&&faqHeadingEl.id?faqHeadingEl.id:"faq-heading",subItemsHTML=[];faqItems.forEach(function(item){const questionEl=item.querySelector(".vs-faq__question");questionEl&&(item.id||(item.id=slugify(questionEl.textContent)),item.style.scrollMarginTop=scrollOffsetCalc,subItemsHTML.push('<li><a href="#'+item.id+'" data-toc-faq-link>'+questionEl.textContent+"</a></li>"))}),listItemsHTML.push('<li><a href="#'+faqTopicId+'">'+faqTopicLabel+'</a><ul class="vs-toc__sublist">'+subItemsHTML.join("")+"</ul></li>")}const triggerHTML='<button type="button" class="vs-toc-trigger" aria-haspopup="dialog" data-toc-open><span class="vs-toc-trigger__icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="14" y2="18"/></svg></span><span>'+config.heading+"</span></button>",dialogHTML='<dialog class="vs-toc-dialog" data-toc-dialog><div class="vs-toc-dialog__inner"><div class="vs-toc-dialog__header"><span class="vs-toc-dialog__heading">'+config.heading+'</span><button type="button" class="vs-toc-dialog__close" data-toc-close aria-label="Close">&times;</button></div><div class="vs-toc-dialog__body"><ol class="vs-toc__list">'+listItemsHTML.join("")+"</ol></div></div></dialog>";intro.insertAdjacentHTML("afterend",triggerHTML+dialogHTML);const triggerEl=document.querySelector("[data-toc-open]"),dialogEl=document.querySelector("[data-toc-dialog]"),closeEl=dialogEl.querySelector("[data-toc-close]");triggerEl.addEventListener("click",function(){dialogEl.showModal()}),closeEl.addEventListener("click",function(){dialogEl.close()}),dialogEl.addEventListener("click",function(e){e.target===dialogEl&&dialogEl.close()}),dialogEl.querySelectorAll("a").forEach(function(link){link.addEventListener("click",function(){if(link.hasAttribute("data-toc-faq-link")){const targetId=link.getAttribute("href").slice(1),targetEl=document.getElementById(targetId);targetEl&&targetEl.tagName==="DETAILS"&&(targetEl.open=!0)}dialogEl.close()})})});
2//# sourceMappingURL=/cdn/shop/t/205/assets/custom.js.map?v=125709215513038750701787605342

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.