Skip to content

Instantly share code, notes, and snippets.

@dstyle0210
Created July 30, 2014 04:26
Show Gist options
  • Select an option

  • Save dstyle0210/61a037228137a0e4b291 to your computer and use it in GitHub Desktop.

Select an option

Save dstyle0210/61a037228137a0e4b291 to your computer and use it in GitHub Desktop.
윈도우 높이와 문서의 높이를 비교하여 큰것을 리턴.
//jQuery Extend dHeight : dstyle
// 윈도우 높이와 문서의 높이를 비교하여 큰것을 리턴.
(function($){$.windowHeight = function(){return (($(window).height()>$(document.body).height())?$(window).height():$(document.body).height());};})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment