Changes between Version 10 and Version 11 of TanmayTasks
- Timestamp:
- 01/25/2020 05:52:47 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TanmayTasks
v10 v11 10 10 3. ~~Assemble one line of traffic file. (2)~~ 11 11 12 4. Have buttons change to named color when clicked. Turn off when another button clicked. Initially, have Yellow button active (avoids having "undefined" appear in output file). See attached color button html demo. (1)12 4. ~~Have buttons change to named color when clicked. Turn off when another button clicked. Initially, have Yellow button active (avoids having "undefined" appear in output file). See attached color button html demo. (1)~~ 13 13 14 5. Have the program automatically increment the time by 30 seconds for each line of output. The following code should do the trick. It just needs to be inserted into the appropriate spot in vdsLayer. (0.5)14 5. ~~Have the program automatically increment the time by 30 seconds for each line of output. The following code should do the trick. It just needs to be inserted into the appropriate spot in vdsLayer. (0.5)~~ 15 15 {{{ 16 // Initialize the current time to zero16 ~~// Initialize the current time to zero 17 17 var currentTime = new Date(0); 18 18 currentTime.setHours(0); … … 26 26 27 27 // Create a printable string for the time (HH:MM:SS) 28 var printableTime = currentTime.toLocaleTimeString('it-IT') 28 var printableTime = currentTime.toLocaleTimeString('it-IT')~~ 29 29 }}} 30 31 6. Add a time selector - this is used to select the simulation time for which the traffic events are to be created. The user specifies an hour (1-12), a minute(0-59), and seconds (0 or 30). The simplest version is probably just a text field that looks like the one in Visualizer. The program should begin at time 00:00:30 and auto increment (as in task 5), but the text field allows the user to override the time and manually enter a time of their own. Once the user enters a time manually, that becomes the new value to use to auto increment. For example, 32 {{{ 33 00:00:30 auto 34 00:00:60 auto 35 00:01:30 auto 36 00:01:45 manual 37 00:02:15 auto 38 00:02:45 auto 39 }}} 40
