Guest User

Untitled

a guest
Jun 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pageHeightRecount = function(){
  2.     $("#main").css({
  3.         minHeight: ($('#main').height() + 79) + 'px'
  4.     });
  5.     $("#conteiner").css({
  6.         minHeight: ($('#conteiner').height() + 79) + 'px'
  7.     });
  8.     $("#content").css({
  9.         minHeight: $('#content').height() + 'px'
  10.     });
  11.  
  12.     return function(){
  13.         $("#main").css({
  14.             height: ($('body').height() - 79) + 'px'
  15.         });
  16.         $("#conteiner").css({
  17.             height: ($('body').height() - 79) + 'px'
  18.         });
  19.         $("#content").css({
  20.             height: ($('#conteiner').height() - 205) + 'px'
  21.         });
  22.     }
  23. }();
  24.  
  25. $(window).on('resize', function(){
  26.     pageHeightRecount();
  27. });
Add Comment
Please, Sign In to add comment