Created
June 10, 2018 22:34
-
-
Save lonekorean/6f5c84bbfc0d0b4ce3b5b8dcaed1439d to your computer and use it in GitHub Desktop.
Getting viewport dimensions
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
let viewportWidth = document.documentElement.clientWidth; | |
let viewportHeight = document.documentElement.clientHeight; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment