From 3c92ea5f08302ac55ce085cb59c09d0c4e3bc2d9 Mon Sep 17 00:00:00 2001 From: Jean-Benoist Leger Date: Fri, 17 Apr 2020 17:47:19 +0000 Subject: [PATCH] Add redo button --- public/index.html | 3 +++ public/js/main.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/public/index.html b/public/index.html index c2200cb..b0c4f13 100644 --- a/public/index.html +++ b/public/index.html @@ -54,6 +54,9 @@ +
diff --git a/public/js/main.js b/public/js/main.js index a8b97de..ac8f387 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -256,6 +256,11 @@ $(document).ready(function () { whiteboard.undoWhiteboardClick(); }); + // redo button + $("#whiteboardRedoBtn").click(function () { + whiteboard.redoWhiteboardClick(); + }); + // switch tool $(".whiteboardTool").click(function () { $(".whiteboardTool").removeClass("active");