From 99378c276bd19225f244a410f299e213cf4004f8 Mon Sep 17 00:00:00 2001 From: Florent Chehab Date: Sun, 19 Apr 2020 16:49:39 +0200 Subject: [PATCH] fix(colorPicker): cleaned setup of new lib --- src/index.html | 8 +++----- src/js/main.js | 8 +++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/index.html b/src/index.html index 90562d8..abf377d 100644 --- a/src/index.html +++ b/src/index.html @@ -66,11 +66,9 @@ -
-
-
+
diff --git a/src/js/main.js b/src/js/main.js index 7622f6d..034fe38 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -510,9 +510,11 @@ $(document).ready(function () { whiteboard.dropIndicator.hide(); }); - $('#whiteboardColorpicker').colorPicker({ - renderCallback: function (elm) { - whiteboard.setDrawColor(elm.val()); + new Picker({ + parent: $('#whiteboardColorpicker')[0], + color: "#000000", + onChange: function(color) { + whiteboard.setDrawColor(color.rgbaString); } }); });