Update JS style syntax

This commit is contained in:
Fred Boniface 2022-10-18 12:51:20 +01:00
parent eee9dd5fe6
commit 1d5c9b2109
2 changed files with 3 additions and 3 deletions

View File

@ -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";
}
}

View File

@ -37,7 +37,7 @@
top: 40px;
right: 0;
margin: auto;
height: 0;
height: 0px;
display: none;
max-width: 60%;
background-color: darkslategrey;