Skip to content

Instantly share code, notes, and snippets.

@yomotsu
Last active September 1, 2018 06:47
Show Gist options
  • Save yomotsu/303599e14bdaa88d4efb0cfcc78dd076 to your computer and use it in GitHub Desktop.
Save yomotsu/303599e14bdaa88d4efb0cfcc78dd076 to your computer and use it in GitHub Desktop.
ViewportSize
document.documentElement.clientWidth
document.documentElement.clientHeight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment