Changes between Version 9 and Version 10 of TanmayTasks


Ignore:
Timestamp:
01/24/2020 11:56:18 AM (6 years ago)
Author:
jdalbey
Comment:

add item 5.

Legend:

Unmodified
Added
Removed
Modified
  • TanmayTasks

    v9 v10  
    1111 
    1212 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 
     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{{{ 
     16// Initialize the current time to zero 
     17var currentTime = new Date(0); 
     18currentTime.setHours(0); 
     19currentTime.setMinutes(0); 
     20currentTime.setSeconds(0); 
     21 
     22// Increment the time by one-half minute (30 seconds) 
     23var millisecs = currentTime.getTime(); 
     24millisecs += 30000;   
     25var currentTime = new Date(millisecs) 
     26 
     27// Create a printable string for the time (HH:MM:SS) 
     28var printableTime = currentTime.toLocaleTimeString('it-IT') 
     29}}}