function progress() {
  if (!isPaused) {
    /* 0 < width < 100 */
    if (width <= 0) {
      clearInterval(interval);
    } else {
      width = width - marge;
      time += 10;
      bar.style.width = width + "%";
      //updateTime(width);
      updateRemainingTime(width);
      // Only used in case of percentage progression instead of time
      //updatePercent(width);

      /* parseFloat((100 - (width + stepStart)).toFixed(1)) is equal to the percentage of the current progression */
      if (
        meeting.getSequence(step).durationPercent ===
        parseFloat((100 - (width + stepStart)).toFixed(1))
      ) {
        updateBar();
        playSound();
        //stop();
      }
    }
  }
}
/**
 * Launch the progress bar
 * : reduce the bar width from 100 to 0
 */
Launch the progress bar
: reduce the bar width from 100 to 0
Launch the progress bar : reduce the bar width from 100 to 0
function progress() {
  if (!isPaused) {
    if (width <= 0) {
      clearInterval(interval);
    } else {
      width = width - marge;
      time += 10;
      bar.style.width = width + "%";
      updateRemainingTime(width);
      if (
        meeting.getSequence(step).durationPercent ===
        parseFloat((100 - (width + stepStart)).toFixed(1))
      ) {
        updateBar();
        playSound();
      }
    }
  }
}
function progress ( ) { if ( ! isPaused ) { if ( width <= 0 ) { clearInterval ( interval ) ; } else { width = width - marge ; time += 10 ; bar . style . width = width + "%" ; updateRemainingTime ( width ) ; if ( meeting . getSequence ( step ) . durationPercent === parseFloat ( ( 100 - ( width + stepStart ) ) . toFixed ( 1 ) ) ) { updateBar ( ) ; playSound ( ) ; } } } }
Launch the progress bar
 : reduce the bar width from 100 to 0
Launch the progress bar : reduce the bar width from 100 to 0
/* 0 < width < 100 */ //updateTime(width); // Only used in case of percentage progression instead of time //updatePercent(width); /* parseFloat((100 - (width + stepStart)).toFixed(1)) is equal to the percentage of the current progression */ //stop();