Open main menu

CDOT Wiki β

Changes

Learning Collaborative Development Lab Fall 2008 Results

365 bytes added, 13:15, 11 September 2008
no edit summary
---<br />
<pre>
CmdUtils.CreateCommand({ name: "Timer", author: "Scott Lunel", takes: {"Time": noun_arb_text}, preview: "A simple timer that executes a message to the user after the entered time period.", execute: function(directObj) { var start = new Date().getTime(); var cur = start; var secDuration = start + parseInt(directObj.text);  while(parseInt(cur) < parseInt(secDuration)){
cur = new Date().getTime();
}
displayMessage( "Time's Up!" ); }})</pre>
---
<br />
1
edit