1/*! 2* FitVids 1.1 3* 4* Copyright 2013, 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*/(function(e){"use strict";e.fn.fitVids=function(t){var s,o,i,n={customSelector:null,ignore:null};return document.getElementById("fit-vids-style")||(o=document.head||document.getElementsByTagName("head")[0],i=".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%;}",s=document.createElement("div"),s.innerHTML='<p>x</p><style id="fit-vids-style">'+i+"</style>",o.appendChild(s.childNodes[1])),t&&e.extend(n,t),this.each(function(){var t,s,o=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&o.push(n.customSelector),s=".fitvidsignore",n.ignore&&(s=s+", "+n.ignore),t=e(this).find(o.join(",")),t=t.not("object object"),t=t.not(s),t.each(function(){if(t=e(this),t.parents(s).length>0)return;if(this.tagName.toLowerCase()==="embed"&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)return;!t.css("height")&&!t.css("width")&&(isNaN(t.attr("height"))||isNaN(t.attr("width")))&&(t.attr("height",9),t.attr("width",16));var t,n,o=this.tagName.toLowerCase()==="object"||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),i=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),a=o/i;t.attr("name")||(n="fitvid"+e.fn.fitVids._count,t.attr("name",n),e.fn.fitVids._count++),t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",a*100+"%"),t.removeAttr("height").removeAttr("width")})})},e.fn.fitVids._count=0})(window.jQuery||window.Zepto)
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.