Skip to content

Instantly share code, notes, and snippets.

@maccath
Created March 27, 2013 09:20
Show Gist options
  • Save maccath/5252923 to your computer and use it in GitHub Desktop.
Save maccath/5252923 to your computer and use it in GitHub Desktop.
iPhone/iPod/iPad-only functionality
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) {
// iPhone/iPod/iPad-only functionality here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment