Created
October 24, 2017 08:32
-
-
Save AlexKardone/abde216e0eea6ce0ece300a8e3162299 to your computer and use it in GitHub Desktop.
Хедер на всю высоту и автоматическое подстраивание под изменение высоты окна
This file contains hidden or 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 heightDetect() { | |
// height header equals height of screen | |
$(".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