forked from utk-cs340-fall22/suggestify.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.html
More file actions
104 lines (95 loc) · 3.97 KB
/
Copy pathsettings.html
File metadata and controls
104 lines (95 loc) · 3.97 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Setting Page UI Design</title>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<!-- CSS -->
<link rel="stylesheet" href="settings.css" />
<script src="index.js" defer></script>
</head>
<body onload="openTab(event, 'account')">
<div class="container">
<div class="leftbox tab">
<nav>
<a href="#" class="active tablinks" id="first" onclick="openTab(event, 'account')">
<i class="fa fa-user"></i>
</a>
<a href="#" class="tablinks" onclick="openTab(event, 'about')">
<i class="fa fa-book"></i>
</a>
<a href="index.html" class="tablinks">
<i class="fa fa-house"></i>
</a>
</nav>
</div>
<div class="rightbox">
<div id="account" class="profile tabcontent">
<h1>Account Information</h1>
<h2>Full Name</h2><br>
<input type="name" placeholder="John Doe" id="userName"> <input type="submit" onclick="pass()">
<h2>Birthday</h2><br>
<input type="date" id="start userBirth" name="trip-start"
value="2018-07-22"
min="1918-01-01" max="2022-12-31"> <input type="submit" onclick="userBirth(userObject)">
<br>
<br>
<h2>Password Reset</h2><br>
<input type="email" placeholder="example@example.com" id="userEmail"> <input type="submit" value="Send Email" id="resetPassword" onclick="">
</div>
<div id="about" class="profile tabcontent">
<h1>About Us</h1>
<h1> Suggestify is a student-led project that aims to reduce entertainment related indecision. </h1>
<h1> Big thanks to Hollywood and Bollywood for producing the world class entertainment presented on this website.</h1>
<h1> Any questions, comments, or concerns may be directed to our super genius Manan Patel at mpatel65@vols.utk.edu ❤️.</h1>
</div>
</div>
</div>
<script type="module">
// Import the functions you need from the SDKs you need
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.13.0/firebase-app.js";
// import { getAnalytics } from "https://www.gstatic.com/firebasejs/9.13.0/firebase-analytics.js";
//import { initializeApp } from "https://www.gstatic.com/firebasejs/9.12.1/firebase-app.js";
import { getAuth, sendPasswordResetEmail } from "https://www.gstatic.com/firebasejs/9.13.0/firebase-auth.js";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyDGTFXLcJqWM4F3yWUXc4QalVBkT2Xg6Rg",
authDomain: "suggestify-6b974.firebaseapp.com",
projectId: "suggestify-6b974",
storageBucket: "suggestify-6b974.appspot.com",
messagingSenderId: "287553553595",
appId: "1:287553553595:web:c5e8adde4ca305cfaad59e",
measurementId: "G-30270TW59M"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// const analytics = getAnalytics(app);
const auth = getAuth(app);
resetPassword.addEventListener('click', (e)=> {
e.preventDefault();
var Email = document.getElementById('userEmail').value;
sendPasswordResetEmail(auth, Email)
.then(() => {
// Password reset email sent!
// ..
alert('Great Success!')
})
.catch((error) => {
const errorCode = error.code;
const errorMessage = error.message;
// ..
alert('Great Tragedy')
});
});
</script>
</body>
</html>