Workaround for limitations of devicemotion event in iframes
$ npm install mobile-gyro-patch
for static html page, you have to just load script on the page
var roundmeMobileGyroPatch = require('mobile-gyro-patch');
for dynamic iframe loading (ajax)
var roundmeMobileGyroPatch = require('mobile-gyro-patch');
// call when iframe loaded
roundmeMobileGyroPatch()