1/*! 2* FitVids 1.0 3* 4* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 5* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 6* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 7* 8* Date: Thu Sept 01 18:00:00 2011 -0500 9*/ 10(function($){$.fn.fitVids=function(options){var settings={customSelector:null} 11var div=document.createElement('div'),ref=document.getElementsByTagName('base')[0]||document.getElementsByTagName('script')[0];div.className='fit-vids-style';div.innerHTML='­<style> \ 12 .fluid-width-video-wrapper { \ 13 width: 100%; \ 14 position: relative; \ 15 padding: 0; \ 16 } \ 17 \ 18 .fluid-width-video-wrapper iframe, \ 19 .fluid-width-video-wrapper object, \ 20 .fluid-width-video-wrapper embed { \ 21 position: absolute; \ 22 top: 0; \ 23 left: 0; \ 24 width: 100%; \ 25 height: 100%; \ 26 } \ 27 </style>';ref.parentNode.insertBefore(div,ref);if(options){$.extend(settings,options);} 28return this.each(function(){var selectors=["iframe[src*='youtube']","iframe[src*='vimeo']","iframe[src*='kickstarter']"];if(settings.customSelector){selectors.push(settings.customSelector);} 29var $allVideos=$(this).find('iframe[src*="youtube"], iframe[src*="vimeo"]');$allVideos.each(function(){var $this=$(this);if(this.tagName.toLowerCase()=='embed'&&$this.parent('object').length||$this.parent('.fluid-width-video-wrapper').length){return;} 30var height=this.tagName.toLowerCase()=='object'?$this.attr('height'):$this.height(),aspectRatio=height/$this.width();if(!$this.attr('id')){var videoID='fitvid'+Math.floor(Math.random()*999999);$this.attr('id',videoID);} 31$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);jQuery(document).ready(function(){jQuery(".gdl-page-row-wrapper, .footer-wrapper").fitVids();});
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.