mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-09-06 23:17:22 +00:00
fix style inconsistencies
This commit is contained in:
@@ -3,6 +3,9 @@ function openNav() {
|
||||
document.getElementById("mySidenav").style.width = "250px";
|
||||
document.getElementById("main").style.marginLeft = "250px";
|
||||
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
|
||||
for (var i = 0; i < document.getElementsByClass("btn").length; i++) {
|
||||
document.getElementsByClass("btn")[i].style.backgroundColor="rgba(0,0,0,.2)"
|
||||
}
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
@@ -10,6 +13,9 @@ function closeNav() {
|
||||
document.getElementById("mySidenav").style.width = "0";
|
||||
document.getElementById("main").style.marginLeft = "0";
|
||||
document.body.style.backgroundColor = "white";
|
||||
for (var i = 0; i < document.getElementsByClass("btn").length; i++) {
|
||||
document.getElementsByClass("btn")[i].style.backgroundColor="buttonface"
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = function() {
|
||||
|
Reference in New Issue
Block a user