1
0
Fork 0

Update app.js

master
Ben Jabituya 2023-10-11 23:45:54 +01:00 committed by GitHub
parent ef923cba85
commit c18a52e15b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -99,9 +99,11 @@ function btn2Pressed() {
}
function fmtMSS(e) {
var m = Math.floor(e % 3600 / 60).toString().padStart(2, '0'),
s = Math.floor(e % 60).toString().padStart(2, '0');
return m + ':' + s;
h = Math.floor(e / 3600);
e %= 3600;
m = Math.floor(e / 60);
s = e % 60;
return h + ":" + m + ':' + s;
}
function countDown() {