diff options
author | David Phillips <david@sighup.nz> | 2017-05-12 22:31:48 +1200 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-05-12 22:31:48 +1200 |
commit | b751fad71fbc7d65686dbccb554be9a5d313e3d7 (patch) | |
tree | 802430709a95bae7cb6d0fc53e1cb94a12d5cf92 /petrichor.js | |
parent | 646b3fec9f07d0fd82aca54881d2d7cb47a4f74e (diff) | |
download | petrichor-b751fad71fbc7d65686dbccb554be9a5d313e3d7.tar.xz |
Adjust style of setTimeout calls
Diffstat (limited to 'petrichor.js')
-rw-r--r-- | petrichor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/petrichor.js b/petrichor.js index 87d99ca..695b48f 100644 --- a/petrichor.js +++ b/petrichor.js @@ -113,7 +113,7 @@ function countdown() label.innerHTML = ' in ' + time_remaining + ' seconds'; time_remaining--; if (time_remaining >= 0) - setTimeout('countdown()', 1000); + setTimeout(countdown, 1000); } function build_session_list() @@ -140,7 +140,7 @@ function update_time() niceMinutes = "0"+niceMinutes; document.getElementById('date').innerHTML = days[d.getDay()] + ", " + d.getDate() + " " + months[d.getMonth()]; document.getElementById('time').innerHTML = niceHours + ":" + niceMinutes; - setTimeout('update_time()', 1000); + setTimeout(update_time, 1000); } function start() |