1/* 2 Copyright 2014, Kevin Smith 3 Licensed under the MIT license. 4 Version: 1.0 5 Build date: September 17, 2014 6*/ 7(function($){ 8 $.fn.equalizeHeights = function(breakPoint, center) { 9 if(!breakPoint) breakPoint = 0; 10 var $items = this; 11 12 $(window).on('resize.equalizeHeights', $.throttle(24, function(){ 13 var height = 0; 14 $items.each(function(){ 15 var $t = $(this); 16 $t.data('original-padding', { 17 paddingTop: $t.css('padding-top'), 18 paddingBottom: $t.css('padding-bottom') 19 }); 20 }); 21 22 $items.css('height','auto').each(function(){ 23 var $this = $(this); 24 $this.css($this.data('original-padding')); 25 height = Math.max($this.css('box-sizing') == 'border-box' ? $this.outerHeight() : $this.height(), height); 26 }); 27 if($(this).width() > breakPoint) { 28 if(center) { 29 $items.each(function(){ 30 var $item = $(this); 31 $item.css({ 32 paddingTop: 0, 33 paddingBottom: 0, 34 height: 'auto' 35 }); 36 var padding = (height - $item.outerHeight()) / 2; 37 $item.css({ 38 paddingTop: padding, 39 paddingBottom: padding 40 }); 41 }); 42 } else { 43 $items.css('height', height); 44 } 45 } 46 })) 47 // Initial resize on document load 48 .trigger('resize.equalizeHeights'); 49 }; 50})(jQuery); 51 52/* 53 * jQuery throttle / debounce - v1.1 - 3/7/2010 54 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 55 * 56 * Copyright (c) 2010 "Cowboy" Ben Alman 57 * Dual licensed under the MIT and GPL licenses. 58 * http://benalman.com/about/license/ 59 */ 60(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);
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.