Skip to content

Instantly share code, notes, and snippets.

@markreale
Created May 27, 2013 21:56
Show Gist options
  • Save markreale/5659278 to your computer and use it in GitHub Desktop.
Save markreale/5659278 to your computer and use it in GitHub Desktop.
A couple of objects to access screen and window size.
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