Index: lams_build/conf/whiteboard/readme.txt =================================================================== diff -u -rb73d05cf773a739adb36cc867ad24eb73c207bf9 -rca0dfbeab89f5dc06f8de124ed208e57a968ee57 --- lams_build/conf/whiteboard/readme.txt (.../readme.txt) (revision b73d05cf773a739adb36cc867ad24eb73c207bf9) +++ lams_build/conf/whiteboard/readme.txt (.../readme.txt) (revision ca0dfbeab89f5dc06f8de124ed208e57a968ee57) @@ -21,6 +21,8 @@ 3.5 In index.html we hide some buttons - 3.6 In config.default.yml, config-schema.json, ConfigService.js and whiteboard.js we introduce imageURL config property. + 3.6 In index.html and index.js we hide Whiteboard contents until everything loads, otherwise the UI looks messed up at first. + + 3.7 In config.default.yml, config-schema.json, ConfigService.js and whiteboard.js we introduce imageURL config property. In vanilla Whiteboard all images are prefixed with current server URL. If we move Whiteboard or export & import data, it will not work. Now images have relative URL prefixed with whatever is in imageURL. \ No newline at end of file Index: lams_build/conf/whiteboard/src/index.html =================================================================== diff -u -r4cab09f3d1823e08be099c75d1a5159e6f507e6d -rca0dfbeab89f5dc06f8de124ed208e57a968ee57 --- lams_build/conf/whiteboard/src/index.html (.../index.html) (revision 4cab09f3d1823e08be099c75d1a5159e6f507e6d) +++ lams_build/conf/whiteboard/src/index.html (.../index.html) (revision ca0dfbeab89f5dc06f8de124ed208e57a968ee57) @@ -6,7 +6,8 @@ -
+ + Index: lams_build/conf/whiteboard/src/js/index.js =================================================================== diff -u --- lams_build/conf/whiteboard/src/js/index.js (revision 0) +++ lams_build/conf/whiteboard/src/js/index.js (revision ca0dfbeab89f5dc06f8de124ed208e57a968ee57) @@ -0,0 +1,30 @@ +import "jquery-ui/ui/core"; +import "jquery-ui/ui/widgets/draggable"; +import "jquery-ui/ui/widgets/resizable"; +import "jquery-ui-rotatable/jquery.ui.rotatable"; +import "jquery-ui/themes/base/resizable.css"; +import "../css/main.css"; + +import "./icons"; +import main from "./main"; + +$(document).ready(function () { + // Set correct width height on mobile browsers + const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); + if (isChrome) { + $("head").append( + '' + ); + } else { + $("head").append(''); + } + + // LAMS addition - show body only after everythig loads + $('body').css('visibility', 'visible'); + + main(); +}); + +if (module.hot) { + module.hot.accept(); +} Index: lams_tool_whiteboard/web/pages/authoring/basic.jsp =================================================================== diff -u -r645056c136b15a368e557dd13ea7154b0eea48a2 -rca0dfbeab89f5dc06f8de124ed208e57a968ee57 --- lams_tool_whiteboard/web/pages/authoring/basic.jsp (.../basic.jsp) (revision 645056c136b15a368e557dd13ea7154b0eea48a2) +++ lams_tool_whiteboard/web/pages/authoring/basic.jsp (.../basic.jsp) (revision ca0dfbeab89f5dc06f8de124ed208e57a968ee57) @@ -15,9 +15,13 @@