diff --git a/website/public/index.html b/website/public/index.html index ccb27688..fabcd250 100644 --- a/website/public/index.html +++ b/website/public/index.html @@ -15,10 +15,10 @@
× - About - Services - Clients - Contact + Profile + Team + Scout Matches + Torunament Stats
diff --git a/website/public/scout/index.html b/website/public/scout/index.html new file mode 100644 index 00000000..b2fb8ada --- /dev/null +++ b/website/public/scout/index.html @@ -0,0 +1,25 @@ + + + + + <meta charset="utf-8"> + <title>titanscout + + + + + + + + + + +

TitanScout- Scout Matches

+ + diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js new file mode 100644 index 00000000..79e3d765 --- /dev/null +++ b/website/public/scout/scripts.js @@ -0,0 +1,13 @@ +/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */ +function openNav() { + document.getElementById("mySidenav").style.width = "250px"; + document.getElementById("main").style.marginLeft = "250px"; + document.body.style.backgroundColor = "rgba(0,0,0,0.4)"; +} + +/* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */ +function closeNav() { + document.getElementById("mySidenav").style.width = "0"; + document.getElementById("main").style.marginLeft = "0"; + document.body.style.backgroundColor = "white"; +} diff --git a/website/public/scripts.js b/website/public/scripts.js index 3c7061d0..ed4839b6 100644 --- a/website/public/scripts.js +++ b/website/public/scripts.js @@ -41,7 +41,7 @@ var uiConfig = { } }; var handleSignedInUser = function(user) { - document.getElementById("mainhead").innerHTML = "TitanScout- Create Form"; + document.getElementById("mainhead").innerHTML = "TitanScout- User Info"; if (user.displayName != null) { document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName; } else if (user.email != null) { @@ -219,3 +219,6 @@ function closeNav() { document.getElementById("main").style.marginLeft = "0"; document.body.style.backgroundColor = "white"; } +if(firebase.auth().currentUser!=null){ + handleSignedInUser(firebase.auth().currentUser) +} diff --git a/website/public/stats/index.html b/website/public/stats/index.html new file mode 100644 index 00000000..1007cc7e --- /dev/null +++ b/website/public/stats/index.html @@ -0,0 +1,25 @@ + + + + + <meta charset="utf-8"> + <title>titanscout + + + + + + + + + + +

TitanScout- Your Teams

+ + diff --git a/website/public/stats/scripts.js b/website/public/stats/scripts.js new file mode 100644 index 00000000..79e3d765 --- /dev/null +++ b/website/public/stats/scripts.js @@ -0,0 +1,13 @@ +/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */ +function openNav() { + document.getElementById("mySidenav").style.width = "250px"; + document.getElementById("main").style.marginLeft = "250px"; + document.body.style.backgroundColor = "rgba(0,0,0,0.4)"; +} + +/* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */ +function closeNav() { + document.getElementById("mySidenav").style.width = "0"; + document.getElementById("main").style.marginLeft = "0"; + document.body.style.backgroundColor = "white"; +} diff --git a/website/public/team/index.html b/website/public/team/index.html new file mode 100644 index 00000000..1007cc7e --- /dev/null +++ b/website/public/team/index.html @@ -0,0 +1,25 @@ + + + + + <meta charset="utf-8"> + <title>titanscout + + + + + + + + + + +

TitanScout- Your Teams

+ + diff --git a/website/public/team/scripts.js b/website/public/team/scripts.js new file mode 100644 index 00000000..79e3d765 --- /dev/null +++ b/website/public/team/scripts.js @@ -0,0 +1,13 @@ +/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */ +function openNav() { + document.getElementById("mySidenav").style.width = "250px"; + document.getElementById("main").style.marginLeft = "250px"; + document.body.style.backgroundColor = "rgba(0,0,0,0.4)"; +} + +/* Set the width of the side navigation to 0 and the left margin of the page content to 0, and the background color of body to white */ +function closeNav() { + document.getElementById("mySidenav").style.width = "0"; + document.getElementById("main").style.marginLeft = "0"; + document.body.style.backgroundColor = "white"; +}