1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-14 17:45:49 +00:00

blank out time left display if talk has not started yet

This commit is contained in:
Franzi 2024-11-03 14:47:44 +01:00
parent 9d92add067
commit cb09f7c65a
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -47,8 +47,8 @@ function update_room_info() {
scheduled_start = new Date(current_talk['start']);
scheduled_end = new Date(current_talk['end']);
if (scheduled_end < now) {
timeleft.innerHTML = '0';
if (scheduled_start > now || scheduled_end < now) {
timeleft.innerHTML = '';
progressbar.style.width = '0';
} else {
diff = scheduled_end - now;