fix style inconsistencies

This commit is contained in:
Jacob Levine
2019-02-09 15:42:16 -06:00
parent 6d45200ca3
commit 0f68468f14
2 changed files with 11 additions and 5 deletions

View File

@@ -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() {