Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web28/html/wp-content/plugins/fusion-builder/assets/js/min/library/ |
Current File : //var/www/web28/html/wp-content/plugins/fusion-builder/assets/js/min/library/lite-vimeo-embed.js |
if("undefined"==typeof LiteVimeo){class e extends HTMLElement{constructor(){super()}connectedCallback(){this.videoId=encodeURIComponent(this.getAttribute("videoid"));const t=document.createElement("button");t.type="button",t.classList.add("ltv-playbtn"),this.appendChild(t),this.addEventListener("pointerover",e._warmConnections,{once:!0}),this.addEventListener("click",this.callbackIframe)}callbackIframe(){this._addIframe(),this.removeEventListener("click",this.callbackIframe)}static _warmConnections(){e.preconnected||(vimeoLiteAddPrefetch("preconnect","https://player.vimeo.com"),vimeoLiteAddPrefetch("preconnect","https://i.vimeocdn.com"),vimeoLiteAddPrefetch("preconnect","https://f.vimeocdn.com"),vimeoLiteAddPrefetch("preconnect","https://fresnel.vimeocdn.com"),e.preconnected=!0)}_addIframe(){const e=new URLSearchParams(this.getAttribute("params")||[]),t=`\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}?${e.toString().replace("&start=","#t=")}"\n ></iframe>`;this.insertAdjacentHTML("beforeend",t),this.classList.add("ltv-activated")}}void 0===customElements.get("lite-vimeo")&&customElements.define("lite-vimeo",e)}function vimeoLiteAddPrefetch(e,t,n){const i=document.createElement("link");i.rel=e,i.href=t,n&&(i.as=n),i.crossorigin=!0,document.head.appendChild(i)}function vimeoLiteCanUseWebP(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))&&0===e.toDataURL("image/webp").indexOf("data:image/webp")}function vimeoLiteGetThumbnailDimensions({width:e,height:t}){let n=e=e||960,i=t=t||540;return n%320!=0&&(n=100*Math.ceil(e/100),i=Math.round(n/e*t)),{width:n,height:i}}!function(){function e(){jQuery&&jQuery(document).ajaxComplete(function(){t()})}function t(){function e(t){t.currentTarget.removeEventListener("click",e),t.currentTarget.classList.add("awb-lite-vimeo-no-background"),t.currentTarget.style.backgroundImage=""}document.querySelectorAll("lite-vimeo, priv-fac-lite-vimeo").forEach(function(t){var n,i,o;t.getAttribute("data-fusion-vimeo-thumbnail-loaded")||(n=t,i=new XMLHttpRequest,o=n.getAttribute("videoid"),n.setAttribute("data-fusion-vimeo-thumbnail-loaded","true"),i.onload=function(){if(this.status>=200&&this.status<400){var e,t,i,o,a,c=JSON.parse(this.responseText),d=window.devicePixelRatio||1;e=vimeoLiteGetThumbnailDimensions(n.getBoundingClientRect()),t=Math.round(e.width*d),i=Math.round(e.height*d),"object"==typeof c&&null!==c&&"string"==typeof c.thumbnail_url&&c.thumbnail_url&&(a=c.thumbnail_url,0<t&&0<i&&(o=/d_\d+x\d+$/.test(c.thumbnail_url),a=o?c.thumbnail_url.replace(/d_\d+x\d+$/,"d_"+t+"x"+i):c.thumbnail_url.replace(/d_\d+$/,"d_"+t+"x"+i)),setTimeout(function(){n.style.backgroundImage='url("'+a+'")'},200))}},i.open("GET","https://vimeo.com/api/oembed.json?url=https://vimeo.com/"+encodeURIComponent(o),!0),i.send(),t.addEventListener("click",e))})}document.addEventListener("DOMContentLoaded",t),document.addEventListener("DOMContentLoaded",e),"interactive"!==document.readyState&&"complete"!==document.readyState||(t(),e())}();
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare