1(function($) { 2 3 // Equal height blocks 4 // See @ http://css-tricks.com/equal-height-blocks-in-rows/ 5 6 equalheight = function(container){ 7 8 var currentTallest = 0, 9 currentRowStart = 0, 10 rowDivs = new Array(), 11 $el, 12 topPosition = 0; 13 $(container).each(function() { 14 15 $el = $(this); 16 $($el).height('auto') 17 topPostion = $el.position().top; 18 19 if (currentRowStart != topPostion) { 20 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 21 rowDivs[currentDiv].height(currentTallest); 22 } 23 rowDivs.length = 0; // empty the array 24 currentRowStart = topPostion; 25 currentTallest = $el.height(); 26 rowDivs.push($el); 27 } else { 28 rowDivs.push($el); 29 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 30 } 31 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 32 rowDivs[currentDiv].height(currentTallest); 33 } 34 }); 35 } //EOF function equalheight 36 37})(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.