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:
parent
9d92add067
commit
cb09f7c65a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue