Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Detect if a user is on a mobile device based on window size and then platform
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
isMobileDevice.js https://github.com/code-for-coffee Last Updated 1/21/13 Released under GPL. We want to make sure that we only display certain fields. This script will detect if a user is on a mobile device. Include this in <body onload="isMobileDevice();">