can i set the world record for most typos

This commit is contained in:
Jacob Levine 2019-02-12 20:48:35 -06:00
parent d0d431fb54
commit 9e0c6e36ee

View File

@ -52,12 +52,12 @@ window.onload = function() {
if (doc.exists) { if (doc.exists) {
list = doc.data() list = doc.data()
teamNums = Object.keys(list) teamNums = Object.keys(list)
document.getElementById(teammem).innerHTML = "" document.getElementById('teammem').innerHTML = ""
for (var i = 0; i < teammem.length; i++) { for (var i = 0; i < teamNums.length; i++) {
document.getElementById(teammem).innerHTML += "<tr><td>" + teammem[i] + "</td><td>" + list.teammem[i] + "</td></tr>" document.getElementById('teammem').innerHTML += "<tr><td>" + teamNums[i] + "</td><td>" + list[teamNums[i]] + "</td></tr>"
} }
} else { } else {
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>" document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
} }
}) })
}); });
@ -75,11 +75,11 @@ function cnt(tn) {
list = doc.data() list = doc.data()
teamNums = Object.keys(list) teamNums = Object.keys(list)
document.getElementById(teammem).innerHTML = "" document.getElementById(teammem).innerHTML = ""
for (var i = 0; i < teammem.length; i++) { for (var i = 0; i < teamNums.length; i++) {
document.getElementById(teammem).innerHTML += "<tr><td>" + teammem[i] + "</td><td>" + list.teammem[i] + "</td></tr>" document.getElementById('teammem').innerHTML += "<tr><td>" + teamNums[i] + "</td><td>" + list[teamNums[i]] + "</td></tr>"
} }
} else { } else {
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>" document.getElementById('teammem').innerHTML = "<tr><td>You are not part of any teams</td></tr>"
} }
}) })
}) })