@@ -255,18 +255,21 @@ <h2 style="margin: 1rem;">Waste</h2>
255255 }
256256 minute . innerHTML = `${ ++ minCounter } :`
257257 sendNotification ( `Study ${ minCounter } minute` )
258+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
258259 } , 60000 )
259260 sec = setInterval ( ( ) => {
260261 if ( secCounter === 60 ) {
261262 secCounter = 0
262263 }
263264 second . innerHTML = ` ${ ++ secCounter } :`
265+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
264266 } , 1000 )
265267 centiSec = setInterval ( ( ) => {
266268 if ( centiCounter === 100 ) {
267269 centiCounter = 0
268270 }
269271 centiSecond . innerHTML = ` ${ ++ centiCounter } `
272+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
270273 } , 10 )
271274 isPlay = true
272275 // isReset = true
@@ -373,19 +376,23 @@ <h2 style="margin: 1rem;">Waste</h2>
373376 }
374377 minute . innerHTML = `${ ++ minCounter } :`
375378 sendNotification ( `Study ${ minCounter } minute` )
379+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
376380
377381 } , 60000 )
378382 sec = setInterval ( ( ) => {
379383 if ( secCounter === 60 ) {
380384 secCounter = 0
381385 }
382386 second . innerHTML = ` ${ ++ secCounter } :`
387+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
383388 } , 1000 )
384389 centiSec = setInterval ( ( ) => {
385390 if ( centiCounter === 100 ) {
386391 centiCounter = 0
387392 }
388393 centiSecond . innerHTML = ` ${ ++ centiCounter } `
394+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
395+
389396 } , 10 )
390397 isPlay = true
391398 // isReset = true
0 commit comments