<!DOCTYPE HTML> <html> <body> <script> function handler(ev) {} window.addEventListener("devicemotion", handler); window.ondeviceorientation = handler; </script> </body> </html>