Windows 8 devices are certainly showing variety today. New convertible Ultrabooks and Intel tablets have screens that fold over, slide out or detach from the keyboard. When you build an app, and send out to the market, you don't know if the user has one of these new devices, what type and or what position the screen is to the base. This could create a usability issue if you created an app that leverages the motion sensors.
One neat thing about HTML5 is the ability to store data locally, and a common use for that is creating a high score board for your game. The following is how I recently deployed this. This code is working in my WinRT app however it could be done in a pure HTML5 app running for PC desktop by simply swapping out the file read and write portions. I broke down the process into 5 steps
In a previous post I explained how adding sensors to HTML5 app is possible in Desktop mode but not yet supported. You can get it to work with a Google extension. Read this post. http://software.intel.com/en-us/blogs/2012/09/18/adding-ultrabook-sensor-control-to-html5-apps for more information.
Ultrabooks running Windows 8 with touch and sensor capabilities are soon to hit the market and for those of you developing HTML5 applications, you will be able to add these features to your applications. Currently we are waiting for these sensor features to be added to the HTML5 standard, but in the meantime you can start to build and test your HTML5 apps for touch and sensor capabilities with a Google extension.