Fixed bug. Corrected add_to_apps.json
parent
c4acfadabb
commit
c074be241f
11
apps.json
11
apps.json
|
|
@ -623,5 +623,16 @@
|
||||||
{"name":"-blobclk","url":"clock-blob.js"},
|
{"name":"-blobclk","url":"clock-blob.js"},
|
||||||
{"name":"*blobclk","url":"clock-blob-icon.js","evaluate":true}
|
{"name":"*blobclk","url":"clock-blob-icon.js","evaluate":true}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{ "id": "berlinc",
|
||||||
|
"name": "Berlin Clock",
|
||||||
|
"icon": "app.png",
|
||||||
|
"description": "Berlin Clock",
|
||||||
|
"tags": "",
|
||||||
|
"storage": [
|
||||||
|
{"name":"+berlinc","url":"berlin-clock.json"},
|
||||||
|
{"name":"-berlinc","url":"berlin-clock.js"},
|
||||||
|
{"name":"*berlinc","url":"berlin-clock-icon.js","evaluate":true}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
// Create an entry in apps.json as follows:
|
// Create an entry in apps.json as follows:
|
||||||
{ "id": "berlinc",
|
{ "id": "berlinc",
|
||||||
"name": "Berlin Clock",
|
"name": "Berlin Clock",
|
||||||
"icon": "app.png",
|
"icon": "berlin-clock.png",
|
||||||
"description": "Berlin Clock",
|
"description": "Berlin Clock",
|
||||||
"tags": "",
|
"tags": "",
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"+berlinc","url":"app.json"},
|
{"name":"+berlinc","url":"berlin-clock.json"},
|
||||||
{"name":"-berlinc","url":"app.js"},
|
{"name":"-berlinc","url":"berlin-clock.js"},
|
||||||
{"name":"*berlinc","url":"app-icon.js","evaluate":true}
|
{"name":"*berlinc","url":"berlin-clock-icon.js","evaluate":true}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@
|
||||||
|
|
||||||
function drawBerlinClock() {
|
function drawBerlinClock() {
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
rowlights[0] = now.getHours() / 5;
|
rowlights[0] = Math.floor(now.getHours() / 5);
|
||||||
rowlights[1] = now.getHours() % 5;
|
rowlights[1] = now.getHours() % 5;
|
||||||
rowlights[2] = now.getMinutes() / 5;
|
rowlights[2] = Math.floor(now.getMinutes() / 5);
|
||||||
rowlights[3] = now.getMinutes() % 5;
|
rowlights[3] = now.getMinutes() % 5;
|
||||||
|
|
||||||
g.clear();
|
g.clear();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue