Chapter 6: Device APIs

Dive Into HTML5 has an in-depth explanation of the Geolocation API at http://diveintohtml5.info/geolocation.html, whereas the MozDev article “Orientation and Motion Data Explained” gives a good overview of three-dimensional orientation and movement: https://developer.mozilla.org/en-US/docs/DOM/Orientation_and_motion_data_explained/.

The Fullscreen API is explained in the Sitepoint article “How to Use the HTML5 Full-Screen API” by Craig Buckler, although the API changed slightly as I was writing this, so some object names or properties may have been updated. You can find the article at http://www.sitepoint.com/html5-full-screen-api/.

The Battery Status API is well explained by David Walsh at http://davidwalsh.name/battery-api/ ...

Get The Modern Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.