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;