Last active
May 2, 2016 18:29
-
-
Save denys-vladymyrov/9c9c437d9dccac890f3136566ec5f52a to your computer and use it in GitHub Desktop.
Javascript
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
function screenHeight(){ | |
$(".main-head").css("height", $(window).height()); | |
} | |
$(document).ready(function() { | |
screenHeight(); | |
$(window).resize(function(){ | |
screenHeight(); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment