PageSourceSearch

https://www.altrarunning.com/cdn/shop/t/85/assets/faq-seo-json.CNtVotTI.min.js

js altrarunning.com collected 2026-09-27 21:39:32 UTC 982 bytes, 1 lines download raw bytes

1class u extends HTMLElement{constructor(){super(),this.questionRegex=/^[q]\.?\s*:\s*/i,this.answerRegex=/^[ars]\.?\s*:\s*/i}connectedCallback(){this.buildFaqSchema()}buildFaqSchema(){const r=this.querySelectorAll("p:has(strong)"),e=[];if(r.forEach(n=>{const i=n.querySelector("strong").textContent.trim();if(!this.questionRegex.test(i))return;const c=n.textContent.trim().replace(this.questionRegex,""),s=n.nextElementSibling;if(!s||s.tagName!=="P")return;const o=s.textContent.trim();if(!this.answerRegex.test(o))return;const l=o.replace(this.answerRegex,"");e.push({"@type":"Question",name:c,acceptedAnswer:{"@type":"Answer",text:l}})}),e.length===0)return;const a={"@context":"https://schema.org","@type":"FAQPage",mainEntity:e},t=document.createElement("script");t.type="application/ld+json",t.textContent=JSON.stringify(a),this.insertAdjacentElement("afterend",t)}}const m=()=>{customElements.get("faq-seo-json")||customElements.define("faq-seo-json",u)};export{m as default};

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.