1/*global jQuery */ 2/*jshint multistr:true browser:true */ 3/*! 4* FitVids 1.0 5* 6* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 7* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 8* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 9* 10* Date: Thu Sept 01 18:00:00 2011 -0500 11*/ 12!function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var r=document.createElement("div"),s=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];r.className="fit-vids-style",r.id="fit-vids-style",r.style.display="none",r.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; \t\t\t\t\t min-height: 1px; } .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%; } </style>",s.parentNode.insertBefore(r,s)}return e&&t.extend(i,e),this.each(function(){var e=["iframe[src*='player.vimeo.com']","iframe[src*='youtube.com']","iframe[src*='youtube-nocookie.com']","iframe[src*='kickstarter.com'][src*='video.html']","object","embed"];i.customSelector&&e.push(i.customSelector);var r=t(this).find(e.join(","));(r=r.not("object object")).each(function(){var e=t(this);if(!("embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){if(e.closest(".flexslider").length>0){if(e.closest("ul").find("img").length>0)var i=e.closest("ul").height();else i=500;var r=i/(s=isNaN(parseInt(e.closest("li").attr("width"),10))?e.closest("li").width():parseInt(e.closest("li").attr("width"),10))}else if(e.closest(".portfolio_images").length>0){var s=$j(".portfolio_images").width();if(e.next("img").length>0)i=e.next("img").height();else i=500;r=i/s}else r=(i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(s=isNaN(parseInt(e.attr("width"),10))?e.parent().width():parseInt(e.attr("width"),10));if(!e.attr("id")){var a="fitvid"+Math.floor(999999*Math.random());e.attr("id",a)}e.wrap('<div class="fluid-width-video-wrapper"></div>'),t(".fluid-width-video-wrapper").css("padding-top",100*r+"%")}})})}}(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.