1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-12-05 02:32:42 +00:00

room_timer: it is confusing for speakers if the timer does not move every second

This commit is contained in:
Franziska Kunsmann 2024-12-03 10:36:58 +01:00
parent fec30e79ff
commit de0c4721ed

View file

@ -59,10 +59,10 @@ function update_room_info() {
timehint.innerHTML = 'talk has ended'; timehint.innerHTML = 'talk has ended';
} else { } else {
diff = scheduled_end - now; 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; 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; total_time = scheduled_end - scheduled_start;
progressbar_bar.style.width = (((diff/total_time)*100)-100)*-1 + 'vw'; progressbar_bar.style.width = (((diff/total_time)*100)-100)*-1 + 'vw';