Created
March 16, 2018 10:53
-
-
Save carolina-vallejo/ba963ab9fa4f17225ed4336566103f6f to your computer and use it in GitHub Desktop.
is small is mobile
This file contains hidden or 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 isSmall = function() { | |
if (window.matchMedia('(max-width: ' + w_mobile + 'px)').matches) { | |
return true; | |
} else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment