mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-26 15:10:17 +00:00
added sidebar
This commit is contained in:
@@ -204,3 +204,16 @@ function upProfileInfo() {
|
||||
handleSignedOutUser();
|
||||
}
|
||||
}
|
||||
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */
|
||||
function openNav() {
|
||||
document.getElementById("mySidenav").style.width = "250px";
|
||||
document.getElementById("main").style.marginLeft = "250px";
|
||||
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
|
||||
}
|
||||
|
||||
/* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */
|
||||
function closeNav() {
|
||||
document.getElementById("mySidenav").style.width = "0";
|
||||
document.getElementById("main").style.marginLeft = "0";
|
||||
document.body.style.backgroundColor = "white";
|
||||
}
|
||||
|
Reference in New Issue
Block a user