diff --git a/scripts/server-frontend-dev.js b/scripts/server-frontend-dev.js index 5e3d762..0773b76 100644 --- a/scripts/server-frontend-dev.js +++ b/scripts/server-frontend-dev.js @@ -7,6 +7,7 @@ const devServerConfig = { }, proxy: { '/api': 'http://localhost:3000', + '/uploads': 'http://localhost:3000', '/ws-api': { target: 'ws://localhost:3000', ws: true, diff --git a/src/js/index.js b/src/js/index.js index 1e15468..031a17a 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -1,5 +1,6 @@ import "jquery-ui/ui/core"; import "jquery-ui/ui/widgets/draggable"; +import "jquery-ui/ui/widgets/resizable"; import "../css/main.css"; import "./icons"; diff --git a/src/js/main.js b/src/js/main.js index 4a71d07..8d676fc 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -469,7 +469,7 @@ function main(){ var reader = new window.FileReader(); reader.readAsDataURL(blob); reader.onloadend = function () { - base64data = reader.result; + const base64data = reader.result; uploadImgAndAddToWhiteboard(base64data); } } else { @@ -651,7 +651,7 @@ function main(){ options[i] = newOptions[i]; } } - var alertHtml = $('
' + + var alertHtml = $('
' + '
' + '
' + options["header"] + '
' + '
' + diff --git a/src/js/whiteboard.js b/src/js/whiteboard.js index 3ce7aac..9f608bb 100644 --- a/src/js/whiteboard.js +++ b/src/js/whiteboard.js @@ -45,7 +45,7 @@ const whiteboard = { this.settings["whiteboardId"] = this.settings["whiteboardId"].replace(/[^0-9a-z]/gi, ''); //background grid (repeating image) and smallest screen indication - _this.backgroundGrid = $('
'); + _this.backgroundGrid = $(`
`); // container for background images _this.imgContainer = $('
'); // whiteboard canvas