[OpenLayers-Commits] r11195 - sandbox/cmoullet/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Feb 21 10:32:41 EST 2011
Author: cmoullet
Date: 2011-02-21 07:32:40 -0800 (Mon, 21 Feb 2011)
New Revision: 11195
Modified:
sandbox/cmoullet/openlayers/examples/accelerometer.html
Log:
Bugfixing
Modified: sandbox/cmoullet/openlayers/examples/accelerometer.html
===================================================================
--- sandbox/cmoullet/openlayers/examples/accelerometer.html 2011-02-21 15:27:39 UTC (rev 11194)
+++ sandbox/cmoullet/openlayers/examples/accelerometer.html 2011-02-21 15:32:40 UTC (rev 11195)
@@ -25,15 +25,12 @@
}
if (window.DeviceMotionEvent) {
window.addEventListener('devicemotion', function (event) {
- document.getElementById('result').innerHTML = "acceleration.x: " + event.acceleration.x+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "acceleration.y: " + event.acceleration.y+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "acceleration.z: " + event.acceleration.z+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "accelerationIncludingGravity.x: " + event.accelerationIncludingGravity.x+ "<br>";
+ document.getElementById('result').innerHTML = "accelerationIncludingGravity.x: " + event.accelerationIncludingGravity.x+ "<br>";
document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "accelerationIncludingGravity.y: " + event.accelerationIncludingGravity.y+ "<br>";
document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "accelerationIncludingGravity.z: " + event.accelerationIncludingGravity.z+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.alpha: " + event.rotationRate.alpha+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.beta: " + event.rotationRate.beta+ "<br>";
- document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.gamm: " + event.rotationRate.gamma+ "<br>";
+ //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.alpha: " + event.rotationRate.alpha+ "<br>";
+ //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.beta: " + event.rotationRate.beta+ "<br>";
+ //document.getElementById('result').innerHTML = document.getElementById('result').innerHTML + "rotationRate.gamm: " + event.rotationRate.gamma+ "<br>";
}, true);
}
if (window.MozOrientation) {
More information about the Commits
mailing list