Advertisement
lcawte

wut

Oct 20th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Any JavaScript here will be loaded for all users on every page load. */
  2. /* Make each box in a row on the main page the same height as others on the same row */
  3. var FirstRowLeftBox = $('.MPBoxesLeft.MPBoxesFirstRow').height();
  4. var FirstRowRightBox = $('.MPBoxesRight.MPBoxesFirstRow').height();
  5. var SecondRowLeftBox = $('.MPBoxesLeft.MPBoxesSecondRow').height();
  6. var SecondRowRightBox = $('.MPBoxesRight.MPBoxesSecondRow').height();
  7. var ThirdRowLeftBox = $('.MPBoxesLeft.MPBoxesThirdRow').height();
  8. var ThirdRowRightBox = $('.MPBoxesRight.MPBoxesThirdRow').height();
  9. if (FirstRowLeftBox > FirstRowRightBox) {
  10.     $('.MPBoxesRight.MPBoxesFirstRow').css({'height':($('.MPBoxesLeft.MPBoxesFirstRow').height())+'px'});
  11. } else {
  12.     $('.MPBoxesLeft.MPBoxesFirstRow').css({'height':($('.MPBoxesRight.MPBoxesFirstRow').height())+'px'});
  13. }
  14. if (SecondRowLeftBox > SecondRowRightBox) {
  15.     $('.MPBoxesRight.MPBoxesSecondRow').css({'height':($('.MPBoxesLeft.MPBoxesSecondRow').height())+'px'});
  16. } else {
  17.     $('.MPBoxesLeft.MPBoxesSecondRow').css({'height':($('.MPBoxesRight.MPBoxesSecondRow').height())+'px'});
  18. }
  19. if (ThirdRowLeftBox > ThirdRowRightBox) {
  20.     $('.MPBoxesRight.MPBoxesThirdRow').css({'height':($('.MPBoxesLeft.MPBoxesThirdRow').height())+'px'});
  21. } else {
  22.     $('.MPBoxesLeft.MPBoxesThirdRow').css({'height':($('.MPBoxesRight.MPBoxesThirdRow').height())+'px'});
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement