From c9ea42afd4c0785a0f49c22712a69a5981b4c0ff Mon Sep 17 00:00:00 2001 From: raphael Date: Thu, 11 Feb 2021 14:00:21 +0100 Subject: [PATCH] fix clear btn style --- src/index.html | 30 +++++++++++++++--------------- src/js/main.js | 6 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/index.html b/src/index.html index 202e669..d762a9d 100644 --- a/src/index.html +++ b/src/index.html @@ -11,11 +11,11 @@
-
+
- +
@@ -185,7 +185,7 @@ > diff --git a/src/js/main.js b/src/js/main.js index c653693..71720d9 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -246,19 +246,19 @@ function initWhiteboard() { .off("click") .click(function () { $("#whiteboardTrashBtnConfirm").show().focus(); - $(this).css({ visibility: "hidden" }); + $(this).hide(); }); $("#whiteboardTrashBtnConfirm").mouseout(function () { $(this).hide(); - $("#whiteboardTrashBtn").css({ visibility: "inherit" }); + $("#whiteboardTrashBtn").show(); }); $("#whiteboardTrashBtnConfirm") .off("click") .click(function () { $(this).hide(); - $("#whiteboardTrashBtn").css({ visibility: "inherit" }); + $("#whiteboardTrashBtn").show(); whiteboard.clearWhiteboard(); });