diff --git a/js/navbar.js b/js/navbar.js index 7788096..f3fad33 100644 --- a/js/navbar.js +++ b/js/navbar.js @@ -4,4 +4,15 @@ function inflateSidebar() { function collapseSidebar() { document.getElementById("sidebar").style.width = "0px"; +} + +function sidebarToggle() { + var bar = document.getElementById("sidebar"); + if (bar.style.height === "0") { + bar.style.height = "100%"; + bar.style.display = "block"; + } else { + bar.style.height = "0"; + bar.style.display = "none"; + } } \ No newline at end of file diff --git a/new_index.html b/new_index.html index 397a790..f8a040f 100644 --- a/new_index.html +++ b/new_index.html @@ -25,8 +25,8 @@