I apparently don't know how to js

This commit is contained in:
Jacob Levine 2019-02-12 20:41:43 -06:00
parent 4f3ecf4361
commit 6652918ae8
2 changed files with 5 additions and 5 deletions

View File

@ -5,8 +5,8 @@
<meta charset="utf-8">
<title>titanscout</title>
<script src="https://www.gstatic.com/firebasejs/5.7.2/firebase.js"></script>
<script src="https://cdn.firebase.com/libs/firebaseui/3.5.1/firebaseui.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.8.0/firebase-firestore.js"></script>
<script src="https://cdn.firebase.com/libs/firebaseui/3.5.1/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/3.5.1/firebaseui.css" />
<link rel="stylesheet" href="../style.css" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

View File

@ -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 += "<tr><td>" + i + "</td><td>" + list.i + "</td></tr>"
for (var i = 0; i < teammem.length; i++) {
document.getElementById(teammem).innerHTML += "<tr><td>" + teammem[i] + "</td><td>" + list.teammem[i] + "</td></tr>"
}
} else {
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>"
@ -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 += "<tr><td>" + i + "</td><td>" + list.i + "</td></tr>"
for (var i = 0; i < teammem.length; i++) {
document.getElementById(teammem).innerHTML += "<tr><td>" + teammem[i] + "</td><td>" + list.teammem[i] + "</td></tr>"
}
} else {
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>"