Changeset 331 in tmcsimulator for trunk/webapps
- Timestamp:
- 03/18/2019 07:49:32 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/cms_monitor.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/cms_monitor.html
r328 r331 4 4 <!-- Launch with python -m CGIHTTPServer 80 --> 5 5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> 6 <title>CMS Monitor v0. 1</title>6 <title>CMS Monitor v0.2</title> 7 7 <style> 8 html, body { 9 height: 100%; 10 margin: 0; 11 padding: 0; 12 background-color: darkgray; 13 } 8 * { 9 box-sizing: border-box; 10 } 11 body { 12 background-color: #000033; 13 } 14 /* Create three unequal columns that float next to each other */ 15 .column { 16 float: left; 17 padding: 10px; 18 background-color:black; 19 color:goldenrod 20 } 21 22 .left { 23 width: 50%; 24 } 25 26 .middle, .right { 27 width: 25%; 28 } 29 30 /* Clear floats after the columns */ 31 .row:after { 32 content: ""; 33 display: table; 34 clear: both; 35 } 14 36 </style> 15 </head>37 </head> 16 38 <body> 17 Active CMS Messages 18 <div id="msgs"></div> 39 <div class="row"> 40 <div class="column left" > 41 <h2>Active CMS Messages</h2> 42 <p id="msgs"></p> 43 </div> 44 <div class="column middle" > 45 <h2>Active HAR Messages</h2> 46 <p>Not implemented yet.</p> 47 </div> 48 <div class="column right" > 49 <h2>Active Lane Closures</h2> 50 <p>Not implemented yet.</p> 51 </div> 52 </div> 53 54 19 55 <script src="js/common.js"></script> 20 56 <script> … … 51 87 var cmsLoc = cmsLocations[item.cms.index]; 52 88 // Build the message display 53 var current = (item.cms.message.phase1.Line1 + ":" +54 item.cms.message.phase1.Line2 + ":" +55 item.cms.message.phase1.Line3 + ":" +56 item.cms.message.phase2.Line1 + ":" +57 item.cms.message.phase2.Line2 + ":" +58 item.cms.message.phase2.Line3 )59 // If the message isn't blank, append it to the div89 var current = (item.cms.message.phase1.Line1.toUpperCase() + ":" + 90 item.cms.message.phase1.Line2.toUpperCase() + ":" + 91 item.cms.message.phase1.Line3.toUpperCase() + ":" + 92 item.cms.message.phase2.Line1.toUpperCase() + ":" + 93 item.cms.message.phase2.Line2.toUpperCase() + ":" + 94 item.cms.message.phase2.Line3.toUpperCase()) 95 // If the message isn't blank, append it to the list 60 96 if (current != ":::::") 61 97 { 62 98 display.innerHTML += "<br>" + item.cms.index + ": " + 63 99 cmsLoc.properties.location + " " + cmsLoc.properties.street; 64 display.innerHTML += "<br>" + current ;100 display.innerHTML += "<br>" + current + "<br>"; 65 101 } 66 102 }
Note: See TracChangeset
for help on using the changeset viewer.
