mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-30 18:59:10 +00:00
18 lines
766 B
JavaScript
18 lines
766 B
JavaScript
/* 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";
|
|
}
|
|
|
|
window.onload=function(){
|
|
document.getElementById('sideload').style.display = 'block';
|
|
}
|