Doe is a highly capable device and screen orientation emulator for developing and debugging sensor-related web apps on desktop computers
It can be used to build and debug device orientation and screen orientation aware applications without needing to constantly test it on different devices.
If it works in doe then it works on devices.
Add the Device Orientation Emulator script to any web page you want to allow the emulator to run on when device orientation event support can not be detected:
<script src="https://richtr.github.io/doe/doe.js"></script>
That's it!
Now whenever this page loads and the current device does not support device orientation events this library will ask the user if they want to run your web page in the emulator :)
Once you have included the JavaScript file explained above you will be able to load the emulator.
You should see a screen like this:
Now you can play about with the emulator's tools to change the orientation of the device and the screen.
In any web browser that does not support device orientation (e.g. Desktop browsers) open one of the following pages:
https://richtr.github.io/threeVR/examples/vr_basic.html
https://richtr.github.io/Marine-Compass/
https://richtr.github.io/Full-Tilt/examples/vr_interactive.html
This emulator also supports the Screen Orientation API. If your browser does not support the Screen Orientation API then you can open the following page:
https://people.opera.com/richt/release/tests/doe/screenorientation.html
If your browser does not support Device Orientation Events then you will be asked if you want to load these pages in this emulator.
MIT. Copyright © Rich Tibbett.