diff --git a/customize.dist/pages.js b/customize.dist/pages.js index 6cebaec88..20b320436 100644 --- a/customize.dist/pages.js +++ b/customize.dist/pages.js @@ -575,64 +575,63 @@ define([ Pages['/whiteboard/'] = Pages['/whiteboard/index.html'] = function () { return [ - appToolbar(), - h('div#canvas-area', h('canvas#canvas', { + h('div#cp-toolbar.cp-toolbar-container'), + h('div#cp-app-whiteboard-canvas-area', h('canvas#cp-app-whiteboard-canvas', { width: 600, height: 600 })), - h('div#controls', { + h('div#cp-app-whiteboard-controls', { style: { display: 'block', } }, [ - h('button#clear.btn.btn-danger', Msg.canvas_clear), ' ', - h('button#toggleDraw.btn.btn-secondary', Msg.canvas_disable), - h('button#delete.btn.btn-secondary', { + h('button#cp-app-whiteboard-clear.btn.btn-danger', Msg.canvas_clear), ' ', + h('button#cp-app-whiteboard-toggledraw.btn.btn-secondary', Msg.canvas_disable), + h('button#cp-app-whiteboard-delete.btn.btn-secondary', { style: { display: 'none', } }, Msg.canvas_delete), - h('div.range-group', [ + h('div.cp-app-whiteboard-range-group', [ h('label', { - 'for': 'width' + 'for': 'cp-app-whiteboard-width' }, Msg.canvas_width), - h('input#width', { + h('input#cp-app-whiteboard-width', { type: 'range', value: "5", min: "1", max: "100" }), - h('span#width-val', '5px') + h('span#cp-app-whiteboard-width-val', '5px') ]), - h('div.range-group', [ + h('div.cp-app-whiteboard-range-group', [ h('label', { - 'for': 'opacity', + 'for': 'cp-app-whiteboard-opacity', }, Msg.canvas_opacity), - h('input#opacity', { + h('input#cp-app-whiteboard-opacity', { type: 'range', value: "1", min: "0.1", max: "1", step: "0.1" }), - h('span#opacity-val', '100%') + h('span#cp-app-whiteboard-opacity-val', '100%') ]), - h('span.selected', [ + h('span.cp-app-whiteboard-selected', [ h('img', { title: Msg.canvas_currentBrush }) ]) ]), - setHTML(h('div#colors'), ' '), - loadingScreen(), - h('div#cursors', { + setHTML(h('div#cp-app-whiteboard-colors'), ' '), + h('div#cp-app-whiteboard-cursors', { style: { display: 'none', background: 'white', 'text-align': 'center', } }), - h('div#pickers'), + h('div#cp-app-whiteboard-pickers'), ]; }; diff --git a/customize.dist/src/less2/main.less b/customize.dist/src/less2/main.less index 1fcd30815..1ddf45fbc 100644 --- a/customize.dist/src/less2/main.less +++ b/customize.dist/src/less2/main.less @@ -27,4 +27,5 @@ body.cp-app-code { @import "../../../code/app-code.less"; } body.cp-app-slide { @import "../../../slide/app-slide.less"; } body.cp-app-file { @import "../../../file/app-file.less"; } body.cp-app-filepicker { @import "../../../filepicker/app-filepicker.less"; } +body.cp-app-whiteboard { @import "../../../whiteboard/app-whiteboard.less"; } diff --git a/www/common/LessLoader.js b/www/common/LessLoader.js index a4c01c0bf..f7e4f6985 100644 --- a/www/common/LessLoader.js +++ b/www/common/LessLoader.js @@ -118,6 +118,7 @@ define([ } console.log('CACHE MISS ' + url); ((/\.less([\?\#].*)?$/.test(url)) ? loadLess : loadCSS)(url, function (err, css) { + if (err) { console.error(err); } var output = fixAllURLs(css, url); cachePut(url, output); inject(output, url); diff --git a/www/common/sframe-common-interface.js b/www/common/sframe-common-interface.js index 0a7306cdf..d62bb392f 100644 --- a/www/common/sframe-common-interface.js +++ b/www/common/sframe-common-interface.js @@ -182,11 +182,18 @@ define([ break; case 'more': button = $('