-
-
Save sgeto/cdf119e49c96e258f2f7d1a66d55d84a to your computer and use it in GitHub Desktop.
detect Android OS version number in JavaScript. Found at http://krpano.com/forum/wbb/index.php?page=Thread&threadID=6652
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 ua = navigator.userAgent; | |
| if( ua.indexOf("Android") >= 0 ) | |
| { | |
| var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8)); | |
| if (androidversion < 2.3) | |
| { | |
| ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment