Created
May 18, 2012 11:51
-
-
Save paulgosnell/2724869 to your computer and use it in GitHub Desktop.
detect ios5
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
function load() { | |
if (navigator.userAgent.match(/OS 5(_\d)+ like Mac OS X/i)) { document.body.className+=" ios5" } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment