1var velocity=velocity||{};(function($){velocity.playMedia=function(el,type,id,options,event,parent,target){var src="//youtube.com/embed/"+id+"?rel=0&vq=hd1080";if(type==='vimeo'){src="//player.vimeo.com/video/"+id;} 2if(type==='twitch'){src="//player.twitch.tv/?channel="+id;} 3if(type==='soundcloud'){var soundcloud_type='tracks';if(el.data('soundcloud-type')){soundcloud_type=el.data('soundcloud-type');} 4src="//w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/"+soundcloud_type+"/"+id+"&auto_play=false&hide_related=true&show_comments=false&show_user=false&show_reposts=false&visual=true";} 5var player_options=(options)?'&'+options:'';el.animate({'opacity':0},250,function(){$('<iframe />',{id:id,src:src,allowfullscreen:"1",frameborder:"0",width:"1600"}).appendTo(target);el.remove();setTimeout(function(){var velocity_iframe=document.getElementById(id);if(type==='vimeo'){velocity_iframe.src+="?autoplay=1&title=0&byline=0"+player_options;} 6else if(type==='soundcloud'){velocity_iframe.src+="&auto_play=true"+player_options;} 7else{velocity_iframe.src+="&autoplay=1"+player_options;} 8target.fitVidsInline();if(event){var events=event.split(':');if(events.length>2){var gaCategory=events[0],gaAction=events[1],gaLabel=events[2];if(typeof __gaTracker!=='undefined'&&$.isFunction(__gaTracker)){__gaTracker('send','event',gaCategory,gaAction,gaLabel);} 9if(typeof ga!=='undefined'&&$.isFunction(ga)){ga('send','event',gaCategory,gaAction,gaLabel);}}} 10parent.css('height','auto');},1);});};$(document).on('click','.velocity-embed a',function(e){e.preventDefault();var el=$(this),type=el.data('video-type').toLowerCase(),id=el.data('video-id'),options=el.data('video-options'),event=el.data('event'),parent=el.parent('.velocity-embed'),target=$('.velocity-target',parent);parent.css('height',parent.height());velocity.playMedia(el,type,id,options,event,parent,target);});$.fn.fitVidsInline=function(options){var settings={customSelector:null,ignore:null};if(!document.getElementById('fit-vids-style')){var head=document.head||document.getElementsByTagName('head')[0];var css='.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';var div=document.createElement("div");div.innerHTML='<p>x</p><style id="fit-vids-style">'+css+'</style>';head.appendChild(div.childNodes[1]);} 11if(options){$.extend(settings,options);} 12return this.each(function(){var selectors=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="player.twitch.tv"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="w.soundcloud.com"]','iframe[src*="kickstarter.com"][src*="video.html"]','object','embed'];if(settings.customSelector){selectors.push(settings.customSelector);} 13var ignoreList='.fitvidsignore';if(settings.ignore){ignoreList=ignoreList+', '+settings.ignore;} 14var $allVideos=$(this).find(selectors.join(','));$allVideos=$allVideos.not('object object');$allVideos=$allVideos.not(ignoreList);$allVideos.each(function(count){var $this=$(this);if($this.parents(ignoreList).length>0){return;} 15if(this.tagName.toLowerCase()==='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;} 16if((!$this.css('height')&&!$this.css('width'))&&(isNaN($this.attr('height'))||isNaN($this.attr('width')))) 17{$this.attr('height',9);$this.attr('width',16);} 18var height=(this.tagName.toLowerCase()==='object'||($this.attr('height')&&!isNaN(parseInt($this.attr('height'),10))))?parseInt($this.attr('height'),10):$this.height(),width=!isNaN(parseInt($this.attr('width'),10))?parseInt($this.attr('width'),10):$this.width(),aspectRatio=height/width;if(!$this.attr('id')){var videoID='fitvid'+count;$this.attr('id',videoID);} 19$this.wrap('<div class="fluid-width-video-wrapper"></div>').parent('.fluid-width-video-wrapper').css('padding-top',(aspectRatio*100)+'%');$this.removeAttr('height').removeAttr('width');});});};})(jQuery);
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.