Skip to content

Instantly share code, notes, and snippets.

@deGizon
Last active March 10, 2017 20:38
Show Gist options
  • Save deGizon/1b2f2f7191fefb04ff7fc4c2b6251be3 to your computer and use it in GitHub Desktop.
Save deGizon/1b2f2f7191fefb04ff7fc4c2b6251be3 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