Changeset 401 in tmcsimulator for trunk/webapps
- Timestamp:
- 05/15/2019 06:07:22 AM (7 years ago)
- Location:
- trunk/webapps
- Files:
-
- 6 edited
-
cmsmonitor/index.html (modified) (5 diffs)
-
cptms/css/styles.css (modified) (1 diff)
-
einotebook/index.html (modified) (1 diff)
-
einotebook/maps/index.html (modified) (2 diffs)
-
einotebook/notebook.css (modified) (3 diffs)
-
einotebook/script/script.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/cmsmonitor/index.html
r386 r401 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 v </title>6 <title>CMS Monitor v0.2</title> 7 7 <style> 8 @font-face { 9 font-family: Scoreboard; 10 src: url('../cptms/js/scoreboard.ttf'); 11 } 8 12 * { 9 13 box-sizing: border-box; … … 27 31 width: 25%; 28 32 } 29 33 /* styling for cms monitor */ 34 #msgs{ 35 padding: 15px 10% 15px 10%; 36 } 37 #cms_info{ 38 font-size: 20px; 39 font-family: Arial; 40 font-weight:lighter; 41 color: white; 42 padding-left: 5%; 43 padding-right: 5%; 44 } 45 .cms_content{ 46 font-size: 34px; 47 font-family: Scoreboard; 48 font-weight: 550; 49 padding: 0px 20% 20px 20%; 50 } 51 .divider { 52 font-family: Scoreboard; 53 font-weight: 550; 54 padding-left: 5%; 55 padding-right: 5%; 56 } 30 57 /* Clear floats after the columns */ 31 58 .row:after { … … 36 63 </style> 37 64 </head> 38 <body onLoad="showRevision();">65 <body> 39 66 <div class="row"> 40 67 <div class="column left" > … … 52 79 </div> 53 80 54 <script src="../common/js/displayutils.js"></script> 55 <script src="../common/js/revision.js"></script> 81 56 82 <script src="../common/js/fileutils.js"></script> 83 <script src="../common/js/revision_number.dat"></script> 84 <script src="../common/js/displayutils.js"></script> 57 85 <script> 86 showRevision(); 58 87 var cmsLocations = {}; 59 88 // Load the CMS locations from the geojson file … … 88 117 var cmsLoc = cmsLocations[item.cms.index]; 89 118 // Build the message display 90 var current = (item.cms.message.phase1.Line1.toUpperCase() + ":" + 91 item.cms.message.phase1.Line2.toUpperCase() + ":" + 92 item.cms.message.phase1.Line3.toUpperCase() + ":" + 93 item.cms.message.phase2.Line1.toUpperCase() + ":" + 94 item.cms.message.phase2.Line2.toUpperCase() + ":" + 95 item.cms.message.phase2.Line3.toUpperCase()) 119 // divide the display message into 2 phases 120 var phase1 = item.cms.message.phase1.Line1.toUpperCase() + "<br>" + 121 item.cms.message.phase1.Line2.toUpperCase() + "<br>" + 122 item.cms.message.phase1.Line3.toUpperCase() + "<br>"; 123 var phase2 = item.cms.message.phase2.Line1.toUpperCase() + "<br>" + 124 item.cms.message.phase2.Line2.toUpperCase() + "<br>" + 125 item.cms.message.phase2.Line3.toUpperCase(); 126 96 127 // If the message isn't blank, append it to the list 97 if (current != ":::::") 128 // adding a seperate dotted line between phase1 and phase2 129 if (phase1 != "<br><br><br>" || phase2 != "<br><br>") 98 130 { 99 display.innerHTML += "<br>" + item.cms.index + ": " + 100 cmsLoc.properties.location + " " + cmsLoc.properties.street; 101 display.innerHTML += "<br>" + current + "<br>"; 131 display.innerHTML += "<div id=\"cms_info\">" + item.cms.index + ": " + 132 cmsLoc.properties.location + " " + cmsLoc.properties.street + "</div>"; 133 display.innerHTML += "<div class=\"cms_content\">" + phase1 + "</div>" + 134 "<div class=\"divider\"> -----------------------------------------------</div>" + 135 "<div class=\"cms_content\">" + phase2 + "</div>"; 102 136 } 103 137 } -
trunk/webapps/cptms/css/styles.css
r400 r401 39 39 } 40 40 #har-msg-display { 41 margin-right: 100px;42 margin-left: 100px;41 margin-right: 50%; /* 100px; */ 42 margin-left: 25%; /* 100px; */ 43 43 } 44 44 #har-msgcontent1 { -
trunk/webapps/einotebook/index.html
r393 r401 62 62 </tr> 63 63 --> 64 <tr style="height: 120px">64 <tr style="height: 80px"> 65 65 <td colspan='3' class="tabMenu"> 66 66 -
trunk/webapps/einotebook/maps/index.html
r386 r401 31 31 32 32 <!-- The Map --> 33 <div id="googleMapContent" style="display:none;">34 <iframe src="https://www.google.com/maps/d/embed?mid=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&z oom=9" width="640" height="480"></iframe>33 <div id="googleMapContent"> 34 <iframe src="https://www.google.com/maps/d/embed?mid=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&z=10" width="640" height="480"></iframe> 35 35 <div> 36 36 <!-- … … 38 38 scrolling=no src="https://drive.google.com/open?id=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&usp=sharing" marginheight=0 marginwidth=0></iframe> --> 39 39 40 <div id="atmsMapContent" style="display:inline;"><iframe frameborder=0 width=740 height=60040 <div id="atmsMapContent"><iframe frameborder=0 width="740" height="600" 41 41 scrolling=no src="../../cptms/index.html" marginheight=0 marginwidth=0></iframe></div> 42 <!-- <div id="atmsMapContent" style="display:inline;"><iframe frameborder=0 width=740 height=600 43 scrolling=no src="../../cptms.html" marginheight=0 marginwidth=0></iframe></div> 44 --> 42 45 43 </center> 46 44 </body> -
trunk/webapps/einotebook/notebook.css
r399 r401 7 7 body 8 8 { 9 margin:0px;9 margin:0px; 10 10 font-family: Verdana, sans-serif; 11 11 background-color:#FFFFFF; … … 86 86 margin-bottom: 2px; 87 87 padding-right: 16px; 88 /* Fix #152 attempt 89 resize: both; 90 overflow: auto; */ 88 91 /*width: 30%;*/ 89 92 /* width: 30%; */ … … 170 173 border: 1px solid #66CC66; 171 174 border-top: 0px; 172 height: 90%;175 height:100%; 173 176 padding:0px; 174 177 margin:0px; -
trunk/webapps/einotebook/script/script.js
r359 r401 51 51 52 52 // IF there was previously a current event THEN 53 if (highlightLatestEvent.oldEvent.id != Event.invalidID )53 if (highlightLatestEvent.oldEvent.id != Event.invalidID && currentEvent.id != 0) 54 54 { 55 55 highlightLatestEvent.oldEvent.unhighlight(); … … 64 64 } 65 65 66 67 /** Change color of text of expired events so they appear disabled. 68 * @param events The list of events 69 * @param currEvent The current event 70 */ 71 function greyOldEvents(events, currEvent) 72 { 73 // Examine all events 74 for (var evtNum = 0; evtNum < events.length; evtNum++) 75 { 76 // Change color of those before current time and Event 77 if (events[evtNum].time.compareTo(currEvent.time) < 0 && currEvent.id != events[evtNum].id) 78 { 79 events[evtNum].unhighlight(); 80 } 81 } 82 } 83 66 84 /** 67 85 * Loads the the script tab for the given document. … … 83 101 // add the Event's html 84 102 html += Script.events[i].html(); 85 //console.log(Script.events[i].html()); 86 } 103 } 104 87 105 88 106 // display events in iframe … … 97 115 Script.events.win.scrollTo(0, readCookie('scriptScrollY')); 98 116 117 greyOldEvents(Script.events, Script.events.getLastExecutedEvent(readCookie("time"))); 99 118 highlightLatestEvent(); 100 119
Note: See TracChangeset
for help on using the changeset viewer.
