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