Last active
August 29, 2015 14:20
-
-
Save puginabox/a6d169198531c7c6af42 to your computer and use it in GitHub Desktop.
targeting a screen size in javascript
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
if(screen.width > 600 && document.documentElement.clientWidth > 600) { | |
// dont run for smaller screens | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment