1class LiteYTEmbed extends HTMLElement{connectedCallback(){this.videoId=this.getAttribute('videoid');let playBtnEl=this.querySelector('.lty-playbtn');this.playLabel=(playBtnEl&&playBtnEl.textContent.trim())||this.getAttribute('playlabel')||'Play';if(!this.style.backgroundImage){this.posterUrl=`https://i.ytimg.com/vi/${this.videoId}/hqdefault.jpg`;LiteYTEmbed.addPrefetch('preload',this.posterUrl,'image');this.style.backgroundImage=`url("${this.posterUrl}")`} 2if(!playBtnEl){playBtnEl=document.createElement('button');playBtnEl.type='button';playBtnEl.classList.add('lty-playbtn');this.append(playBtnEl)} 3if(!playBtnEl.textContent){const playBtnLabelEl=document.createElement('span');playBtnLabelEl.className='lyt-visually-hidden';playBtnLabelEl.textContent=this.playLabel;playBtnEl.append(playBtnLabelEl)} 4this.addEventListener('pointerover',LiteYTEmbed.warmConnections,{once:!0});this.addEventListener('click',e=>this.addIframe())} 5static addPrefetch(kind,url,as){const linkEl=document.createElement('link');linkEl.rel=kind;linkEl.href=url;if(as){linkEl.as=as} 6document.head.append(linkEl)} 7static warmConnections(){if(LiteYTEmbed.preconnected)return;LiteYTEmbed.addPrefetch('preconnect','https://www.youtube-nocookie.com');LiteYTEmbed.addPrefetch('preconnect','https://www.google.com');LiteYTEmbed.addPrefetch('preconnect','https://googleads.g.doubleclick.net');LiteYTEmbed.addPrefetch('preconnect','https://static.doubleclick.net');LiteYTEmbed.preconnected=!0} 8addIframe(){const params=new URLSearchParams(this.getAttribute('params')||[]);params.append('autoplay','1');const iframeEl=document.createElement('iframe');iframeEl.width=560;iframeEl.height=315;iframeEl.title=this.playLabel;iframeEl.allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture';iframeEl.allowFullscreen=!0;iframeEl.src=`https://www.youtube-nocookie.com/embed/${encodeURIComponent(this.videoId)}?${params.toString()}`;this.append(iframeEl);this.classList.add('lyt-activated');this.querySelector('iframe').focus()}} 9customElements.define('lite-youtube',LiteYTEmbed); 10/*! 11 * Language Selector JS plugin 12 * Copyright 2017 Clement G., Inc. 13 * Licensed under MIT 14 */ 15var dropdownmenu={animspeed:200,showhidedelay:[150,150],builtdropdownids:[],stubboxenable:!1,showbox:function($,$dropdown){this.stubboxenable=!1;clearTimeout($dropdown.data('timers').hidetimer);$dropdown.data('timers').showtimer=setTimeout(function(){$dropdown.show(dropdownmenu.animspeed)},this.showhidedelay[0])},hidebox:function($,$dropdown){if(this.stubboxenable===!1){clearTimeout($dropdown.data('timers').showtimer);$dropdown.data('timers').hidetimer=setTimeout(function(){$dropdown.hide(100)},this.showhidedelay[1])}},stubbox:function($,$dropdown){this.stubboxenable=!0;clearTimeout($dropdown.data('timers').hidetimer);$dropdown.data('timers').showtimer=setTimeout(function(){$dropdown.show(dropdownmenu.animspeed)},this.showhidedelay[0])},builddropdown:function($,$menu,$target){$menu.css({display:'none'}).addClass('jqdropdown');$menu.bind('mouseenter',function(){clearTimeout($menu.data('timers').hidetimer)});$menu.bind('mouseleave',function(){dropdownmenu.hidebox($,$menu)});$menu.data('dimensions',{w:$menu.outerWidth(),h:$menu.outerHeight()});$menu.data('timers',{});this.builtdropdownids.push($menu.get(0).id)},init:function($,$target,$dropdown){if(this.builtdropdownids.length===0){$(document).bind("click",function(e){if(e.button===0){$('.jqdropdown').find('ul').addBack().hide()}})} 16if(jQuery.inArray($dropdown.get(0).id,this.builtdropdownids)===-1) 17this.builddropdown($,$dropdown,$target);if($target.parents().filter('ul.jqdropdown').length>0) 18return;$target.bind("mouseenter",function(e){dropdownmenu.showbox($,$dropdown)});$target.bind("mouseleave",function(e){dropdownmenu.hidebox($,$dropdown)});$target.bind("click",function(e){dropdownmenu.stubbox($,$dropdown)})}};jQuery(document).ready(function($){jQuery.fn.adddropdown=function(dropdownid){var $=jQuery;return this.each(function(){var $target=$(this);var $dropdownId=$('#'+dropdownid);if($dropdownId.length===1) 19dropdownmenu.init($,$target,$dropdownId)})};var $anchors=$('*[data-dropdown]');$anchors.each(function(){$(this).adddropdown(this.getAttribute('data-dropdown'))})})
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.