1
0
Fork 0

reverted to clkinfostopw 0.1 to avoid clash with widbatc PR

master
Hugh Barney 2023-04-16 18:02:38 +01:00
parent e5c6707e15
commit 7ec885008d
3 changed files with 3 additions and 4 deletions

View File

@ -1,2 +1 @@
0.01: New clkinfo!
0.02: changed format to h:mm:ss, to reduce size of text string

View File

@ -21,10 +21,10 @@
var mins = seconds / 60;
seconds %= 60;
if (mins < 60)
return "".concat(mins.toFixed(0)+":").concat(pad2(seconds));
return "".concat(pad2(mins), "m").concat(pad2(seconds), "s");
var hours = mins / 60;
mins %= 60;
return "".concat(hours.toFixed(0)+":").concat(pad2(mins)).concat(pad2(seconds));
return "".concat(Math.round(hours), "h").concat(pad2(mins), "m").concat(pad2(seconds), "s");
};
var img = function () { return atob("GBiBAAAAAAB+AAB+AAAAAAB+AAH/sAOB8AcA4A4YcAwYMBgYGBgYGBg8GBg8GBgYGBgAGAwAMA4AcAcA4AOBwAH/gAB+AAAAAAAAAA=="); };
return {

View File

@ -1,7 +1,7 @@
{
"id": "clkinfostopw",
"name": "Stop Watch Clockinfo",
"version":"0.02",
"version":"0.01",
"description": "A simple stopwatch, shown via clockinfo",
"icon": "app.png",
"type": "clkinfo",