From 3abc50cf7a78a6adb65caa9af2ab15e19908cef1 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Sat, 9 Feb 2019 15:44:46 -0600 Subject: [PATCH] js dom terms aren't very consistent --- website/public/profile/index.html | 2 +- website/public/profile/scripts.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/website/public/profile/index.html b/website/public/profile/index.html index 5d23d607..b61e34ac 100644 --- a/website/public/profile/index.html +++ b/website/public/profile/index.html @@ -27,7 +27,7 @@

TitanScout- Your Profile

Loading...

- +

Profile info

diff --git a/website/public/profile/scripts.js b/website/public/profile/scripts.js index 9ffb920f..7ebfc566 100644 --- a/website/public/profile/scripts.js +++ b/website/public/profile/scripts.js @@ -3,8 +3,8 @@ 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)" + for (var i = 0; i < document.getElementsByClassName("btn").length; i++) { + document.getElementsByClassName("btn")[i].style.backgroundColor="rgba(0,0,0,.2)" } } @@ -13,8 +13,8 @@ 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" + for (var i = 0; i < document.getElementsByClassName("btn").length; i++) { + document.getElementsByClassName("btn")[i].style.backgroundColor="buttonface" } }