()
| 6 | time = 25*60; |
| 7 | |
| 8 | function start(){ |
| 9 | interval = setInterval(() => { |
| 10 | time--; |
| 11 | display(format(time)); |
| 12 | if(time === 0){ |
| 13 | clearInterval(interval); |
| 14 | timerElement.innerText = '00:00'; |
| 15 | resetTime(); |
| 16 | } |
| 17 | },1000); |
| 18 | } |
| 19 | |
| 20 | function resetTime(selectType){ |
| 21 | if(selectType === 'pomodoro') |