mozilla

Revision 432033 of Template:DeviceOrientationEventProperties

  • Revision slug: Template:DeviceOrientationEventProperties
  • Revision title: Template:DeviceOrientationEventProperties
  • Revision id: 432033
  • Created:
  • Creator: ethertank
  • Is current revision? No
  • Comment

Revision Content

<%/* Parameter : none */ var el = env.locale; switch (el) { case "yourlocale" : %> alpha <%-template("readOnlyInline")%> double (float) The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device. beta <%-template("readOnlyInline")%> double (float) The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward. gamma <%-template("readOnlyInline")%> double (float) The current orientation of the device around the Y axis; that is, how far the device is turned left or right. absolute <%-template("readOnlyInline")%> boolean This value is true if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. <% break; default: %> alpha <%-template("readOnlyInline")%> double (float) The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device. beta <%-template("readOnlyInline")%> double (float) The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward. gamma <%-template("readOnlyInline")%> double (float) The current orientation of the device around the Y axis; that is, how far the device is turned left or right. absolute <%-template("readOnlyInline")%> boolean This value is true if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is false. <% break; } %>

Revision Source

<%/*
    Parameter : none
*/

var el = env.locale;

switch (el) {

    case "yourlocale" :

%><tr>
  <td><code>alpha</code> <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device.</td>
</tr>
<tr>
  <td><code>beta</code> <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward.</td>
</tr>
<tr>
  <td><code>gamma</code>  <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Y axis; that is, how far the device is turned left or right.</td>
</tr>
<tr>
  <td><code>absolute</code> <%-template("readOnlyInline")%></td>
  <td>boolean</td>
  <td>This value is <code>true</code> if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is <code>false</code>.</td>
</tr><%

        break;
    default:

%><tr>
  <td><code>alpha</code> <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Z axis; that is, how far the device is rotated around a line perpendicular to the device.</td>
</tr>
<tr>
  <td><code>beta</code> <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the X axis; that is, how far the device is tipped forward or backward.</td>
</tr>
<tr>
  <td><code>gamma</code>  <%-template("readOnlyInline")%></td>
  <td>double (float)</td>
  <td>The current orientation of the device around the Y axis; that is, how far the device is turned left or right.</td>
</tr>
<tr>
  <td><code>absolute</code> <%-template("readOnlyInline")%></td>
  <td>boolean</td>
  <td>This value is <code>true</code> if the orientation is provided as a difference between the device coordinate frame and the Earth coordinate frame; if the device can't detect the Earth coordinate frame, this value is <code>false</code>.</td>
</tr><%

        break;
} %>
Revert to this revision