This commit is contained in:
Jacob Levine 2019-02-06 16:14:39 -06:00
parent 19a236251a
commit 781b4dc8b5
3 changed files with 6 additions and 3 deletions

View File

@ -21,13 +21,12 @@
<a href="#">Contact</a> <a href="#">Contact</a>
</div> </div>
<div id="main"> <div id="main">
<!-- Use any element to open the sidenav -->
<span onclick="openNav()">open</span>
<h1 id="mainhead">TitanScout- Sign In</h1> <h1 id="mainhead">TitanScout- Sign In</h1>
<p id="status">You are not signed in.</p> <p id="status">You are not signed in.</p>
<input type="button" name="Sign Out" value="Sign Out" onclick="signout();" id="signout"> <input type="button" name="Sign Out" value="Sign Out" onclick="signout();" id="signout">
<input type="button" name="Update Profile" onClick="loadupdpi();" value='Update Profile Info' id="updpi"> <input type="button" name="Update Profile" onClick="loadupdpi();" value='Update Profile Info' id="updpi">
<input type="button" name="DelAcc" value="Delete Account" onclick="deleteAccount();" id="deleteacc"> <input type="button" name="DelAcc" value="Delete Account" onclick="deleteAccount();" id="deleteacc">
<span onclick="openNav()"id="sideload"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Hamburger_icon.svg/1200px-Hamburger_icon.svg.png"></span>
<div id="profileupd"> <div id="profileupd">
<div class="profupdopt"> <div class="profupdopt">
New Username: <input type="text" name="NewDN" value="" id="newDN"> New Username: <input type="text" name="NewDN" value="" id="newDN">

View File

@ -55,6 +55,7 @@ var handleSignedInUser = function(user) {
document.getElementById('updpi').style.display = 'inline-block'; document.getElementById('updpi').style.display = 'inline-block';
document.getElementById('deleteacc').style.display = 'inline-block'; document.getElementById('deleteacc').style.display = 'inline-block';
document.getElementById('profileupd').style.display = 'none'; document.getElementById('profileupd').style.display = 'none';
document.getElementById('sideload').style.display = 'block';
} }
var handleSignedOutUser = function() { var handleSignedOutUser = function() {
document.getElementById("mainhead").innerHTML = "TitanScout- Sign In"; document.getElementById("mainhead").innerHTML = "TitanScout- Sign In";
@ -63,6 +64,7 @@ var handleSignedOutUser = function() {
document.getElementById('updpi').style.display = 'none'; document.getElementById('updpi').style.display = 'none';
document.getElementById('deleteacc').style.display = 'none'; document.getElementById('deleteacc').style.display = 'none';
document.getElementById('profileupd').style.display = 'none'; document.getElementById('profileupd').style.display = 'none';
document.getElementById('sideload').style.display = 'none';
ui.start('#firebaseui-auth-container', uiConfig); ui.start('#firebaseui-auth-container', uiConfig);
}; };

View File

@ -16,7 +16,9 @@ body{
#profileupd{ #profileupd{
display: none; display: none;
} }
#sideload{
display: none;
}
/* The side navigation menu */ /* The side navigation menu */
.sidenav { .sidenav {
height: 100%; /* 100% Full-height */ height: 100%; /* 100% Full-height */