source: tmcsimulator/trunk/webapps/cptms/showtime.html @ 348

Revision 348, 646 bytes checked in by jdalbey, 7 years ago (diff)

Added gotoxmltime.html and other prototypes for ei notebook. They can be removed when no longer needed.

Line 
1<html>
2<body>
3<div id="timediv">0:00</div>
4<div id="main"></div>
5<div id="label">One</div>
6    <script  src="js/common.js"></script>
7<script>
8var timeDiv = document.getElementById("timediv");
9var labelDiv = document.getElementById("label");
10function gettime()
11{
12        loadJSON("sim_clock.json", function(response)
13        {
14           simclockjson = JSON.parse(response);
15           clockstring = simclockjson.clock;
16           timeDiv.innerHTML = clockstring;
17           digit = clockstring.charAt(clockstring.length-1)
18           labelDiv.innerHTML = digit
19        });
20}
21var myinterval = setInterval(gettime,1000);
22</script>
23</body>
24
25</html>
Note: See TracBrowser for help on using the repository browser.