1/*! 2* FlexVerticalCenter.js 1.0 3* 4* Copyright 2011, Paul Sprangers http://paulsprangers.com 5* Released under the WTFPL license 6* http://sam.zoy.org/wtfpl/ 7* 8* Date: Fri Oct 28 19:12:00 2011 +0100 9*/ 10(function($){$.fn.flexVerticalCenter=function(options){var settings=$.extend({cssAttribute:'margin-top',verticalOffset:0,parentSelector:null,debounceTimeout:25},options||{});return this.each(function(){var $this=$(this);var debounce;var resizer=function(){var parentHeight=(settings.parentSelector&&$this.parents(settings.parentSelector).length)?$this.parents(settings.parentSelector).first().height():$this.parent().height();$this.css(settings.cssAttribute,(((parentHeight-$this.height())/2)+parseInt(settings.verticalOffset)));};$(window).resize(function(){clearTimeout(debounce);debounce=setTimeout(resizer,settings.debounceTimeout);});$(window).load(function(){resizer();});$this.find('img').load(resizer);});};})(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.