Permalink
Browse files

js/orientation: Show the raw orientation angle.

  • Loading branch information...
1 parent 86d1285 commit eacb4111e3c196a79ccf0f9ae807646864559d62 @ariya committed Aug 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/orientation/index.html
@@ -8,10 +8,10 @@
var s = 'Unknown',
angle = +window.orientation;
if (angle === 0 || angle === 180) {
- s = 'Portrait';
+ s = 'Portrait (angle = ' + angle + ')';
}
if (angle === 90 || angle === -90) {
- s = 'Landscape';
+ s = 'Landscape (angle = ' + angle + ')';
}
document.getElementById('status').innerHTML = s;
};

0 comments on commit eacb411

Please sign in to comment.