EduardET

Equalize Text Module

Dec 15th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. ( function( $ ) {
  3.     $( document ).ready( function() {
  4.         var maxHeight = 0,
  5.             tm = $( '.product-description' );
  6.         if ( tm.length ) {
  7.             tm.each( function() {
  8.                 if ( $( this ).height() > maxHeight ) {
  9.                     maxHeight = $( this ).height();
  10.                 }
  11.             } );
  12.  
  13.             tm.css( 'min-height', maxHeight );
  14.         }
  15.     } );
  16. } )( jQuery );
  17. </script>
Advertisement
Add Comment
Please, Sign In to add comment