Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $.fn.fullHeight = function(minheight) {
  2. var $this = $(this);
  3. var minH = minheight || 480;
  4.  
  5. $this.outerHeight($window.height());
  6. $window.on('resize', $(this), function(event) {
  7. $this.outerHeight(Math.max($window.height(),minH));
  8. event.preventDefault();
  9. });
  10. };
  11. $('.gs-main-header-fullheight').fullHeight();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement