Created
October 19, 2016 19:32
-
-
Save lzcabrera/b5ae1b66c6833b7744c28edb2e5f22c7 to your computer and use it in GitHub Desktop.
get window size
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
var size = { | |
width: window.innerWidth || document.body.clientWidth, | |
height: window.innerHeight || document.body.clientHeight | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment