1( function( $ ) { 2 $.fn.equalHeights = function( ) { 3 var maxHeight = 0; 4 this.each( function( ) { 5 maxHeight = Math.max( $( this ).height( ), maxHeight ); 6 } ); 7 return this.each( function( ) { 8 $( this ).height( maxHeight ); 9 } ); 10 } 11 12 function equal_height( obj ) { 13 var $this = $( obj ); 14 $this.equalHeights(); 15 } 16 17 18 $( window ).resize( function( ) { 19 $( '#mp-products.mp_products-grid' ).each( function( ) { 20 var $this = $( this ); 21 $this.find( '.mp_product_meta' ).equalHeights(); 22 } ); 23 24 $( '#mp-related-products .mp_products-grid .mp_product_meta' ).each( function( ) { 25 //equal_height( $( this ) ); 26 var $this = $( this ); 27 $this.find( '.mp_product_meta' ).equalHeights(); 28 } ); 29 30 } ); 31 32 $( window ).load(function() { 33 $( '#mp-products.mp_products-grid' ).each( function( ) { 34 var $this = $( this ); 35 $this.find( '.mp_product_meta' ).equalHeights(); 36 } ); 37 38 $( '#mp-related-products .mp_products-grid' ).each( function( ) { 39 var $this = $( this ); 40 $this.find( '.mp_product_meta' ).equalHeights(); 41 //$this.equalHeights(); 42 } ); 43 } ); 44}( 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.