Skip to content

joyqi/mobile-device-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Usage

Only one file (device.js) need to be included.

Example: https://joyqi.github.io/mobile-device-js/example.html

MobileDevice.getGlRenderer()

Returns GPU Model Name (eg: Apple A8 GPU).

MobileDevice.getModels()

Returns device models list (eg: ["iPad Air 2", "iPad Mini 4"]).

MobileDevice.is(match)

Detect device model.

MobileDevice.is('iPhone')
MobileDevice.is('iPhone 6s')

TODO

  1. Android Devices :)

About

Detect mobile's device model using javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published