function isLandscape() {
  var orientation = window.orientation;
  if (isR7()) {
    orientation += 90;
  }
  return orientation === 90 || orientation === -90;
}
Checks mobile device orientation.
@returns {boolean} True if landscape orientation.