[OpenLayers-Commits] r11202 - sandbox/cmoullet/openlayers/examples

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 21 11:07:07 EST 2011


Author: cmoullet
Date: 2011-02-21 08:07:07 -0800 (Mon, 21 Feb 2011)
New Revision: 11202

Modified:
   sandbox/cmoullet/openlayers/examples/accelerometer.html
Log:
Mixing languages...

Modified: sandbox/cmoullet/openlayers/examples/accelerometer.html
===================================================================
--- sandbox/cmoullet/openlayers/examples/accelerometer.html	2011-02-21 16:04:34 UTC (rev 11201)
+++ sandbox/cmoullet/openlayers/examples/accelerometer.html	2011-02-21 16:07:07 UTC (rev 11202)
@@ -21,10 +21,10 @@
                         document.getElementById('resultDeviceOrientation').innerHTML = "Alpha: " + event.alpha + "<br>";
                         document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Beta: " + event.beta + "<br>";
                         document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.gamma + "<br>";
-                        if (typeof event.absolute != 'undefined') {
+                        if (typeof(event.absolute) != 'undefined') {
                             document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.absolute + "<br>";
                         }
-                        if (typeof event.compassCalibrated != 'undefined') {
+                        if (typeof(event.compassCalibrate) != 'undefined') {
                             document.getElementById('resultDeviceOrientation').innerHTML = document.getElementById('resultDeviceOrientation').innerHTML + "Gamma: " + event.compassCalibrated + "<br>";
                         }
                     }, true);
@@ -35,12 +35,12 @@
                         document.getElementById('resultDeviceMotion').innerHTML = "accelerationIncludingGravity.x: " + event.accelerationIncludingGravity.x + "<br>";
                         document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "accelerationIncludingGravity.y: " + event.accelerationIncludingGravity.y + "<br>";
                         document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "accelerationIncludingGravity.z: " + event.accelerationIncludingGravity.z + "<br>";
-                        if (typeof event.acceleration != 'undefined') {
+                        if (typeof(event.acceleration) != 'undefined') {
                             document.getElementById('resultDeviceMotion').innerHTML = "acceleration.x: " + event.acceleration.x + "<br>";
                             document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "acceleration.y: " + event.acceleration.y + "<br>";
                             document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "acceleration.z: " + event.acceleration.z + "<br>";
                         }
-                        if (typeof event.rotationRate != 'undefined') {
+                        if (typeof(event.rotationRate) != 'undefined') {
                             document.getElementById('resultDeviceMotion').innerHTML = "rotationRate.alpha: " + event.rotationRate.alpha + "<br>";
                             document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "rotationRate.beta: " + event.rotationRate.beta + "<br>";
                             document.getElementById('resultDeviceMotion').innerHTML = document.getElementById('resultDeviceMotion').innerHTML + "rotationRate.gamma: " + event.rotationRate.gamma + "<br>";



More information about the Commits mailing list