Created
March 30, 2017 10:00
-
-
Save jimmy89Li/7216664cc9f5596e3fa0c8c0f47df727 to your computer and use it in GitHub Desktop.
Resize div based on windows size - half of window size or 560px of smaller then 560x2
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
var h = (($(window).height()/2)<560) ? 560 : $(window).height()/2; | |
$('.header').height(h); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment