mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Update webassets/js/common.js
This commit is contained in:
@@ -66,10 +66,10 @@ function updateRefreshDisplay() {
|
|||||||
count = REFRESH_INTERVAL_SEC - secSinceUpdate;
|
count = REFRESH_INTERVAL_SEC - secSinceUpdate;
|
||||||
if (count <= 60) {
|
if (count <= 60) {
|
||||||
var number = count.toFixed(0);
|
var number = count.toFixed(0);
|
||||||
updatingString = "Updating in <span class='nowrap'>" + number + " second" + (number != "1" ? "s" : "") + ".</span>";
|
updatingString = "<span class='nowrap'>Updating in " + number + " second" + (number != "1" ? "s" : "") + ".</span>";
|
||||||
} else {
|
} else {
|
||||||
var number = Math.round(count / 60.0).toFixed(0);
|
var number = Math.round(count / 60.0).toFixed(0);
|
||||||
updatingString = "Updating in <span class='nowrap'>" + number + " minute" + (number != "1" ? "s" : "") + ".</span>";
|
updatingString = "<span class='nowrap'>Updating in " + number + " minute" + (number != "1" ? "s" : "") + ".</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#timing-container").html("Last updated at " + lastUpdateTime.format('HH:mm') + " UTC. " + updatingString);
|
$("#timing-container").html("Last updated at " + lastUpdateTime.format('HH:mm') + " UTC. " + updatingString);
|
||||||
|
|||||||
Reference in New Issue
Block a user