Skip to content

Commit 4e6b240

Browse files
committedFeb 25, 2023
Stored time on every sec
1 parent 61dadbe commit 4e6b240

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎clock/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = `&nbsp;${++secCounter} :`
265+
store("study",`${minCounter}:${secCounter}:${centiCounter}`)
264266
}, 1000)
265267
centiSec = setInterval(() => {
266268
if (centiCounter === 100) {
267269
centiCounter = 0
268270
}
269271
centiSecond.innerHTML = `&nbsp;${++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 = `&nbsp;${++secCounter} :`
387+
store("waste",`${minCounter}:${secCounter}:${centiCounter}`)
383388
}, 1000)
384389
centiSec = setInterval(() => {
385390
if (centiCounter === 100) {
386391
centiCounter = 0
387392
}
388393
centiSecond.innerHTML = `&nbsp;${++centiCounter}`
394+
store("waste",`${minCounter}:${secCounter}:${centiCounter}`)
395+
389396
}, 10)
390397
isPlay = true
391398
// isReset = true

0 commit comments

Comments
 (0)
Please sign in to comment.