From 6652918ae815f4d05e99eb615a49d1aecd333413 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Tue, 12 Feb 2019 20:41:43 -0600 Subject: [PATCH] I apparently don't know how to js --- website/public/team/index.html | 2 +- website/public/team/scripts.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/website/public/team/index.html b/website/public/team/index.html index f082f9bb..af271ae6 100644 --- a/website/public/team/index.html +++ b/website/public/team/index.html @@ -5,8 +5,8 @@ titanscout - + diff --git a/website/public/team/scripts.js b/website/public/team/scripts.js index 6a5cb57f..562cca21 100644 --- a/website/public/team/scripts.js +++ b/website/public/team/scripts.js @@ -53,8 +53,8 @@ window.onload = function() { list = doc.data() teamNums = Object.keys(list) document.getElementById(teammem).innerHTML = "" - for i in teamNums() { - document.getElementById(teammem).innerHTML += "" + i + "" + list.i + "" + for (var i = 0; i < teammem.length; i++) { + document.getElementById(teammem).innerHTML += "" + teammem[i] + "" + list.teammem[i] + "" } } else { document.getElementById(teammem).innerHTML = "You are not part of any teams" @@ -74,8 +74,8 @@ function cnt(tn) { list = doc.data() teamNums = Object.keys(list) document.getElementById(teammem).innerHTML = "" - for i in teamNums() { - document.getElementById(teammem).innerHTML += "" + i + "" + list.i + "" + for (var i = 0; i < teammem.length; i++) { + document.getElementById(teammem).innerHTML += "" + teammem[i] + "" + list.teammem[i] + "" } } else { document.getElementById(teammem).innerHTML = "You are not part of any teams"