source: tmcsimulator/trunk/webapps/EInotebook/cad/cad.js @ 359

Revision 359, 540 bytes checked in by jdalbey, 7 years ago (diff)

Add EINotebook source

  • Property svn:executable set to *
Line 
1/**
2 * Setup the CAD screen.
3 */
4function setupCad()
5{
6  //updateCad();
7}
8
9var events;
10function loadScript(theEvents, theIncidents)
11{
12        events = theEvents;
13    updateCad();
14}
15
16/**
17 * Updates the CAD screen.
18 */
19function updateCad()
20{
21    // Set timer to do this again in one second
22        setTimeout("updateCad()", 1000);
23
24        var currentEvent = events.getLastExecutedEvent(readCookie("time"));
25    // Show current event to Current Event Window
26    var currDiv = document.getElementById("cadpadcontent");
27        currDiv.innerHTML = currentEvent.html();
28
29}
Note: See TracBrowser for help on using the repository browser.