mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 01:59:08 +00:00
start scout
This commit is contained in:
parent
0e358a9a14
commit
1925943660
@ -15,8 +15,8 @@
|
||||
<div id="mySidenav" class="sidenav">
|
||||
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
|
||||
<a href="../profile">Profile</a>
|
||||
<a href="#">Team</a>
|
||||
<a href="../scout">Scout Matches</a>
|
||||
<a href="../team">Team</a>
|
||||
<a href="#">Scout Matches</a>
|
||||
<a href="../stats">Torunament Stats</a>
|
||||
</div>
|
||||
<div id="main">
|
||||
@ -25,6 +25,9 @@
|
||||
</span>
|
||||
<h1 id="mainhead">TitanScout- Scout Matches</h1>
|
||||
<p id="status">Loading...</p>
|
||||
<div>
|
||||
Scouting For: <select id="tns"></select>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -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 {}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ window.onload = function() {
|
||||
if (user != null) {
|
||||
if (user.displayName != null) {
|
||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
||||
document.getElementById('newDN').innerHTML = user.displayName;
|
||||
//document.getElementById('newDN').innerHTML = user.displayName;
|
||||
} else if (user.email != null) {
|
||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.email;
|
||||
} else if (user.phoneNumber != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user