Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //body margin for fixed footer it will be under document.ready function
- bodyMargin();
- //It will be if window resize function exist.
- $(window).on('resize', function(){
- $('.menu-push-right.active').click();
- //body margin for fixed footer
- bodyMargin();
- });
- //body margin for fixed footer (it will be end of js)
- var bodyMargin = function() {
- if($(window).outerWidth() > 992) {
- $('body').css('margin-bottom', $('footer').outerHeight());
- } else {
- $('body').css('margin-bottom', '0');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement