resize canvas when app/window is being resized; add permission for audio capture...
[tricorder.git] / index.html
index e2bd3f17cc7b17bfa3f52edd1eafd4a57143ca4d..265df47fccaa315ab69c994c9c409f79e5bb0781 100644 (file)
 
 <div id="sideBottom">
 <ul id="navlist">
-<li id="navPos" onclick="switchModule('Pos');">Position</li>
-<li id="navGrav" onclick="switchModule('Grav');">Gravity</li>
-<li id="navOther" onclick="switchModule('Other');">Other</li>
+<li id="navPos">Position</li>
+<li id="navGrav">Gravity</li>
+<li id="navSound">Sound</li>
+<li id="navDev">Device</li>
+<li id="navOther">Other</li>
 </ul>
 </div>
 
 <ul id="sideRemark">
-<li onclick="toggleFullscreen();">Full Screen</li>
+<li id="fullScreenButton">Full Screen</li>
 </ul>
 </div>
 
@@ -98,6 +100,25 @@ a better device.
 </div>
 </section>
 
+<section id="sectSound">
+<p id="soundunavail">
+Sound sensors are unavailable on this tricorder device.
+<br/>Please talk to your superior officer or Starfleet contact to acquire
+a better device.
+</p>
+<div id="soundavail" style="display:none">
+<canvas id="soundcanvas" width="300" height="300"></canvas>
+</div>
+</section>
+
+<section id="sectDev">
+<table>
+<tr><td>Battery Level:</td><td id="devBattLevel" class="deviceVal">...</td></tr>
+<tr><td>Battery Status:</td><td id="devBattStatus" class="deviceVal">...</td></tr>
+<!-- to come : storage data -->
+</table>
+</section>
+
 <section id="sectOther">
 <p>This tricorder model doesn't have other sensors yet, please contact
 the <a href="http://www.kairo.at/apps" target="_blank">Starfleet science