Skip to content

Instantly share code, notes, and snippets.

@icandid
Last active August 29, 2015 13:59
Show Gist options
  • Save icandid/10518946 to your computer and use it in GitHub Desktop.
Save icandid/10518946 to your computer and use it in GitHub Desktop.
get viewportsize
window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment