source: tmcsimulator/trunk/EInotebook/summary/summary.js @ 359

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

Add EINotebook source

  • Property svn:executable set to *
Line 
1var incidents;
2
3/**
4 * @return The html for the list of incidents.
5 */
6function incidentsHTML()
7{
8       
9        var html = "";
10       
11        // FOR each incident
12        for (var i = 0; i < incidents.length; i++)
13        {
14                // add incident html
15                html += incidents[i].html();
16        }
17       
18        return html;
19}
20
21function loadSummary(theIncidents)
22{
23        incidents = theIncidents;
24        // display the list of incidents
25        document.getElementById("view").innerHTML = incidentsHTML();
26        window.scrollTo(0, readCookie("summaryScrollY"));
27}
Note: See TracBrowser for help on using the repository browser.