1;(function($,window){var defaults={ratio:16/9,videoId:'ZCAnLxRvNNc',mute:false,repeat:true,width:$(window).width(),wrapperZIndex:1,attachtobody:false,start:0};var tubular=function(node,options){var options=$.extend({},defaults,options),$body=$('body') 2 $node=$(node);var tubularContainer='<div id="tubular-container" style="overflow: hidden; position: fixed; z-index: -1; width: 100%; height: 100%"><div id="tubular-player" style="position: absolute"></div></div><div id="tubular-shield" style="width: 100%; height: 100%; z-index: 2; position: absolute; left: 0; top: 0;"></div>';if(options.attachtobody){$body.prepend(tubularContainer);}else{$node.prepend(tubularContainer);} 3 $node.css({position:'relative','z-index':options.wrapperZIndex});window.player;window.onYouTubeIframeAPIReady=function(){player=new YT.Player('tubular-player',{width:options.width,height:Math.ceil(options.width/options.ratio),videoId:options.videoId,autoplay:1,playerVars:{controls:0,showinfo:0,modestbranding:1,wmode:'transparent',vq:'hd720'},events:{'onReady':onPlayerReady,'onStateChange':onPlayerStateChange}});} 4 window.onPlayerReady=function(e){resize();if(options.mute)e.target.mute();e.target.seekTo(options.start);e.target.playVideo();} 5 window.onPlayerStateChange=function(state){if(state.data===0&&options.repeat){player.seekTo(options.start);}} 6 var resize=function(){var width=$(window).width(),pWidth,height=$(window).height(),pHeight,$tubularPlayer=$('#tubular-player');if(width/options.ratio<height){pWidth=Math.ceil(height*options.ratio);$tubularPlayer.width(pWidth).height(height).css({left:(width-pWidth)/2,top:0});}else{pHeight=Math.ceil(width/options.ratio);$tubularPlayer.width(width).height(pHeight).css({left:0,top:(height-pHeight)/2});}} 7 $(window).on('resize.tubular',function(){resize();});} 8 var tag=document.createElement('script');tag.src="//www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);$.fn.tubular=function(options){return this.each(function(){if(!$.data(this,'tubular_instantiated')){$.data(this,'tubular_instantiated',tubular(this,options));}});}})(jQuery,window);
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.