function toggleStartPause(v) {
  if (v) {
    isPaused = v;
  } else {
    isPaused = !isPaused;
  }

  const startText = document.querySelector("#startText");

  if (isPaused) {
    startText.innerHTML = "Start";
  } else {
    startText.innerHTML = "Pause";
  }
}
/**
 * Manage the time bar progression (start/pause)
 * Also redefine the start button content text
 *
 */
Manage the time bar progression (start/pause)
Also redefine the start button content text
Manage the time bar progression ( start / pause ) Also redefine the start button content text
function toggleStartPause(v) {
  if (v) {
    isPaused = v;
  } else {
    isPaused = !isPaused;
  }
  const startText = document.querySelector("#startText");
  if (isPaused) {
    startText.innerHTML = "Start";
  } else {
    startText.innerHTML = "Pause";
  }
}
function toggleStartPause ( v ) { if ( v ) { isPaused = v ; } else { isPaused = ! isPaused ; } const startText = document . querySelector ( "#startText" ) ; if ( isPaused ) { startText . innerHTML = "Start" ; } else { startText . innerHTML = "Pause" ; } }
Manage the time bar progression (start/pause)
 Also redefine the start button content text
Manage the time bar progression ( start / pause ) Also redefine the start button content text