From 1d5c9b2109c4d0d12628d1110f7f4f9ecd0740c9 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 18 Oct 2022 12:51:20 +0100 Subject: [PATCH] Update JS style syntax --- js/navbar.js | 4 ++-- style/new_menu.css | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/navbar.js b/js/navbar.js index f3fad33..b29722d 100644 --- a/js/navbar.js +++ b/js/navbar.js @@ -8,11 +8,11 @@ function collapseSidebar() { function sidebarToggle() { var bar = document.getElementById("sidebar"); - if (bar.style.height === "0") { + if (bar.style.height === "0px") { bar.style.height = "100%"; bar.style.display = "block"; } else { - bar.style.height = "0"; + bar.style.height = "0px"; bar.style.display = "none"; } } \ No newline at end of file diff --git a/style/new_menu.css b/style/new_menu.css index 3a81ec8..6f2fb4e 100644 --- a/style/new_menu.css +++ b/style/new_menu.css @@ -37,7 +37,7 @@ top: 40px; right: 0; margin: auto; - height: 0; + height: 0px; display: none; max-width: 60%; background-color: darkslategrey;