No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.project
LICENSE
README.markdown
mobile-useragent-info.js
test.html
test.js

README.markdown

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.