2020-01-17 11:43:26 +00:00
|
|
|
/* run widgets in their own function scope so they don't interfere with
|
|
|
|
currently-running apps */
|
2019-11-15 17:15:49 +00:00
|
|
|
(() => {
|
2020-02-07 17:09:18 +00:00
|
|
|
// 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 */;
|
2019-11-15 17:15:49 +00:00
|
|
|
|
2020-02-07 17:09:18 +00:00
|
|
|
// draw your widget at xpos
|
|
|
|
function draw() {
|
|
|
|
// add your code
|
|
|
|
}
|
2020-01-17 11:43:26 +00:00
|
|
|
|
2020-02-07 17:09:18 +00:00
|
|
|
// add your widget
|
|
|
|
WIDGETS["mywidget"]={draw:draw};
|
2019-11-15 17:15:49 +00:00
|
|
|
|
2020-01-17 11:43:26 +00:00
|
|
|
})()
|