| <!-- |
| * Copyright 2011 Research In Motion Limited. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| --> |
| <section id="accelerometer-container" class="ui-box ui-state-default ui-corner-all"> |
| <section class="h2 info-header"> |
| <section class="collapse-handle">Accelerometer</section> |
| <section class="drag-handle ui-state-default ui-corner-all ui-state-hover"> |
| <span class="ui-icon ui-icon-arrow-4"></span> |
| </section> |
| </section> |
| <section id="accelerometer" class="info ui-widget-content ui-corner-all" style="display: none;"> |
| <section class="accelerometer-info"> |
| <canvas style="display: block;" id="accelerometer-canvas" width="300" height="200"></canvas> |
| |
| <table class="panel-table"> |
| <tr> |
| <td colspan="2" style="text-align: center"> |
| <em> |
| Click and drag with the mouse to manipulate the device. <br/> |
| Hold the Shift key to modify 'alpha' |
| </em> |
| </td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-x">xAxis:</label></td> |
| <td><span id="accelerometer-x"></span>m / s^2</td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-y">yAxis:</label></td> |
| <td><span id="accelerometer-y"></span> m / s^2</td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-z">zAxis:</label></td> |
| <td><span id="accelerometer-z"></span> m / s^2</td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-alpha">alpha:</label></td> |
| <td><span id="accelerometer-alpha"></span> deg</td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-beta">beta:</label></td> |
| <td><span id="accelerometer-beta"></span> deg</td> |
| </tr> |
| <tr> |
| <td><label class="ui-text-label" for="accelerometer-gamma">gamma:</label></td> |
| <td><span id="accelerometer-gamma"></span> deg</td> |
| </tr> |
| <tr> |
| <td></td> |
| <td> |
| <button id="accelerometer-shake" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"> |
| <span class="ui-button-text">Shake</span> |
| </button> |
| </td> |
| </tr> |
| </table> |
| </section> |
| </section> |
| </section> |