Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bodySpacing= function (){
- /*Banner Notice start*/
- var noticeBanner = $('.notice-banner');
- if (noticeBanner.length != 0) {
- var noticeBarHeight = noticeBanner.outerHeight();
- var mainContent = $('#main-content');
- mainContent.css('padding-top', noticeBarHeight+'px');
- }
- /*Banner Notice end*/
- };
- $(window).load(function() {
- bodySpacing()
- });
- $(window).resize(function(){
- bodySpacing()
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement