aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-28 19:27:00 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-28 19:27:00 +0200
commitfbe1cf75855860fe0d3b7f2f8564e5ebeb6a3f90 (patch)
treea0a3a4fd5ba630784a71163f2589537ebdc0171b
parentWhitespace cleanup. (diff)
downloadcalp-fbe1cf75855860fe0d3b7f2f8564e5ebeb6a3f90.tar.gz
calp-fbe1cf75855860fe0d3b7f2f8564e5ebeb6a3f90.tar.xz
Fix current time marker.
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index b7526ee5..b94e8f06 100644
--- a/static/script.js
+++ b/static/script.js
@@ -5,7 +5,7 @@ function round_time (time, fraction) {
function time_to_percent (time) {
// Decimal time
- return hour_to_part(time.getHours() + (time.getMinutes() / 60)) + "%"
+ return (time.getHours() + (time.getMinutes() / 60)) * 100/24 + "%"
}
function parents_until (element, obj) {