4fea967b43
Signed-off-by: Keith Irwin <mail@keithirwin.us> |
||
---|---|---|
icons | ||
.gitignore | ||
LICENSE.md | ||
README.md | ||
index.html | ||
rose.svg | ||
style.css |
README.md
Compass web app
by Keith Irwin
Uses DeviceOrientationEvent to show a phone's polar orientation.
Instructions
Open compass.keithirwin.us on a smartphone with a compass. Hold the phone level and it should show your direction.
Is this accurate?
No, not really. Results may vary. As of this writing, Firefox and Chrome browsers handle the DeviceOrientation spec differently. It's only been tested on Chrome for Android.
Known issues
- When the screen is rotated, the image gets rotated 90 degrees. I don' know how this could be fixed.
Image sources
The images used in this app were labeled for reuse with modification:
- The main compass image is from Wikimedia Commons
- The icons are adapted from an image found on goodfreephotos.com