diff --git a/public/index.html b/public/index.html index 4c1baad..a95bd2f 100644 --- a/public/index.html +++ b/public/index.html @@ -26,7 +26,7 @@
-
+
- + - +
+
+ +
\ No newline at end of file diff --git a/public/js/main.js b/public/js/main.js index 70a9d32..4ae08a6 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -181,6 +181,21 @@ $(document).ready(function () { alert("Copied Whiteboard-URL to clipboard.") }); + var btnsMini = false; + $("#minMaxBtn").click(function(){ + if(!btnsMini) { + $("#toolbar").find(".btn-group:not(.minGroup)").hide(); + $(this).find("#minBtn").hide(); + $(this).find("#maxBtn").show(); + } else { + $("#toolbar").find(".btn-group").show(); + $(this).find("#minBtn").show(); + $(this).find("#maxBtn").hide(); + } + btnsMini = !btnsMini; + + }) + // load json to whiteboard $("#myFile").on("change", function () { var file = document.getElementById("myFile").files[0];