From de0c4721eddf3c00ddaca76252da2d7521353df7 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 3 Dec 2024 10:36:58 +0100 Subject: [PATCH] room_timer: it is confusing for speakers if the timer does not move every second --- .../static/pretalx_broadcast_tools/room_timer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js index eff31a7..489b3b9 100644 --- a/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js +++ b/pretalx_broadcast_tools/static/pretalx_broadcast_tools/room_timer.js @@ -59,10 +59,10 @@ function update_room_info() { timehint.innerHTML = 'talk has ended'; } else { diff = scheduled_end - now; - let diff_s = Math.floor(Math.floor(diff / 1000) % 60/10); + let diff_s = Math.floor(Math.floor(diff / 1000) % 60); let diff_m = Math.floor(diff / 1000 / 60) % 60; - timeleft.innerHTML = diff_m + 'min ' + diff_s + '0sec'; + timeleft.innerHTML = diff_m + 'min ' + diff_s + 'sec'; total_time = scheduled_end - scheduled_start; progressbar_bar.style.width = (((diff/total_time)*100)-100)*-1 + 'vw';