Simple compass PWA
 
 
 
Go to file
Keith Irwin 4fea967b43 moved styles to seperate file
Signed-off-by: Keith Irwin <mail@keithirwin.us>
2016-12-13 16:58:09 -05:00
icons init commit 2016-12-12 22:09:21 -05:00
.gitignore added gitignore 2016-12-13 16:28:58 -05:00
LICENSE.md init commit 2016-12-12 22:09:21 -05:00
README.md moved styles to seperate file 2016-12-13 16:58:09 -05:00
index.html moved styles to seperate file 2016-12-13 16:58:09 -05:00
rose.svg init commit 2016-12-12 22:09:21 -05:00
style.css moved styles to seperate file 2016-12-13 16:58:09 -05:00

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: