mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Further alert implementation #17
This commit is contained in:
@@ -314,7 +314,11 @@ function updateRefreshDisplay() {
|
||||
updatingString = "Updating..."
|
||||
if (secSinceUpdate < REFRESH_INTERVAL_SEC) {
|
||||
count = REFRESH_INTERVAL_SEC - secSinceUpdate;
|
||||
updatingString = "Updating in " + count.toFixed(0) + " seconds...";
|
||||
if (count <= 60) {
|
||||
updatingString = "Updating in " + count.toFixed(0) + " seconds...";
|
||||
} else {
|
||||
updatingString = "Updating in " + Math.floor(count / 60.0).toFixed(0) + " minutes.";
|
||||
}
|
||||
}
|
||||
$("#timing-container").text("Last updated at " + lastUpdateTime.format('HH:mm') + " UTC. " + updatingString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user