Skip to content

Commit

Permalink
room_timer: it is confusing for speakers if the timer does not move e…
Browse files Browse the repository at this point in the history
…very second
  • Loading branch information
fkusei committed Dec 3, 2024
1 parent fec30e7 commit de0c472
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit de0c472

Please sign in to comment.