From 1925943660a1a4514f19f97b0e6853bd90ee18fc Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Thu, 7 Mar 2019 20:54:55 -0600 Subject: [PATCH] start scout --- website/public/scout/index.html | 7 +++++-- website/public/scout/scripts.js | 11 +++++++++++ website/public/team/scripts.js | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/website/public/scout/index.html b/website/public/scout/index.html index 92a27b97..835d2eec 100644 --- a/website/public/scout/index.html +++ b/website/public/scout/index.html @@ -15,8 +15,8 @@
× Profile - Team - Scout Matches + Team + Scout Matches Torunament Stats
@@ -25,6 +25,9 @@

TitanScout- Scout Matches

Loading...

+
+ Scouting For: +
diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 3a741a5c..826e17a6 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -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 += "" + } + } else {} + }) }); } diff --git a/website/public/team/scripts.js b/website/public/team/scripts.js index e4f3997c..2be38719 100644 --- a/website/public/team/scripts.js +++ b/website/public/team/scripts.js @@ -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) {