mirror of https://github.com/espruino/BangleApps
Update app.js
parent
ef923cba85
commit
c18a52e15b
|
@ -99,9 +99,11 @@ function btn2Pressed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function fmtMSS(e) {
|
function fmtMSS(e) {
|
||||||
var m = Math.floor(e % 3600 / 60).toString().padStart(2, '0'),
|
h = Math.floor(e / 3600);
|
||||||
s = Math.floor(e % 60).toString().padStart(2, '0');
|
e %= 3600;
|
||||||
return m + ':' + s;
|
m = Math.floor(e / 60);
|
||||||
|
s = e % 60;
|
||||||
|
return h + ":" + m + ':' + s;
|
||||||
}
|
}
|
||||||
|
|
||||||
function countDown() {
|
function countDown() {
|
||||||
|
|
Loading…
Reference in New Issue