User:NovaFlare/common.js
From Brickipedia, the LEGO Wiki
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.
1 /* debug */
2 var lh = $('.LeftBox.MPBoxesSecondRow').height();
3 var rh = $('.RightBox.MPBoxesSecondRow').height();
4
5 $('#ltext').html(lh);
6 $('#rtext').html(rh);
7
8 /* Make each box in a row on the main page the same height as others on the same row */
9 var SecondRowLeftBox = $('.LeftBox.MPBoxesSecondRow').height();
10 var SecondRowRightBox = $('.RightBox.MPBoxesSecondRow').height();
11 if (SecondRowLeftBox > SecondRowRightBox) {
12 $('.RightBox.MPBoxesSecondRow .RightTop').css({'height':($('.LeftBox.MPBoxesSecondRow').height() - $('.RightBox.MPBoxesSecondRow .RightBottom').height() - 14)+'px'});
13 } else {
14 $('.LeftBox.MPBoxesSecondRow').css({'height':($('.RightBox.MPBoxesSecondRow').height())+'px'});
15 }