Rename help/data file + fix the sidebar width
[matches/MCTX3420.git] / testing / MCTXWeb / public_html / index.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3   <head>
4     <title>MCTX3420 Web Interface</title>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6     <script type="text/javascript" src="static/jquery-1.10.1.min.js"></script>
7     <script type="text/javascript" src="static/mctx.gui.js"></script>
8     
9     <link rel="stylesheet" type="text/css" href="static/style.css">
10     <link rel="stylesheet" type="text/css" href="static/nav-menu.css">
11     <script type="text/javascript">
12       runBeforeLoad().done(function () {
13         $(document).ready(function () {
14          //Show the content!
15          $("#content").css("display", "block");
16          //Set the welcome bar
17          var name = " " + (mctx.friendlyName ? mctx.friendlyName : "");
18          $("#welcome-container").text("Welcome"+ name + "!");
19          $("#logout-container").css("display", "block");
20          $("#logout").click(function () {
21            $("#logout").logout();
22          });
23        });       
24       }).always(function () {
25         $(document).ready(function () {
26           //$("#sidebar-menu").populateNavMenu();
27         });
28       });
29
30     </script>
31   </head>
32   
33   <body>
34     <div id="header-wrap">
35       <div id="header">
36         <div id="leftnav">
37           <a href="http://www.uwa.edu.au/" target="_blank">
38             <img alt = "The University of Western Australia"
39             src="static/uwacrest-text.png">
40           </a>
41           <span id="title">Exploding Cans</span>
42         </div>
43         <div id="rightnav">
44           <span id="welcome-container">
45           </span>
46           <span id="date">
47             <script type="text/javascript">getDate();</script>
48           </span>
49           <div id="logout-container">
50             <form action="#">
51               <div>
52                 <input type="button" id="logout" value="Logout">
53               </div>
54             </form>
55           </div>
56         </div>
57         <div class="clear"></div>
58       </div>
59     </div>
60     <!-- End header -->
61     
62     <div id="content-wrap">
63       <noscript>
64         <div class="widget centre">
65           <div class="title">JavaScript required</div>
66           This website requires JavaScript to function correctly.
67           Please enable JavaScript to use this site.
68         </div>
69       </noscript>
70
71       <div id="content">
72         <div id="sidebar">
73           <div class="widget">
74             <div class="title">Navigation menu</div>
75             <div id="sidebar-menu" class="nav-menu">
76             <ul>
77                <li><a href="index.html"><span>Home</span></a></li>
78                <li><a href="control.html"><span>Experiment control</span></a></li>
79                <li><a href="data.html"><span>Experiment data</span></a></li>
80                <li><a href="pintest.html"><span>Pin debugging</span></a></li>
81                <li class="last"><a href="help.html"><span>Help</span></a></li>
82             </ul>
83             </div>
84           </div>
85           <div class="widget">
86             <div class="title">Help</div>
87
88           </div>
89         </div>
90         <!-- End sidebar -->
91
92         <div id="main">
93           <div class="widget">
94             <div class="title centre">Welcome</div>
95               <p>
96                 Welcome to the MCTX3420 remote pressure vessel experiment site!
97               </p>
98               <p>
99                 To explore how this system works, hover over the elements of the
100                 system diagram below. Clicking each element will lead to a new
101                 page that briefly describes that component of the system.
102               </p>
103               <p>
104                 For the full documentation, see the project wiki at:
105                 <a href="https://github.com/szmoore/MCTX3420/wiki">
106                   https://github.com/szmoore/MCTX3420/wiki
107                 </a>
108               </p>
109               <p>
110                 To begin a new experiment, use the left navigation pane.
111               </p>
112           </div>
113           <div class="widget">
114             <div class="title">System diagram</div>
115             <img id="sbd" src="static/sbd4.png" class="centre" alt="System diagram" usemap="#sbd-map">
116             <map name="sbd-map">
117               <area shape="rect" coords="8,72,105,118" href="#" alt="Client PC" title="You">
118               <area shape="rect" coords="176,72,275,118" href="#" alt="BBB">
119               <area shape="rect" coords="298,53,395,145" href="#" alt="Electronics">
120               <area shape="rect" coords="446,53,543,145" href="#" alt="Pneumatics">
121               <area shape="rect" coords="218,191,315,237" href="#" alt="Sensors">
122               <area shape="rect" coords="418,191,515,237" href="#" alt="Camera">
123               <area shape="rect" coords="218,237,315,285" href="#" alt="Strain Can">
124               <area shape="rect" coords="418,237,515,285" href="#" alt="Explode Can" title="Won't happen">
125               <area shape="rect" coords="87,191,183,237" href="#" alt="Case" id="case-btn">
126               <area shape="rect" coords="87,257,183,303" href="#" alt="Mounting" id="mounting-btn">
127               <area shape="rect" coords="210,182,540,317" alt="Mounting Area" id="mounting-area">
128               <area shape="poly" coords="172,27,548,27,548,317,212,317,212,156,172,156" alt="case Area" id="case-area">
129             </map>
130             <script type="text/javascript" src="static/jquery.maphilight.min.js">
131
132             </script>
133             <script type="text/javascript">
134               $("#sbd").maphilight({
135                 fillOpacity: 0.4,
136                 strokeColor: '000000',
137                 strokeOpacity: 0.7
138               });
139
140               $.fn.hilightToggle = function (on) {
141                 var data = $(this).data("maphilight") || {};
142                 data.neverOn = !on;
143                 $(this).data("maphilight", data);
144                 return this;
145               };
146
147               $("#mounting-area").hilightToggle(false);
148               $("#case-area").hilightToggle(false);
149
150               $("#mounting-btn").mouseover(function () {
151                 $("#mounting-area").hilightToggle(true).mouseover();
152               }).mouseout(function () {
153                 $("#mounting-area").hilightToggle(false);
154               });
155
156               $("#case-btn").mouseover(function () {
157                 $("#case-area").hilightToggle(true).mouseover();
158               }).mouseout(function () {
159                 $("#case-area").hilightToggle(false);
160               });
161
162             </script>
163             
164             <div class="clear"></div>
165           </div>
166         </div>
167     </div>
168       <!-- End main content -->
169     </div>
170   </body>
171 </html>

UCC git Repository :: git.ucc.asn.au