Skip to content

daniloercoli/JavaScript-mobile-useragent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Mobile User Agent

Mobile Browser detection in JavaScript. Uses a simple and fast algorithm to recognize major mobile browsers or platform.

Overview

Simply add mobile-useragent-info.js to your page. The Mobile UA and Platform detected by the library will be available in wpcom_mobile_user_agent_info.matchedPlatformName, and wpcom_mobile_user_agent_info.matchedUserAgentName.

The library also exposes a set of functions like 'isAndroid', isOperaMini, etc, you can use in your code.

Available online here: http://js-ua.eritreo.it

Contribute

If you found a mobile browser or platform this library fails to recognize, feel free to submit an issue. Please provide the user agent string. And well, if you also want to provide the patch, it's even better.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published