Created
May 21, 2013 10:20
-
-
Save swape/5618813 to your computer and use it in GitHub Desktop.
Mobile detector
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( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ){ | |
// do something for mobile browsers | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for windows mobile and other windows touch devices you can add iemobile|Touch to the list.