Created
May 27, 2013 21:56
-
-
Save markreale/5659278 to your computer and use it in GitHub Desktop.
A couple of objects to access screen and 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 winDim = {}; | |
winDim.X = window.innerWidth; | |
winDim.Y = window.innerHeight; | |
var screenDim = {}; | |
screenDim.X = screen.width; | |
screenDim.Y = screen.height; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment