[OpenLayers-Commits] r11295 - in sandbox/sbrunner: . test
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Wed Feb 23 05:37:33 EST 2011
Author: sbrunner
Date: 2011-02-23 02:37:33 -0800 (Wed, 23 Feb 2011)
New Revision: 11295
Added:
sandbox/sbrunner/test/
sandbox/sbrunner/test/orientation.html
Log:
add orientation test
Added: sandbox/sbrunner/test/orientation.html
===================================================================
--- sandbox/sbrunner/test/orientation.html (rev 0)
+++ sandbox/sbrunner/test/orientation.html 2011-02-23 10:37:33 UTC (rev 11295)
@@ -0,0 +1,14 @@
+<html>
+<head>
+<title>Test orientation</title></head>
+<body>
+<script>
+window.addEventListener("deviceorientation", function(event) {
+ // process event.alpha, event.beta and event.gamma
+ document.write("alpha: " + event.alpha + "<br/>");
+ document.write("beta: " + event.beta + "<br/>");
+ document.write("gamma: " + event.gamma + "<br/>");
+}, true);
+</script>
+</body>
+</html>
More information about the Commits
mailing list