America's Army Wiki
Advertisement

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/*****************************************
/* Front Page column height equalization *
/*****************************************/
// Author:  Shawn Bruckner
// Date:    2013-May-05
// License: CC-BY 3.0
// Version: beta

var fp = fp || {
  equalizeColumns : function() {
    $( '.fpcolumns' ).each( function (index) {
      var lcol = $( this ).find( '.fpcolleft' );
      var rcol = $( this ).find( '.fpcolright' );

      var lheight = lcol.height();
      var rheight = rcol.height();

      var bottombox;

      if ( lheight < rheight ) {
        bottombox = $( lcol ).find( '.fpbox' ).last();
        bottombox.height( bottombox.height() + rheight - lheight );
      } else if ( rheight < lheight ) {
        bottombox = $( rcol ).find( '.fpbox' ).last();
        bottombox.height( bottombox.height() + lheight - rheight );
      }
    } )
  }
};

$( document ).ready( fp.equalizeColumns );
/*********************************************
/* End Front Page column height equalization *
/*********************************************/
Advertisement