PageSourceSearch

https://www.discoverlancaster.com/dist/scripts/lite-vimeo-embed.8c8384c6d2416e7dbb44.min.js

js discoverlancaster.com collected 2026-09-24 18:03:45 UTC 2,948 bytes, 1 lines download raw bytes

1(self.webpackChunk=self.webpackChunk||[]).push([[4139],{2900:function(){function e(e,t,o){const i=document.createElement("link");i.rel=e,i.href=t,o&&(i.as=o),i.crossorigin=!0,document.head.appendChild(i)}!function(e,t){void 0===t&&(t={});var o=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===o&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}('lite-vimeo{font-size:10px;background-color:#000;position:relative;display:block;contain:content;background-position:50%;background-size:cover;cursor:pointer}lite-vimeo:after{content:"";display:block;padding-bottom:56.25%}lite-vimeo>iframe{width:100%;height:100%;position:absolute;top:0;left:0}lite-vimeo>.ltv-playbtn{width:6.5em;height:4em;background:rgba(23,35,34,.75);z-index:1;opacity:.8;border-radius:.5em;transition:all .2s cubic-bezier(0,0,.2,1);outline:0;border:0;cursor:pointer}lite-vimeo:hover>.ltv-playbtn{background-color:#00adef;opacity:1}lite-vimeo>.ltv-playbtn:before{content:"";border-color:transparent transparent transparent #fff;border-style:solid;border-width:10px 0 10px 20px}lite-vimeo>.ltv-playbtn,lite-vimeo>.ltv-playbtn:before{position:absolute;top:50%;left:50%;transform:translate3d(-50%,-50%,0)}lite-vimeo.ltv-activated{cursor:unset}lite-vimeo.ltv-activated:before,lite-vimeo.ltv-activated>.ltv-playbtn{opacity:0;pointer-events:none}');class t extends HTMLElement{constructor(){super()}connectedCallback(){this.videoId=encodeURIComponent(this.getAttribute("videoid"));let{width:e,height:o}=function({width:e,height:t}){let o=e,i=t;return o%320!=0&&(o=100*Math.ceil(e/100),i=Math.round(o/e*t)),{width:o,height:i}}(this.getBoundingClientRect());const i=window.devicePixelRatio||1;e*=i,o*=i;let n=`https://lite-vimeo-embed.now.sh/thumb/${this.videoId}`;var a;n+="."+((a=document.createElement("canvas")).getContext&&a.getContext("2d")&&0===a.toDataURL("image/webp").indexOf("data:image/webp")?"webp":"jpg"),n+=`?mw=${e}&mh=${o}&q=${i>1?70:85}`,this.style.backgroundImage=`url("${n}")`;const c=document.createElement("button");c.type="button",c.classList.add("ltv-playbtn"),this.appendChild(c),this.addEventListener("pointerover",t.t,{once:!0}),this.addEventListener("click",(()=>this.o()))}static t(){t.preconnected||(e("preconnect","https://player.vimeo.com"),e("preconnect","https://i.vimeocdn.com"),e("preconnect","https://f.vimeocdn.com"),e("preconnect","https://fresnel.vimeocdn.com"),t.preconnected=!0)}o(){const e=`\n<iframe width="640" height="360" frameborder="0"\n  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen\n  src="https://player.vimeo.com/video/${this.videoId}?autoplay=1"\n></iframe>`;this.insertAdjacentHTML("beforeend",e),this.classList.add("ltv-activated")}}customElements.define("lite-vimeo",t)}}]);

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.