@@ -255,18 +255,21 @@ <h2 style="margin: 1rem;">Waste</h2>
255
255
}
256
256
minute . innerHTML = `${ ++ minCounter } :`
257
257
sendNotification ( `Study ${ minCounter } minute` )
258
+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
258
259
} , 60000 )
259
260
sec = setInterval ( ( ) => {
260
261
if ( secCounter === 60 ) {
261
262
secCounter = 0
262
263
}
263
264
second . innerHTML = ` ${ ++ secCounter } :`
265
+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
264
266
} , 1000 )
265
267
centiSec = setInterval ( ( ) => {
266
268
if ( centiCounter === 100 ) {
267
269
centiCounter = 0
268
270
}
269
271
centiSecond . innerHTML = ` ${ ++ centiCounter } `
272
+ store ( "study" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
270
273
} , 10 )
271
274
isPlay = true
272
275
// isReset = true
@@ -373,19 +376,23 @@ <h2 style="margin: 1rem;">Waste</h2>
373
376
}
374
377
minute . innerHTML = `${ ++ minCounter } :`
375
378
sendNotification ( `Study ${ minCounter } minute` )
379
+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
376
380
377
381
} , 60000 )
378
382
sec = setInterval ( ( ) => {
379
383
if ( secCounter === 60 ) {
380
384
secCounter = 0
381
385
}
382
386
second . innerHTML = ` ${ ++ secCounter } :`
387
+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
383
388
} , 1000 )
384
389
centiSec = setInterval ( ( ) => {
385
390
if ( centiCounter === 100 ) {
386
391
centiCounter = 0
387
392
}
388
393
centiSecond . innerHTML = ` ${ ++ centiCounter } `
394
+ store ( "waste" , `${ minCounter } :${ secCounter } :${ centiCounter } ` )
395
+
389
396
} , 10 )
390
397
isPlay = true
391
398
// isReset = true
0 commit comments