mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2025-10-09 12:00:17 +00:00
start scout
This commit is contained in:
@@ -38,5 +38,16 @@ window.onload = function() {
|
||||
} else {
|
||||
window.location.replace('../');
|
||||
}
|
||||
teamAssoc = firebase.firestore().collection('UserAssociations').doc(user.uid);
|
||||
teamAssoc.get().then(function(doc) {
|
||||
if (doc.exists) {
|
||||
list = doc.data()
|
||||
teamNums = Object.keys(list)
|
||||
document.getElementById(tns).innerHTML = ""
|
||||
for (var i = 0; i < teamNums.length; i++) {
|
||||
document.getElementById(tns).innerHTML += "<option value='" + teamNums[i] + "'>" + teamNums[i] + "</option>"
|
||||
}
|
||||
} else {}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user