diff --git a/app/browser/js/app/parser.js b/app/browser/js/app/parser.js
index 69161b22..ee77c2a9 100644
--- a/app/browser/js/app/parser.js
+++ b/app/browser/js/app/parser.js
@@ -37,7 +37,7 @@ parsetabs = function(tabs,parent,sub){
label= tabData.label||tabData.id
- navtabs.append('
\
-
\
+ var widget = $(`
+
\
- '),
+ `),
led = widget.find('.light')
@@ -89,10 +89,10 @@ createWidget.toggle = createWidget.button = function(widgetData) {
createWidget.switch = function(widgetData) {
- var widget = $('\
-
\
-
\
- ')
+ var widget = $(`
+
+
+ `)
for (v in widgetData.values) {
widget.append('
'+widgetData.values[v]+'
')
@@ -130,17 +130,17 @@ createWidget.switch = function(widgetData) {
createWidget.xy = function(widgetData) {
- var widget = $('\
-
\
- '),
+ var widget = $(`
+
+ `),
handle = widget.find('.handle'),
pad = widget.find('.xy'),
value = {x:widget.find('.x'),y:widget.find('.y')},
@@ -249,19 +249,19 @@ createWidget.xy = function(widgetData) {
createWidget.rgb = function(widgetData) {
- var widget = $('\
-
'),
+ var widget = $(`
+
`),
rgbHandle = widget.find('.rgb .handle'),
hueHandle = widget.find('.hue .handle'),
pad = widget.find('.xy'),
@@ -449,17 +449,17 @@ createWidget.rgb = function(widgetData) {
createWidget.fader = function(widgetData,container){
- var widget = $('\
-
\
- '),
+ var widget = $(`
+
+ `),
handle = widget.find('.handle'),
fader = widget.find('.fader'),
pips = widget.find('.pips'),
@@ -602,18 +602,18 @@ createWidget.fader = function(widgetData,container){
createWidget.knob = function(widgetData) {
- var widget = $('\
-
\
- '),
+ var widget = $(`
+
+ `),
knob = widget.find('.knob'),
input = widget.find('input'),
range = widgetData.range || {min:0,max:1},
diff --git a/app/main/config.json b/app/main/config.json
index 54cb8658..946f5212 100644
--- a/app/main/config.json
+++ b/app/main/config.json
@@ -1,6 +1,7 @@
{
"sessionPath": "/home/bordun/oscwork/oschtmlgui/sessions/",
"recentSessions": [
- "/home/bordun/oscwork/oschtmlgui/sessions/sebkhachott.js"
+ "/home/bordun/oscwork/oschtmlgui/sessions/sebkhachott.js",
+ "/home/bordun/oscwork/oschtmlgui/sessions/demo.js"
]
}
\ No newline at end of file