mirror of https://github.com/espruino/BangleApps
clkinfostopw - set format to h:mm:ss to shorten string
parent
e9bfe885e7
commit
82b78d5b69
|
@ -1 +1,2 @@
|
|||
0.01: New clkinfo!
|
||||
0.02: changed format to h:mm:ss, to reduce size of text string
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
var mins = seconds / 60;
|
||||
seconds %= 60;
|
||||
if (mins < 60)
|
||||
return "".concat(pad2(mins), "m").concat(pad2(seconds), "s");
|
||||
return "".concat(mins.toFixed(0)+":").concat(pad2(seconds));
|
||||
var hours = mins / 60;
|
||||
mins %= 60;
|
||||
return "".concat(Math.round(hours), "h").concat(pad2(mins), "m").concat(pad2(seconds), "s");
|
||||
return "".concat(hours.toFixed(0)+":").concat(pad2(mins)).concat(pad2(seconds));
|
||||
};
|
||||
var img = function () { return atob("GBiBAAAAAAB+AAB+AAAAAAB+AAH/sAOB8AcA4A4YcAwYMBgYGBgYGBg8GBg8GBgYGBgAGAwAMA4AcAcA4AOBwAH/gAB+AAAAAAAAAA=="); };
|
||||
return {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "clkinfostopw",
|
||||
"name": "Stop Watch Clockinfo",
|
||||
"version":"0.01",
|
||||
"version":"0.02",
|
||||
"description": "A simple stopwatch, shown via clockinfo",
|
||||
"icon": "app.png",
|
||||
"type": "clkinfo",
|
||||
|
|
Loading…
Reference in New Issue