fredboniface.co.uk/js/navbar.js
Fred Boniface 578e4377a4 redesign (#1)
Merge backwards compatible changes before beginning destructive changes.

Co-authored-by: fred.boniface <fred@fjla.uk>
Reviewed-on: #1
2022-10-29 19:12:56 +00:00

21 lines
778 B
JavaScript

function inflateSidebar() {
document.getElementById("sidebar").style.width = "150px";
}
function collapseSidebar() {
document.getElementById("sidebar").style.width = "0px";
}
function sidebarOpen() {
document.getElementById("sidebar").style.width = "50%";
document.getElementById("sidebar_open_short").style.display = "none";
document.getElementById("sidebar_close_short").style.display = "block";
document.getElementById("sidebar_social").style.display = "flex";
}
function sidebarClose() {
document.getElementById("sidebar").style.width = "0%"
document.getElementById("sidebar_open_short").style.display = "block";
document.getElementById("sidebar_close_short").style.display = "none";
document.getElementById("sidebar_social").style.display = "none";
}