Created
March 31, 2016 23:09
-
-
Save Metaviolet/40187e3c0cf309aed6eab9f35bb1cc5f to your computer and use it in GitHub Desktop.
Detección de navegador móvil
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
| if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |
| // some code.. | |
| } | |
| //jQuery way | |
| $.browser.device = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment