-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
200 lines (187 loc) · 11.7 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon"
href="https://www.gstatic.com/devrel-devsite/prod/vc0835d3b6455cc4a7840b9b6bb6705aa0a2f0ac008bf6ab6ed61c7fff6e5cce1/firebase/images/favicon.png">
<!-- title -->
<title>Google Firebase Usage</title>
<!-- Bootstrap Css and Js -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<!-- Google Fonst -->
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<!-- Custom Css -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1 class="text-center" id="heading"></h1>
<div class="container">
<div class="main">
<button class="me-2 loginModal" data-bs-toggle="modal" data-bs-target="#signupModal">Signup</button>
<button class="me-2 signupModal" data-bs-toggle="modal" data-bs-target="#loginModal">Login</button>
<button class="me-2" data-bs-toggle="modal" data-bs-target="#editProfileModal">Edit
Profile</button>
<button id="viewProfileBtn" class="me-2" data-bs-toggle="modal" data-bs-target="#viewProfileModal">View
Profile</button>
<button id="privacySettingsBtn" class="me-2" data-bs-toggle="modal"
data-bs-target="#privacySettingsModal">Privcacy Settings</button>
<button class="me-2" id="resetPasswordBtn">Reset Password</button>
<button class="me-2" id="logoutBtn">Logout</button>
<button class="me-2" id="delAccountBtn">Delete Account</button>
</div>
</div>
<!-- Button trigger modal -->
<!-- Signup Modal -->
<div class="modal fade" id="signupModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">Register-Yourself</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="text" id="nameS" class="form-control mb-3" placeholder="Type Username">
<input type="email" id="emailS" class="form-control mb-3" placeholder="Type email">
<input type="password" id="passwordS" class="form-control mb-3" placeholder="Type password">
<input type="password" id="cPasswordS" class="form-control mb-3" placeholder="Re-type password">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"
id="signupModalCloseBtn">Close</button>
<button type="button" id="signupBtn" class="btn btn-secondary">Signup</button>
</div>
</div>
</div>
</div>
<!-- Login Modal -->
<div class="modal fade" id="loginModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">Login</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="email" id="emailL" class="form-control mb-3" placeholder="Type email">
<input type="password" id="passwordL" class="form-control mb-3" placeholder="Type password">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" id="loginModalCloseBtn"
data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-secondary" id="loginBtn">Login</button>
</div>
</div>
</div>
</div>
<!-- Edit Profle Modal -->
<div class="modal fade" id="editProfileModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">Edit-Your-Profile</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="userImage mb-4 d-flex justify-content-center align-items-center ">
<img src="./images/add-photo.png" id="userPhotoUpload" alt="Loading...">
<label for="inputFile">
<input type="file" id="inputFile" accept="image/jpeg, image/png, image/jpg"
style="display: none;">
</label>
</div>
<input type="name" id="editName" class="form-control mb-3" placeholder="Type name">
<input type="email" id="editEmail" class="form-control mb-3" placeholder="Type email">
<input type="number" id="editContactNumber" class="form-control mb-3"
placeholder="Type contact number">
<input type="date" id="editDob" class="form-control mb-3" placeholder="Type DOB">
<input type="text" id="editGender" class="form-control mb-3" placeholder="Type Gender">
<input type="text" id="editFood" class="form-control mb-3" placeholder="Type Your Favourite Food">
<input type="text" id="editAddress" class="form-control mb-3" placeholder="Type address">
<input type="text" id="editCity" class="form-control mb-3" placeholder="Type city">
<input type="text" id="editCountryName" class="form-control mb-3" placeholder="Type Country Name">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"
id="editModalCloseBtn">Close</button>
<button type="button" class="btn btn-secondary" id="editModalBtn">Save</button>
</div>
</div>
</div>
</div>
<!-- View Profile -->
<div class="modal fade" id="viewProfileModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">View-Your-Profile</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="viewModalText">
<div class="mb-4 d-flex justify-content-center align-items-center flex-column ">
<img src="./images/loader-gif.gif" width="150px" id="loader" alt="Loading...">
</div>
<div id="viewProfileModalBody" style="display: none;">
<div class="userImage mb-4 d-flex justify-content-center align-items-center flex-column ">
<img src="" id="userPhotoView" alt="Loading...">
</div>
<input type="text" id="viewName" class="form-control mb-3" disabled>
<input type="email" id="originalEmail" class="form-control mb-3" disabled>
<input type="email" id="viewEmail" class="form-control mb-3" disabled>
<input type="text" id="viewContactNumber" class="form-control mb-3" disabled>
<input type="text" id="viewDob" class="form-control mb-3" disabled>
<input type="text" id="viewGender" class="form-control mb-3" disabled>
<input type="text" id="viewFood" class="form-control mb-3" disabled>
<input type="text" id="viewAddress" class="form-control mb-3" disabled>
<input type="text" id="viewCity" class="form-control mb-3" disabled>
<input type="text" id="viewCountryName" class="form-control mb-3" disabled>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Privacy Settings -->
<div class="modal fade" id="privacySettingsModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
aria-labelledby="staticBackdropLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="staticBackdropLabel">Edit-Your-Profile</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="userImage mb-4 d-flex justify-content-center align-items-center ">
<img src="" id="userPhotoprivacy" class="d-flex justify-content-center align-items-center"
alt="">
</div>
<input type="text" id="oldEmail" class="form-control mb-3" placeholder="Old email" disabled>
<input type="email" id="newEmail" class="form-control mb-3" placeholder="Type new email">
<button class="btn mb-4" id="updateEmailBtn">Update Email</button>
<input type="password" id="newPassword" class="form-control mb-3" placeholder="Type new password">
<button class="btn" id="updatePasswordBtn">Update Password</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"
id="privacySettingsCloseBtn">Close</button>
<button type="button" class="btn btn-secondary">Save</button>
</div>
</div>
</div>
</div>
<script src="./app.js" type="module"></script>
<script src="./firebase.js" type="module"></script>
</body>
</html>