Square Cards with Jquery. Was working then broke with update. (Support?)

Hi,

The login credentials provided doesn’t seem to work.

Kindly check again and let us know.

Thanks

I just copy and pasted from this post and it worked.

http://syracusefca.org/wp-login.php

I don’t know what that means…

Hi there,

Thanks, I changed your javascript to this


jQuery( function($) {

  function card_resize() {
    
    var card_timeout = setTimeout ( function() {
    
      clearTimeout ( card_timeout );
      
            $('.x-card-outer .x-card-inner').each(function(index, element){      
                  var h = $(this).width();
                  $(this).css('height',h);
            } );
      
    }, 300 ); //let's add a 300ms delay
    
  }

  $(document).ready( card_resize );
  $(window).resize( card_resize );
  $(window).load( card_resize );
  

} ); 



You may change the delay from 0 to any value, depends on your preference. I only added it so it will apply the height later than any animation.

Thanks!

You are a freaking saint! Thank you so much.

You’re most welcome.