isMobile is a simple javascript library that detects mobile devices.
Apple devices
isMobile.apple.phone
isMobile.apple.ipod
isMobile.apple.tablet
isMobile.apple.device
(any mobile Apple device)Android devices
isMobile.android.phone
isMobile.android.tablet
isMobile.android.device
(any mobile Android device)Amazon Silk devices (also passes Android checks)
isMobile.amazon.phone
isMobile.amazon.tablet
isMobile.amazon.device
(any mobile Amazon Silk device)Windows devices
isMobile.windows.phone
isMobile.windows.tablet
isMobile.windows.device
(any mobile Windows device)Specific seven inch devices
isMobile.seven_inch
true
if the device is one of the following 7" devices:Other devices
isMobile.other.blackberry_10
isMobile.other.blackberry
isMobile.other.opera
(Opera Mini)isMobile.other.firefox
isMobile.other.chrome
isMobile.other.device
(any "Other" device)Aggregate Groupings
isMobile.any
- any device matchedisMobile.phone
- any device in the 'phone' groups aboveisMobile.tablet
- any device in the 'tablet' groups above