1/* 2 * jquery-auto-height.js 3 * 4 * Copyright (c) 2010 Tomohiro Okuwaki (http://www.tinybeans.net/blog/) 5 * Licensed under MIT Lisence: 6 * http://www.opensource.org/licenses/mit-license.php 7 * http://sourceforge.jp/projects/opensource/wiki/licenses%2FMIT_license 8 * 9 * Since: 2010-04-19 10 * Update: 2013-08-16 11 * version: 0.04 12 * Comment: 13 * 14 * jQuery 1.2 <-> 1.10.2 15 * 16 */ 17 18(function(e){e.fn.autoHeight=function(t){var n=e.extend({column:0,clear:0,height:"minHeight",reset:"",descend:function(t,n){return n-t}},t||{});var r=e(this);var i=0,s,o=new Array,u=new Array;u[i]=0;r.each(function(t){if(n.reset=="reset"){e(this).removeAttr("style")}var r=e(this).height();o[t]=r;if(n.column>1){if(r>u[i]){u[i]=r}if(t>0&&(t+1)%n.column==0){i++;u[i]=0}}});o=o.sort(n.descend);s=o[0];var a=typeof window.addEventListener=="undefined"&&typeof document.documentElement.style.maxHeight=="undefined";if(n.column>1){for(var f=0;f<u.length;f++){for(var l=0;l<n.column;l++){if(a){r.eq(f*n.column+l).height(u[f])}else{r.eq(f*n.column+l).css(n.height,u[f])}if(l==0&&n.clear!=0){r.eq(f*n.column+l).css("clear","both")}}}}else{if(a){r.height(s)}else{r.css(n.height,s)}}}})(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.