Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Any JavaScript here will be loaded for all users on every page load. */
- /* Make each box in a row on the main page the same height as others on the same row */
- var FirstRowLeftBox = $('.MPBoxesLeft.MPBoxesFirstRow').height();
- var FirstRowRightBox = $('.MPBoxesRight.MPBoxesFirstRow').height();
- var SecondRowLeftBox = $('.MPBoxesLeft.MPBoxesSecondRow').height();
- var SecondRowRightBox = $('.MPBoxesRight.MPBoxesSecondRow').height();
- var ThirdRowLeftBox = $('.MPBoxesLeft.MPBoxesThirdRow').height();
- var ThirdRowRightBox = $('.MPBoxesRight.MPBoxesThirdRow').height();
- if (FirstRowLeftBox > FirstRowRightBox) {
- $('.MPBoxesRight.MPBoxesFirstRow').css({'height':($('.MPBoxesLeft.MPBoxesFirstRow').height())+'px'});
- } else {
- $('.MPBoxesLeft.MPBoxesFirstRow').css({'height':($('.MPBoxesRight.MPBoxesFirstRow').height())+'px'});
- }
- if (SecondRowLeftBox > SecondRowRightBox) {
- $('.MPBoxesRight.MPBoxesSecondRow').css({'height':($('.MPBoxesLeft.MPBoxesSecondRow').height())+'px'});
- } else {
- $('.MPBoxesLeft.MPBoxesSecondRow').css({'height':($('.MPBoxesRight.MPBoxesSecondRow').height())+'px'});
- }
- if (ThirdRowLeftBox > ThirdRowRightBox) {
- $('.MPBoxesRight.MPBoxesThirdRow').css({'height':($('.MPBoxesLeft.MPBoxesThirdRow').height())+'px'});
- } else {
- $('.MPBoxesLeft.MPBoxesThirdRow').css({'height':($('.MPBoxesRight.MPBoxesThirdRow').height())+'px'});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement