From f70e03a691d7b3705e8e8a5244117d306764c0b2 Mon Sep 17 00:00:00 2001 From: Thijs Kroesbergen Date: Thu, 11 Mar 2021 14:46:56 +0100 Subject: [PATCH] Added support for sticky notes --- README.md | 2 +- scripts/s_whiteboard.js | 2 +- src/css/main.css | 7 +++++++ src/index.html | 8 ++++++++ src/js/icons.js | 4 +++- src/js/main.js | 4 ++-- src/js/whiteboard.js | 37 ++++++++++++++++++++++++++++--------- 7 files changed, 50 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index fe058af..14773fd 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ The following are predefined shortcuts that you can override in the file [./src/ | Move selected object left | Left Arrow | Left Arrow | | Move selected object right | Right Arrow | Right Arrow | | Drop object | Ctrl + Enter | Command + Enter | -| Add Image to backgroud | Shift + Enter | Shift + Enter | +| Add Image to background | Shift + Enter | Shift + Enter | | Cancel all actions | Escape | Escape | | Delete selected object | Delete | Delete | | Use Line tool when pen is active (Not changeable) | Shift (Hold) | Shift (Hold) | diff --git a/scripts/s_whiteboard.js b/scripts/s_whiteboard.js index 52540ed..c665ea3 100644 --- a/scripts/s_whiteboard.js +++ b/scripts/s_whiteboard.js @@ -11,7 +11,7 @@ if (config.backend.enableFileDatabase) { fs.readFile("savedBoards.json", (err, data) => { if (err) { return console.log( - "Not persistend Whiteboard Datafile found... this is not a problem on the first start!" + "No persistend Whiteboard Datafile found... this is not a problem on the first start!" ); } savedBoards = JSON.parse(data); diff --git a/src/css/main.css b/src/css/main.css index 878183e..80a12c0 100644 --- a/src/css/main.css +++ b/src/css/main.css @@ -134,6 +134,13 @@ button { display: block; } +.stickyNote { + width: 200px; + height: 200px; + box-shadow: 5px 5px 7px rgba(33, 33, 33, 0.7); + overflow-y: auto; +} + .modalBtn { padding: 5px; border-radius: 5px; diff --git a/src/index.html b/src/index.html index 1e647b6..86a2790 100644 --- a/src/index.html +++ b/src/index.html @@ -134,6 +134,14 @@ +