From 901c8d25f820eb24bc7c7859f93ec9d84fa29e55 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Wed, 6 Feb 2019 17:51:58 -0600 Subject: [PATCH] added 3 other pages --- website/public/index.html | 8 ++++---- website/public/scout/index.html | 25 +++++++++++++++++++++++++ website/public/scout/scripts.js | 13 +++++++++++++ website/public/scripts.js | 5 ++++- website/public/stats/index.html | 25 +++++++++++++++++++++++++ website/public/stats/scripts.js | 13 +++++++++++++ website/public/team/index.html | 25 +++++++++++++++++++++++++ website/public/team/scripts.js | 13 +++++++++++++ 8 files changed, 122 insertions(+), 5 deletions(-) create mode 100644 website/public/scout/index.html create mode 100644 website/public/scout/scripts.js create mode 100644 website/public/stats/index.html create mode 100644 website/public/stats/scripts.js create mode 100644 website/public/team/index.html create mode 100644 website/public/team/scripts.js 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"; +}