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

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