Skip to content

Instantly share code, notes, and snippets.

@paulgosnell
Created May 18, 2012 11:51
Show Gist options
  • Save paulgosnell/2724869 to your computer and use it in GitHub Desktop.
Save paulgosnell/2724869 to your computer and use it in GitHub Desktop.
detect ios5
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