PageSourceSearch

https://quitwithjones.com/cdn/shop/t/199/assets/a11y.js?v=13680759074104280971787843209

js quitwithjones.com collected 2026-10-02 14:39:53 UTC 8,463 bytes, 2 lines download raw bytes

1document.addEventListener("DOMContentLoaded",()=>{function getFocusableElements(container){return Array.from(container.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(element=>!element.hasAttribute("disabled"))}function trapFocus(element){const modal=element,focusableElements=getFocusableElements(modal),firstFocusableElement=focusableElements[0],lastFocusableElement=focusableElements[focusableElements.length-1];modal.addEventListener("keydown",function(e){e.key==="Tab"&&(e.shiftKey?document.activeElement===firstFocusableElement&&(e.preventDefault(),lastFocusableElement.focus()):document.activeElement===lastFocusableElement&&(e.preventDefault(),firstFocusableElement.focus()))}),modal.hasAttribute("tabindex")||modal.setAttribute("tabindex","-1"),modal.focus({preventScroll:!0})}document.querySelectorAll('[role="dialog"][aria-modal="true"]').forEach(dialog=>{trapFocus(dialog)});const skipToContent=document.querySelector(".skip-to-content");if(skipToContent){const skipToAccessibility=document.createElement("a");skipToAccessibility.href="/pages/accessibility-statement",skipToAccessibility.className="skip-to-content button is-primary visually-hidden",skipToAccessibility.textContent="Skip to Accessibility Statement",skipToContent.parentNode.insertBefore(skipToAccessibility,skipToContent.nextSibling)}const mainContent=document.getElementById("mainContent");if(mainContent){const firstSection=mainContent.querySelector(".shopify-section");if(firstSection){const h2=firstSection.querySelector('h2:not([class*="card-title h4"]):not(#bloggy--article h2)');h2&&h2.setAttribute("aria-level","1")}}if(window.location.pathname==="/blogs/news/nfl-players-and-vaping"){const articleHeading=document.querySelector("#bloggy--article h2.text--1636212959945");articleHeading&&articleHeading.setAttribute("role","paragraph")}const reviewInterval=setInterval(()=>{const reviewElements=document.querySelectorAll(".kl_reviews__review__content");reviewElements.length>0&&(reviewElements.forEach(content=>{content.setAttribute("role","blockquote")}),clearInterval(reviewInterval))},100);setTimeout(()=>{clearInterval(reviewInterval)},1e4);const pages=document.querySelectorAll(".loadmore .page");pages.length>0&&(pages[0].parentElement.setAttribute("role","list"),pages.forEach(page=>{page.setAttribute("role","listitem")})),document.querySelectorAll("#mobmenu .dropdown-caret").forEach(caret=>{const details=caret.closest("details"),menu=details&&details.querySelector(":scope > details-menu");!details||!menu||caret.addEventListener("click",function(e){e.preventDefault();const willOpen=!details.hasAttribute("open");this.setAttribute("aria-expanded",willOpen);const cleanup=ev=>{ev.propertyName==="max-height"&&(menu.style.maxHeight="",willOpen||details.removeAttribute("open"),menu.removeEventListener("transitionend",cleanup))};willOpen?(details.setAttribute("open",""),menu.style.maxHeight="0px",menu.offsetHeight,menu.style.maxHeight=menu.scrollHeight+"px"):(menu.style.maxHeight=menu.scrollHeight+"px",menu.offsetHeight,menu.style.maxHeight="0px"),menu.addEventListener("transitionend",cleanup)})});const instafeedInterval=setInterval(()=>{document.querySelector(".instafeed-lightbox")&&(document.querySelectorAll(".instafeed-close-button").forEach(button=>{button.setAttribute("role","button"),button.setAttribute("aria-label","close")}),document.querySelectorAll(".instafeed-new-arrow").forEach(button=>{button.setAttribute("role","button")}),clearInterval(instafeedInterval))},100);setTimeout(()=>{clearInterval(instafeedInterval)},5e3),document.querySelectorAll(".closex").forEach(closex=>{const button=closex.querySelector("button"),detailsMenu=closex.querySelector("details-menu"),toggleMenu=()=>{closex.hasAttribute("open")?(closex.removeAttribute("open"),detailsMenu?.setAttribute("aria-hidden","true"),detailsMenu.querySelectorAll("a").forEach(link=>{link.setAttribute("tabindex","-1")})):(closex.setAttribute("open",""),detailsMenu?.setAttribute("aria-hidden","false"),detailsMenu.querySelectorAll("a").forEach(link=>{link.setAttribute("tabindex","0")})),button?.setAttribute("aria-expanded",closex.hasAttribute("open"))};if(button&&button.addEventListener("click",toggleMenu),detailsMenu){const parentLi=closex.
1closest("li"),nextSiblingLink=parentLi?.nextElementSibling?.querySelector("a"),prevSiblingLink=parentLi?.previousElementSibling?.querySelector("a"),handleFocusIn=function(){closex&&detailsMenu&&(closex.removeAttribute("open"),detailsMenu?.setAttribute("aria-hidden","true"),button?.setAttribute("aria-expanded","false"),detailsMenu.querySelectorAll("a").forEach(link=>{link.setAttribute("tabindex","-1")}))};document.addEventListener("keydown",function(e){e.key==="Escape"&&closex.hasAttribute("open")&&handleFocusIn()}),nextSiblingLink&&nextSiblingLink.addEventListener("focusin",handleFocusIn),prevSiblingLink&&prevSiblingLink.addEventListener("focusin",handleFocusIn)}}),document.querySelectorAll(".palyPauseBtn").forEach(button=>{button.addEventListener("click",function(){this.classList.toggle("paused")})});const swiperNotifications=document.querySelectorAll(".swiper-notification");swiperNotifications.length>0&&swiperNotifications.forEach(notification=>{notification.setAttribute("aria-live","polite")});const instafeedItemsInterval=setInterval(()=>{const instafeedItems=document.querySelectorAll(".instafeed-new-layout-item");instafeedItems.length>0&&(instafeedItems.forEach(item=>{const img=item.querySelector(".instafeed-lazy-image"),container=item.querySelector(".instafeed-new-layout-item-container");img&&container&&img.alt&&container.setAttribute("aria-label",`${img.alt} - opens in a popup`)}),clearInterval(instafeedItemsInterval))},100);setTimeout(()=>{clearInterval(instafeedItemsInterval)},5e3),document.querySelectorAll("bullet-marquee").forEach(marquee=>{const links=marquee.querySelectorAll(".projectile a");if(links.length>0){const firstLink=links[0],firstHref=firstLink.getAttribute("href");if(Array.from(links).every(link=>link.getAttribute("href")===firstHref&&link.textContent===firstLink.textContent)){const wrapper=document.createElement("a");wrapper.href=firstHref,wrapper.setAttribute("aria-label",firstLink.textContent),links.forEach(link=>{const fragment=document.createDocumentFragment();for(;link.firstChild;)fragment.appendChild(link.firstChild);link.parentNode.replaceChild(fragment,link)}),marquee.parentElement.replaceChild(wrapper,marquee),wrapper.appendChild(marquee)}}});const filterButtonsInterval=setInterval(()=>{const filterButtons=document.querySelectorAll(".alr-wh-comp-filter-buttons-write-review");filterButtons.length>0&&(filterButtons.forEach(element=>{element.setAttribute("role","button"),element.setAttribute("tabindex","0"),element.addEventListener("keypress",e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),element.click())})}),clearInterval(filterButtonsInterval))},100);setTimeout(()=>{clearInterval(filterButtonsInterval)},5e3);const mainFooter=document.querySelector(".main-footer");if(mainFooter){const badgeCopyContainer=mainFooter.querySelector(".footer-badge-copy .badge-copy-stack");if(badgeCopyContainer){let accessibilityLink=mainFooter.querySelector(".accessibility-badge-link");if(!accessibilityLink){accessibilityLink=document.createElement("a"),accessibilityLink.href="https://accessdesignstudio.com/",accessibilityLink.target="_blank",accessibilityLink.rel="noopener noreferrer",accessibilityLink.className="accessibility-badge-link";const accessibilityImage=document.createElement("img");accessibilityImage.src="https://cdn.shopify.com/s/files/1/0731/0458/9104/files/Accessibility_Compliance_Badge_JUL_2025.png?v=1753941839",accessibilityImage.alt="Accessibility Compliance Badge July 2025 by Access Design Studio",accessibilityImage.className="accessibility-badge-image",accessibilityLink.appendChild(accessibilityImage)}badgeCopyContainer.insertAdjacentElement("afterbegin",accessibilityLink)}const fLinksContainers=mainFooter.querySelectorAll("#f-links .f-links"),lastFLinksContainer=fLinksContainers[fLinksContainers.length-1];if(lastFLinksContainer){const newListItem=document.createElement("li");newListItem.innerHTML='<a href="https://quitwithjones.com/pages/accessibility-statement" class="no-style nav-link">Accessibility Statement</a>',lastFLinksContainer.querySelector("ul").appendChild(newListItem)}}});
2//# sourceMappingURL=/cdn/shop/t/199/assets/a11y.js.map?v=13680759074104280971787843209

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.