story
(I’m now just going to claim that zero was the extreme I was referring to.)
[0] http://de.wikipedia.org/w/index.php?title=Datei:Susan_Helms_...
Edit: The laptop in question — model A31p from 2003 — doesn’t have an accelerometer. http://www.thinkwiki.org/wiki/Category:A31p
Initially, an object falling will accelerate with g=9.81m/s^2, after it reaches the ground it will de-accelerate to a speed of 0m/s in a couple of ms. You are confusing weightlessness/zero-g with no acceleration.
I know it has an accelerometer (I've seen the bundled Windows software use it), but I don't know where the API to access that data is.
I am not sure whether Firefox or Chrome/Chromium on Linux will actually read the data that is provided by hdaps.
It works - somewhat - on an iPad - but there's a problem in that tilting the iPad makes the screen rotate and locking the screen seems to disable the tilt events.
Best experience is on a MacBook with Chrome, IMHO.
Mozilla does it somewhat differently:
https://developer.mozilla.org/en/Detecting_device_orientatio...
http://studio.html5rocks.com/samples/orientation/index.html (see VideoPhysicsController.prototype._onTilt() )
Here's the basic usage for chrome: (for firefox the event is MozOrientation, and values are radians rather than degrees)
window.addEventListener('deviceorientation', function(evt) {
var x = evt.gamma, y = evt.beta;
}, false);