-
-
Save graphicagenda/8e46a034f7bc2ef669b5bac6e5207f3e to your computer and use it in GitHub Desktop.
[vanilla JS window width and height] #unlabeled
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
// vanilla JS window width and height | |
var w=window, | |
d=document, | |
e=d.documentElement, | |
g=d.getElementsByTagName('body')[0], | |
x=w.innerWidth||e.clientWidth||g.clientWidth, | |
y=w.innerHeight||e.clientHeight||g.clientHeight; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment