From 9e0c6e36ee28ccd33c8d7ac2b2f83faa0e798f54 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Tue, 12 Feb 2019 20:48:35 -0600 Subject: [PATCH] can i set the world record for most typos --- website/public/team/scripts.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/website/public/team/scripts.js b/website/public/team/scripts.js index 3bd89e31..3629bd94 100644 --- a/website/public/team/scripts.js +++ b/website/public/team/scripts.js @@ -52,12 +52,12 @@ window.onload = function() { if (doc.exists) { list = doc.data() teamNums = Object.keys(list) - document.getElementById(teammem).innerHTML = "" - for (var i = 0; i < teammem.length; i++) { - document.getElementById(teammem).innerHTML += "" + teammem[i] + "" + list.teammem[i] + "" + document.getElementById('teammem').innerHTML = "" + for (var i = 0; i < teamNums.length; i++) { + document.getElementById('teammem').innerHTML += "" + teamNums[i] + "" + list[teamNums[i]] + "" } } else { - document.getElementById(teammem).innerHTML = "You are not part of any teams" + document.getElementById('teammem').innerHTML = "You are not part of any teams" } }) }); @@ -75,11 +75,11 @@ function cnt(tn) { list = doc.data() teamNums = Object.keys(list) document.getElementById(teammem).innerHTML = "" - for (var i = 0; i < teammem.length; i++) { - document.getElementById(teammem).innerHTML += "" + teammem[i] + "" + list.teammem[i] + "" + for (var i = 0; i < teamNums.length; i++) { + document.getElementById('teammem').innerHTML += "" + teamNums[i] + "" + list[teamNums[i]] + "" } } else { - document.getElementById(teammem).innerHTML = "You are not part of any teams" + document.getElementById('teammem').innerHTML = "You are not part of any teams" } }) })