Skip to content

Instantly share code, notes, and snippets.

@nikolaykrylov
Created October 19, 2016 10:28
Show Gist options
  • Save nikolaykrylov/15cef4b496cac0db8646ca7db015462f to your computer and use it in GitHub Desktop.
Save nikolaykrylov/15cef4b496cac0db8646ca7db015462f to your computer and use it in GitHub Desktop.
function heightDetect() {
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment