Changeset 418 in tmcsimulator for trunk/webapps/einotebook/scripts/Event.js
- Timestamp:
- 06/20/2019 03:46:03 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/einotebook/scripts/Event.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/einotebook/scripts/Event.js
r364 r418 33 33 this.highlight = highlight; 34 34 this.unhighlight = unhighlight; 35 this.normalize = normalize; 35 36 this.focus = focus; 36 37 … … 184 185 events.doc.getElementById(this.eventHeaderID).style.borderColor = "blue"; 185 186 events.doc.getElementById(this.eventHeaderID).style.backgroundColor = "yellow"; 187 events.doc.getElementById(this.eventHeaderID).style.color = "black"; 188 events.doc.getElementById(this.dataID).style.color = "black"; 189 events.doc.getElementById(this.dataID).style.backgroundColor = incidentColor[this.incident.number]; 186 190 187 191 // IF this event is expanded THEN … … 194 198 events.doc.getElementById(this.dataID).style.border = "none"; 195 199 } 196 200 197 201 } 198 202 … … 211 215 events.doc.getElementById(this.dataID).style.color = "gray"; 212 216 } 217 /** 218 * Normalize this Event: provide normal background and text colors. 219 */ 220 function normalize() 221 { 222 var myColor = incidentColor[this.incident.number]; 223 events.doc.getElementById(this.eventHeaderID).style.backgroundColor = "white"; 224 events.doc.getElementById(this.eventHeaderID).style.borderColor = "black"; 225 events.doc.getElementById(this.eventHeaderID).style.color = "black"; 226 events.doc.getElementById(this.dataID).style.color = "black"; 227 events.doc.getElementById(this.dataID).style.backgroundColor = myColor; 228 events.doc.getElementById(this.eventHeaderID).style.backgroundColor = myColor; 229 } 230 213 231 214 232 /**
Note: See TracChangeset
for help on using the changeset viewer.
