function initTimerLayout() {
  timerLayout = new Layout( {
    type:"v", c: [
      {type:"txt", font:"40%", pad: 10, label:"00:00", id:"time" },
      {type:"txt", font:"6x8:2", label:"0", id:"set" }
      ]
    }, {btns: [
      {label: "Stop", cb: l => {
          if (timerIsPaused){
            timerIsPaused = false;
            resumeTimer();
          }
          else{
            timerIsPaused = true;
            pauseTimer(); 
          }
        }
      }
    ]
  });
}
/** Called to initialize the timer layout */
Called to initialize the timer layout
Called to initialize the timer layout
function initTimerLayout() {
  timerLayout = new Layout( {
    type:"v", c: [
      {type:"txt", font:"40%", pad: 10, label:"00:00", id:"time" },
      {type:"txt", font:"6x8:2", label:"0", id:"set" }
      ]
    }, {btns: [
      {label: "Stop", cb: l => {
          if (timerIsPaused){
            timerIsPaused = false;
            resumeTimer();
          }
          else{
            timerIsPaused = true;
            pauseTimer(); 
          }
        }
      }
    ]
  });
}
function initTimerLayout ( ) { timerLayout = new Layout ( { type : "v" , c : [ { type : "txt" , font : "40%" , pad : 10 , label : "00:00" , id : "time" } , { type : "txt" , font : "6x8:2" , label : "0" , id : "set" } ] } , { btns : [ { label : "Stop" , cb : l => { if ( timerIsPaused ) { timerIsPaused = false ; resumeTimer ( ) ; } else { timerIsPaused = true ; pauseTimer ( ) ; } } } ] } ) ; }
Called to initialize the timer layout
Called to initialize the timer layout