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); } }); });