mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 01:59:08 +00:00
fix typos
This commit is contained in:
parent
45a4387c68
commit
dd5da3b1e8
@ -2,8 +2,6 @@
|
||||
<html lang="en" dir="ltr">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>
|
||||
<meta charset="utf-8">
|
||||
<title>titanscout</title>
|
||||
<script src="https://www.gstatic.com/firebasejs/5.7.2/firebase.js"></script>
|
||||
|
@ -4,7 +4,7 @@ function openNav() {
|
||||
document.getElementById("main").style.marginLeft = "250px";
|
||||
document.body.style.backgroundColor = "rgba(0,0,0,0.4)";
|
||||
for (var i = 0; i < document.getElementsByClassName("btn").length; i++) {
|
||||
document.getElementsByClassName("btn")[i].style.backgroundColor="rgba(0,0,0,.2)"
|
||||
document.getElementsByClassName("btn")[i].style.backgroundColor = "rgba(0,0,0,.2)"
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ function closeNav() {
|
||||
document.getElementById("main").style.marginLeft = "0";
|
||||
document.body.style.backgroundColor = "white";
|
||||
for (var i = 0; i < document.getElementsByClassName("btn").length; i++) {
|
||||
document.getElementsByClassName("btn")[i].style.backgroundColor="buttonface"
|
||||
document.getElementsByClassName("btn")[i].style.backgroundColor = "buttonface"
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,38 +47,44 @@ window.onload = function() {
|
||||
} else {
|
||||
window.location.replace('../');
|
||||
}
|
||||
teamAssoc=firebase.firestore().collections('UserAssociations').doc(user.uid);
|
||||
teamAssoc.get().then(function(doc){
|
||||
if(doc.exists)}{
|
||||
list=doc.data()
|
||||
teamNums=Object.keys(list)
|
||||
teamAssoc = firebase.firestore().collections('UserAssociations').doc(user.uid);
|
||||
teamAssoc.get().then(function(doc) {
|
||||
if (doc.exists)
|
||||
} {
|
||||
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 i in teamNums() {
|
||||
document.getElementById(teammem).innerHTML += "<tr><td>" + i + "</td><td>" + list.i + "</td></tr>"
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>"
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function cnt(tn) {
|
||||
firebase.firestore().collection("UserAssociations").doc(user.id).set({tn : 'captain'} , { merge: true }).then(
|
||||
teamAssoc=firebase.firestore().collections('UserAssociations').doc(user.uid);
|
||||
teamAssoc.get().then(function(doc){
|
||||
if(doc.exists)}{
|
||||
list=doc.data()
|
||||
teamNums=Object.keys(list)
|
||||
firebase.firestore().collection("UserAssociations").doc(user.id).set({
|
||||
tn: 'captain'
|
||||
}, {
|
||||
merge: true
|
||||
}).then(
|
||||
teamAssoc = firebase.firestore().collections('UserAssociations').doc(user.uid) teamAssoc.get().then(function(doc) {
|
||||
if (doc.exists) {
|
||||
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 i in teamNums() {
|
||||
document.getElementById(teammem).innerHTML += "<tr><td>" + i + "</td><td>" + list.i + "</td></tr>"
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
document.getElementById(teammem).innerHTML = "<tr><td>You are not part of any teams</td></tr>"
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
function signout() {
|
||||
var user = firebase.auth().currentUser;
|
||||
firebase.auth().signOut().then(
|
||||
|
Loading…
Reference in New Issue
Block a user