Last active
August 29, 2015 14:20
-
-
Save andreud/ca4580307a3ed6416f7a to your computer and use it in GitHub Desktop.
Screen Height
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 screenHeight() { | |
| if($(window).width() > 767 ) { | |
| var h = parseInt($(window).height()), | |
| h_head = 80; | |
| var h_final = ( h - parseInt(h_head) ); | |
| var h_svg = h_final*5; | |
| $('.screen-height').css('height',h+'px'); | |
| } | |
| } | |
| screenHeight(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment