PageSourceSearch

https://www.altrarunning.com/cdn/shop/t/85/assets/content-card-block.CQc3ssRn.min.js

js altrarunning.com collected 2026-09-27 21:39:13 UTC 2,268 bytes, 1 lines download raw bytes

1/* empty css                               */class l extends HTMLElement{constructor(){super(),this.toggleVideo=this.toggleVideo.bind(this)}connectedCallback(){this.video=this.querySelector("video"),this.youtubeVideo=this.querySelector("[data-youtube-wrapper] iframe"),this.vimeoVideo=this.querySelector("[data-vimeo-wrapper] iframe"),this.togglePlay=this.querySelector(".js-video-toggle-play"),this.togglePlay&&(this.togglePlay.addEventListener("click",this.toggleVideo),setTimeout(()=>{this.video&&!this.video.paused&&this.video.pause(),this.youtubeVideo&&this.youtubePostMessageToPlayer("pauseVideo"),this.vimeoPlayer&&this.vimeoPlayer.pause()},100)),this.vimeoVideo&&this.vimeoLoading()}disconnectedCallback(){this.togglePlay&&this.togglePlay.removeEventListener("click",this.toggleVideo)}toggleVideo(){if(this.video&&(this.video.paused?this.video.play():this.video.pause()),this.youtubeVideo){const e=this.togglePlay.classList.contains("is-toggle")?"pauseVideo":"playVideo";this.youtubePostMessageToPlayer(e)}this.vimeoPlayer&&(this.togglePlay.classList.contains("is-toggle")?this.vimeoPlayer.pause():this.vimeoPlayer.play()),this.togglePlay.classList.toggle("is-toggle"),this.updateButtonState(this.togglePlay)}youtubePostMessageToPlayer(e,t=null){this.youtubeVideo.contentWindow.postMessage(JSON.stringify({event:"command",func:e,args:t?[t]:[]}),"*")}async vimeoLoading(){await this.loadVimeoScript("https://player.vimeo.com/api/player.js"),window.Vimeo?this.vimeoPlayer=new Vimeo.Player(this.vimeoVideo):console.warn("Vimeo SDK failed to load.")}loadVimeoScript(e){return new Promise((t,i)=>{if(window.Vimeo)return t();const s=document.querySelector(`script[src="${e}"]`);if(s){s.addEventListener("load",t),s.addEventListener("error",i);return}const o=document.createElement("script");o.src=e,o.onload=t,o.onerror=a=>{console.warn(`Unable to load script ${e}`,a),i(a)},document.body.appendChild(o)})}updateButtonState(e){const t=e.classList.contains("is-toggle"),i=e.querySelector(".sr-only");e.setAttribute("aria-label",t?e.dataset.labelActive:e.dataset.labelInactive),i&&(i.innerText=t?e.dataset.labelActive:e.dataset.labelInactive)}}const r=()=>{customElements.get("content-card-block")||customElements.define("content-card-block",l)};export{r 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.