PageSourceSearch

https://www.coor.com/dist/client/assets/hosted-video-block.component-Ccvme3d1.js

js coor.com collected 2026-10-02 16:28:39 UTC 1,567 bytes, 1 lines download raw bytes

1const u="https://www.youtube.com/iframe_api",w="https://player.vimeo.com/api/player.js",i=e=>{const n=e.getAttribute("data-src");n&&e.src.indexOf("about:blank")!==-1&&(e.src=n,e.setAttribute("data-src",""))},c=(e,n)=>{const r=e.parentElement;if(!r)return;r.setAttribute("aria-hidden","true"),e.setAttribute("data-src",e.src),e.src="about:blank";const t=e.cloneNode(!0);n.destroy(),r.appendChild(t)},h=e=>{const n=window;if(!n){console.warn("Iframe has no contentWindow");return}if(!n.YT||!n.YT.Player){const r=document.createElement("script");r.src=u,document.head.appendChild(r)}window.addEventListener("poster-video-clicked",r=>{const t=e.querySelector(`#${r.detail.videoId} > iframe`);if(!t)return;const o=t.getAttribute("data-src")||t.getAttribute("src")||"",a=new URL(o);a.searchParams.set("enablejsapi","1"),a.searchParams.set("origin",window.location.origin),t.setAttribute("data-src",a.toString()),i(t);const s=n.YT,d=new s.Player(t,{events:{onStateChange:l=>{l.data===s.PlayerState.ENDED&&c(t,d)}}})})},f=e=>{const n=window;if(!n){console.warn("Iframe has no contentWindow");return}if(!n.Vimeo){const r=document.createElement("script");r.src=w,document.head.appendChild(r)}window.addEventListener("poster-video-clicked",r=>{const t=e.querySelector(`#${r.detail.videoId} > iframe`);if(!t)return;i(t);const o=new n.Vimeo.Player(t);o.on("ended",()=>{c(t,o)})})},p=(e,{embedType:n,showPosterAfterFinish:r})=>{if(!r||n==="unknown"){const t=e.querySelector("iframe");t&&i(t);return}switch(n){case"youtube":h(e);break;case"vimeo":f(e);break}};export{p 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.