Advertisement
afsarwebdev

Footer fixed

Aug 31st, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. //body margin for fixed footer it will be under document.ready function
  2. bodyMargin();
  3.  
  4. //It will be if window resize function exist.
  5. $(window).on('resize', function(){
  6. $('.menu-push-right.active').click();
  7.  
  8. //body margin for fixed footer
  9. bodyMargin();
  10. });
  11.  
  12.  
  13. //body margin for fixed footer (it will be end of js)
  14. var bodyMargin = function() {
  15. if($(window).outerWidth() > 992) {
  16. $('body').css('margin-bottom', $('footer').outerHeight());
  17. } else {
  18. $('body').css('margin-bottom', '0');
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement