<head>
<title>MCTX3420 Web Interface</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <!--[if lte IE 8]>
- <script language="javascript" type="text/javascript" src="static/excanvas.min.js"></script>
- <![endif]-->
<script type="text/javascript" src="static/jquery-1.10.1.min.js"></script>
- <script type="text/javascript" src="static/jquery.flot.min.js"></script>
<script type="text/javascript" src="static/mctx.gui.js"></script>
+
<link rel="stylesheet" type="text/css" href="static/style.css">
<link rel="stylesheet" type="text/css" href="static/nav-menu.css">
<script type="text/javascript">
- $(document).ready(function () {
- $("#menu-container").populateNavbar();
- $("#cam1").setCamera();
- });
+ runBeforeLoad().done(function () {
+ $(document).ready(function () {
+ //Show the content!
+ $("#content").css("display", "block");
+ //Set the welcome bar
+ var name = " " + (mctx.friendlyName ? mctx.friendlyName : "");
+ $("#welcome-container").text("Welcome"+ name + "!");
+ $("#logout-container").css("display", "block");
+ $("#logout").click(function () {
+ $("#logout").logout();
+ });
+ });
+ })
+
</script>
</head>
<body>
<div id="header">
- <span id="title">Exploding Cans</span>
+ <div id="leftnav">
+ <a href="http://www.uwa.edu.au/" target="_blank">
+ <img alt = "The University of Western Australia"
+ src="static/uwacrest-text.png">
+ </a>
+ <span id="title">Exploding Cans</span>
+ </div>
<div id="rightnav">
- <div id="menu-container" class="nav-menu">
- </div>
+ <span id="welcome-container">
+ </span>
<span id="date">
<script type="text/javascript">getDate();</script>
</span>
+ <div id="logout-container">
+ <form action="#">
+ <div>
+ <input type="button" id="logout" value="Logout">
+ </div>
+ </form>
+ </div>
</div>
<div class="clear"></div>
</div>
<!-- End header -->
+ <noscript>
+ <div class="widget centre">
+ <div class="title">JavaScript required</div>
+ This website requires JavaScript to function correctly.
+ Please enable JavaScript to use this site.
+ </div>
+ </noscript>
+
<div id="content">
<div id="sidebar">
<div class="widget">
- <div class="title">Status</div>
- <div class="item">
- <table class="status centre">
- <tr><th>Module</th> <th>State</th></tr>
- <tr><td>Case interlock</td> <td>FAIL</td></tr>
- <tr><td>Pressure level</td> <td>PASS</td></tr>
- </table>
- </div>
- </div>
-
- <div class="widget">
- <div class="title">Pressure controls</div>
+ <div class="title">Navigation menu</div>
+ <div class="nav-menu">
+ <ul>
+ <li><a href="index.html"><span>Home</span></a></li>
+ <li><a href="control.html"><span>Experiment control</span></a></li>
+ <li><a href="pintest.html"><span>Pin debugging</span></a></li>
+ <li class="last"><a href="#"><span>Help</span></a></li>
+ </ul>
+ </div>
</div>
-
<div class="widget">
- <div class="title">Login</div>
- <div class="item">
- <form action="#">
- <table class="centre">
- <tr><td>Username</td><td><input name="username" type="text"></td></tr>
- <tr><td>Password</td><td><input name="pass" type="password"></td></tr>
- <tr><td></td><td><input type="button" value="Submit"></td></tr>
- </table>
- </form>
- </div>
+ <div class="title">Help</div>
+
</div>
</div>
<!-- End sidebar -->
<div id="main">
<div class="widget">
- <div class="title">Dashboard</div>
-
+ <div class="title centre">Welcome</div>
+ <p>
+ Welcome to the MCTX3420 remote pressure vessel experiment site!
+ </p>
+ <p>
+ To explore how this system works, hover over the elements of the
+ system diagram below. Clicking each element will lead to a new
+ page that briefly describes that component of the system.
+ </p>
+ <p>
+ For the full documentation, see the project wiki at:
+ <a href="https://github.com/szmoore/MCTX3420/wiki">
+ https://github.com/szmoore/MCTX3420/wiki
+ </a>
+ </p>
+ <p>
+ To begin a new experiment, use the left navigation pane.
+ </p>
</div>
-
<div class="widget">
- <div class="title">Strain gauges</div>
- <div id="strain-graphs" class="graph">
- <!-- Strain graph placeholder -->
- <script type="text/javascript">
- $("#strain-graphs").setStrainGraphs();
- </script>
- </div>
- </div>
-
- <div class="widget">
- <div class="title">Camera Dilatometer</div>
- <img src="#" alt="Camera 1" id="cam1" class="centre">
+ <div class="title">System diagram</div>
+ <img id="sbd" src="static/sbd.png" class="centre" alt="System diagram" usemap="#sbd-map">
+ <map name="sbd-map">
+ <area shape="rect" coords="78,44,178,94" href="#" alt="Client PC" title="You">
+ <area shape="rect" coords="238,44,338,94" href="#" alt="BBB">
+ <area shape="rect" coords="398,44,498,94" href="#" alt="Electronics">
+ <area shape="rect" coords="238,104,338,154" href="#" alt="Pneumatics">
+ <area shape="rect" coords="128,184,228,234" href="#" alt="Sensors">
+ <area shape="rect" coords="348,184,448,234" href="#" alt="Camera">
+ <area shape="rect" coords="128,238,228,288" href="#" alt="Strain Can">
+ <area shape="rect" coords="348,238,448,288" href="#" alt="Explode Can" title="Won't happen">
+ <area shape="rect" coords="13,206,113,231" href="#" alt="Enclosure" id="enclosure-btn">
+ <area shape="rect" coords="13,240,113,265" href="#" alt="Mounting" id="mounting-btn">
+ <area shape="rect" coords="116,175,457,294" alt="Mounting Area" id="mounting-area">
+ <area shape="poly" coords="230,30,524,30,524,294,115,294,115,100,230,100,230,30" alt="Enclosure Area" id="enclosure-area">
+ </map>
+ <script type="text/javascript" src="static/jquery.maphilight.min.js">
+
+ </script>
+ <script type="text/javascript">
+ $("#sbd").maphilight({
+ fillOpacity: 0.4,
+ strokeColor: '000000',
+ strokeOpacity: 0.7
+ });
+
+ $.fn.hilightToggle = function (on) {
+ var data = $(this).data("maphilight") || {};
+ data.neverOn = !on;
+ $(this).data("maphilight", data);
+ return this;
+ };
+
+ $("#mounting-area").hilightToggle(false);
+ $("#enclosure-area").hilightToggle(false);
+
+ $("#mounting-btn").mouseover(function () {
+ $("#mounting-area").hilightToggle(true).mouseover();
+ }).mouseout(function () {
+ $("#mounting-area").hilightToggle(false);
+ });
+
+ $("#enclosure-btn").mouseover(function () {
+ $("#enclosure-area").hilightToggle(true).mouseover();
+ }).mouseout(function () {
+ $("#enclosure-area").hilightToggle(false);
+ });
+
+ </script>
</div>
</div>
<!-- End main content -->
-
</div>
</body>
</html>