Last active
April 26, 2016 09:15
-
-
Save chickenfoot88/fb598d29883d792550061dd2f2cd1ddc to your computer and use it in GitHub Desktop.
resize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
function heightDetect(){ | |
$(".main_head").css("height", $(window).height()); | |
}; | |
$(window).resize(function(){ | |
heightDetect(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment