tidy examples

master
Gordon Williams 2020-02-07 17:09:18 +00:00
parent 91bb497f71
commit a59ea3eee6
3 changed files with 11 additions and 9 deletions

View File

@ -2,6 +2,7 @@
{ "id": "7chname",
"name": "My app's human readable name",
"icon": "app.png",
"version":"0.01",
"description": "A detailed description of my great app",
"tags": "",
"storage": [

View File

@ -2,6 +2,7 @@
{ "id": "7chname",
"name": "My widget's human readable name",
"icon": "widget.png",
"version":"0.01",
"description": "A detailed description of my great widget",
"tags": "",
"storage": [

View File

@ -1,16 +1,16 @@
/* run widgets in their own function scope so they don't interfere with
currently-running apps */
(() => {
// add the width
var xpos = WIDGETPOS.tr-24;/*<the widget width>*/;
WIDGETPOS.tr-= 28;/* the widget width plus some extra pixel to keep distance to others */;
// add the width
var xpos = WIDGETPOS.tr-24;/*<the widget width>*/;
WIDGETPOS.tr-= 28;/* the widget width plus some extra pixel to keep distance to others */;
// draw your widget at xpos
function draw() {
// add your code
}
// draw your widget at xpos
function draw() {
// add your code
}
// add your widget
WIDGETS["mywidget"]={draw:draw};
// add your widget
WIDGETS["mywidget"]={draw:draw};
})()