aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--petrichor.js4
2 files changed, 3 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 3367afd..13cb0f5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
old
+index.theme
diff --git a/petrichor.js b/petrichor.js
index 04b12dd..b4dc768 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()