-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathProfile.html
232 lines (222 loc) · 8.76 KB
/
Profile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Your Profile</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/style.css" />
<link rel="stylesheet" href="assets/css/themify-icons.css" />
<link rel="stylesheet" href="Profile.css" />
<link rel="icon" href="img/logo.png">
<script>
function signOut() {
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
console.log("Signing out");
firebase.auth().signOut();
}
});
}
</script>
</head>
<body>
<!-- Left Panel -->
<aside id="left-panel" class="left-panel">
<nav class="navbar navbar-default">
<div id="main-menu" class="main-menu">
<ul class="nav navbar-nav">
<li class="menu-title">For team</li>
<!-- /.menu-title -->
<li class="menu-item-has-children dropdown">
<a id="move"><span class="ti-home flat-color-4" style="padding-right: 30px"></span>Home</a>
</li>
<!--
<li class="menu-item-has-children dropdown">
<a href="OverView.html"><span class="ti-menu-alt flat-color-1" style="padding-right: 30px"></span>Overview</a>
</li>
-->
<li class="menu-item-has-children dropdown">
<a href="Schedule.html"><span class="ti-time flat-color-3" style="padding-right: 30px"></span>Schedule</a>
</li>
<li class="menu-item-has-children dropdown">
<a href="Task.html"><span class="ti-agenda flat-color-5" style="padding-right: 30px"></span>Tasks</a>
</li>
<li class="menu-item-has-children dropdown">
<a href="Chatroom.html"><span class="ti-comments flat-color-2" style="padding-right: 30px"></span>Chat</a>
</li>
<li class="menu-title">For you</li>
<!-- /.menu-title -->
<li>
<a href="Profile.html"><span class="ti-crown flat-color-6" style="padding-right: 30px"></span>Profile</a>
</li>
<li class="menu-item-has-children dropdown">
<a href="team.html"><span class="ti-menu-alt flat-color-7" style="padding-right: 30px"></span>Change Team</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
</aside>
<!-- /#left-panel -->
<!-- Left Panel -->
<!-- right Panel -->
<!-- Header -->
<div id="right-panel" class="right-panel">
<header id="header" class="header">
<div class="top-left">
<div class="navbar-header">
<p>Team++</p>
</div>
</div>
<div class="top-right">
<div class="header-menu">
<div class="user-area float-right">
<div class="dropdown">
<button class="dropbtn" style="background-color: #ffffff; margin-right: 30px">
<img id="icon" class="user-avatar rounded-circle" src="img/sample.png" alt="User Avatar" />
</button>
<div class="dropdown-content">
<a href="Profile.html">Profile</a>
<a href="index.html" onclick="signOut()">Log out</a>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- /header -->
<!-- Header -->
<div class="content">
<!-- add your code here:) feel free to add your own .css file -->
<div class="row">
<div class="card">
<div class="card-body"></div>
</div>
</div>
<div class="row">
<div class="col-lg-12 profile">
<div class="card">
<div class="card-body">
<div class="card-header">
<strong class="card-title">Your Profile</strong>
</div>
<div class="container">
<div class="Profile-Picture">
<div class="Default Image" id="defaultPic">
<img id="Pic" class="rounded-circle" style="margin: auto; width:auto; height: auto; max-width: 300px; max-height: 300px" />
</div>
</div>
</div>
<table style="width:100%">
<tr>
<td>Name:</td>
<td id="NameText"></td>
<td>
<button id="nameEdit" class="push" onclick="nameChange()">
Edit
</button>
<button id="nameSave" class="push" onclick="nameSave()" type="submit" hidden="true">
Save
</button>
<button id="nameCancel" class="push" onclick="nameCancel()" hidden="true">
Cancel
</button>
</td>
</tr>
<tr id="PasswordRow">
<td>Password:</td>
<td id="Password"></td>
<td>
<button id="passwordEdit" class="push" onclick="passwordChange()">
Change Password
</button>
</td>
</tr>
<tr id="curPassword" style="display: none">
<td>Current Password</td>
<td>
<input id="currentPW" type="password" placeholder="Enter Here" />
</td>
</tr>
<tr id="newPassword" style="display: none">
<td>New Password</td>
<td>
<input id="newPW" type="password" placeholder="Enter Here" />
</td>
<td><i>Password must be at least 6 characters.</i></td>
</tr>
<tr id="re-enterPW" style="display: none">
<td>Re-Enter New Password</td>
<td>
<input id="reenterPW" type="password" placeholder="Enter Here" />
</td>
<td>
<button id="passwordSave" class="push" onclick="passwordSave()" type="submit" hidden="true">
Submit
</button>
<button id="passwordCancel" class="push" onclick="passwordCancel()" hidden="true">
Cancel
</button>
</td>
</tr>
<tr>
<td>Email Address:</td>
<td id="Email"></td>
<td>
<button id="emailEdit" class="push" onclick="emailChange()">
Edit
</button>
<button id="emailSave" class="push" onclick="emailSave()" type="submit" hidden="true">
Save
</button>
<button id="emailCancel" class="push" onclick="emailCancel()" hidden="true">
Cancel
</button>
</td>
</tr>
<tr>
<td>Phone Number</td>
<td id="Phone"></td>
<td>
<button id="phoneEdit" class="push" onclick="phoneChange()">
Edit
</button>
<button id="phoneSave" class="push" onclick="phoneSave()" type="submit" hidden="true">
Save
</button>
<button id="phoneCancel" class="push" onclick="phoneCancel()" hidden="true">
Cancel
</button>
</td>
</tr>
</table>
<div class="addBtn">
<button class="push" style="float: right; width:100%; height: 40px">
Change Profile Picture
</button>
<input type="file" id="upload" accept="image/png, image/jpeg" style="width: 100%; float: right" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/5.5.9/firebase.js"></script>
<script>
// Initialize Firebase
var config = {
apiKey: "AIzaSyCDwFS1dxv0WWEbgehMdtsIQ3F_WQlKDnE",
authDomain: "team-plus-plus.firebaseapp.com",
databaseURL: "https://team-plus-plus.firebaseio.com",
projectId: "team-plus-plus",
storageBucket: "team-plus-plus.appspot.com",
messagingSenderId: "836611996730"
};
firebase.initializeApp(config);
</script>
<script src="Profile.js"></script>
</body>
</html>