1// funcion para igualar el alto de cajas con la misma clase, igualando al alto mayor 2 3jQuery.fn.equalHeights = function() { 4 var maxHeight = 0; 5 // get the maximum height 6 this.each(function(){ 7 var $this = jQuery(this); 8 if ($this.height() > maxHeight) { maxHeight = $this.height(); } 9 }); 10 // set the elements height 11 this.each(function(){ 12 var $this = jQuery(this); 13 $this.height(maxHeight); 14 }); 15}; 16 17jQuery(window).load(function() { 18 var classes = ["equalheight","equalheight-two","equalheight-three","equalheight-four","equalheight-five"]; 19 for (var i = 0, j = classes.length; i < j; i++) { 20 jQuery('.' + classes[i]).equalHeights(); 21 } 22});
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.