mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-06 06:57:21 +00:00
added 3 other pages
This commit is contained in:
13
website/public/stats/scripts.js
Normal file
13
website/public/stats/scripts.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/* 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