Last active
May 3, 2020 14:24
-
-
Save yokesharun/292bb9974cf446bef3d7 to your computer and use it in GitHub Desktop.
Javascript | Jquery : Detect Your Device either Mobile or Desktop
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 is_mobile = 'No'; | |
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { | |
is_mobile = 'Yes'; | |
} | |
// print your file output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment