PageSourceSearch

https://www.bikeperfect.com/vite/assets/Slice/AuthorBio/AuthorBio.ts-DzDjxIHm.js

js bikeperfect.com collected 2026-10-02 10:32:42 UTC 2,505 bytes, 1 lines download raw bytes

1const e=e=>{var t,o,r;const a=e.querySelector(".author__biography");if(null===a)return;const n=Number.parseInt(e.dataset.authorBioMaxHeight||"100",10),l=e.dataset.authorBioReadMore||"Read more",s=e.dataset.authorBioReadLess||"Read less";if(!((window.innerWidth||document.documentElement.clientWidth||0)<768))return e.classList.remove("author--collapsed"),void(null==(t=e.querySelector(".author__toggle-button"))||t.remove());if(a.scrollHeight<=n)return e.classList.remove("author--collapsed"),void(null==(o=e.querySelector(".author__toggle-button"))||o.remove());const u=((e,t,o)=>{const r=e.querySelector(".author__toggle-button");if(null!==r)return r.dataset.readMoreText=t,r.dataset.readLessText=o,r;const a=e.querySelector(".author__bio-wrapper");if(null===a)throw new Error("Author bio wrapper not found");const n=document.createElement("button");return n.className="author__toggle-button",n.type="button",n.setAttribute("aria-expanded","false"),n.dataset.readMoreText=t,n.dataset.readLessText=o,n.innerHTML=`\n        <span class="author__toggle-text">${t}</span>\n        \n    <svg\n        xmlns="http://www.w3.org/2000/svg"\n        viewB
1ox="0 0 16 16"\n        fill="currentColor"\n        aria-hidden="true"\n        class="author__toggle-icon"\n    >\n        <path\n            fill-rule="evenodd"\n            d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z"\n            clip-rule="evenodd"\n        />\n    </svg>\n\n    `,n.addEventListener("click",(()=>{var r;const a=!("true"===n.getAttribute("aria-expanded"));n.setAttribute("aria-expanded",a?"true":"false"),n.querySelector(".author__toggle-text").textContent=a?n.dataset.readLessText||o:n.dataset.readMoreText||t,null==(r=n.querySelector(".author__toggle-icon"))||r.classList.toggle("author__toggle-icon--rotated",a),e.classList.toggle("author--collapsed",!a)})),a.appendChild(n),n})(e,l,s),d="true"===u.getAttribute("aria-expanded");e.classList.toggle("author--collapsed",!d),u.querySelector(".author__toggle-text").textContent=d?s:l,null==(r=u.querySelector(".author__toggle-icon"))||r.classList.toggle("author__toggle-icon--rotated",d)},t=t=>{"true"!==t.dataset.authorBioInitialized?(t.dataset.authorBioInitialized="true",e(t),window.addEventListener("resize",(()=>e(t)))):e(t)},o=()=>{document.querySelectorAll(".author.author--collapsible").forEach(t)};window.reliableDOMContentLoaded?window.reliableDOMContentLoaded.then(o).catch(o):o();

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.