Orientation/motion

resize event

timeStamp
window.innerWidthpx
window.innerHeightpx

orientationchange event

timeStamp
orientation.angledeg
orientation.type
lockOrientation
unlockOrientation

MediaQueryList event

timeStamp
media
matches

deviceorientation event

absolute
alphadeg (0 → 360)
betadeg (-180 → +180)
gammadeg (-90 → +90)

devicemotion event

acceleration.xm/s2
acceleration.ym/s2
acceleration.zm/s2
accelerationIncludingGravity.xm/s2
accelerationIncludingGravity.ym/s2
accelerationIncludingGravity.zm/s2
rotationRate.alphadeg/s
rotationRate.betadeg/s
rotationRate.gammadeg/s
intervalms



Orientation and motion data explained, on MDN