-
Notifications
You must be signed in to change notification settings - Fork 1
/
preferences.html
102 lines (94 loc) · 4 KB
/
preferences.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="js/md5.js"></script>
<script src="js/code.js"></script>
<script src="js/contact.js"></script>
<script src="js/preferences.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles/global.css"/>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Cantora+One&family=Montserrat+Alternates:wght@600&family=Nunito+Sans:wght@300&display=swap" rel="stylesheet">
<title>Preferences</title>
<link rel="shortcut icon" type="image/png" href="UCF_Knightro_logo.png"/>
</head>
<body>
<div id="box2" class="box2">
<div class="hamburger" onclick="openHamburger(this)" style="width: 100%">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
<div id="myLinks">
<button type="button" onclick="window.location.href='https://contacts.rruiz.dev/contacts.html';">Return Home</button>
<button type="button" id="logoutButton" onclick="logout()">Log out</button>
</div>
</div>
<div class="row">
<h1>Preferences</h1>
</div>
<hr/>
<div class="row">
<button type="button" id="changeEmailToggle" onclick="openPopup('changeEmail-popup')">Change Email</button>
</div>
<div class="row">
<button type="button" id="changePasswordToggle" onclick="openPopup('changePassword-popup')">Change Password</button>
</div>
<div class="row">
<button type="button" onclick="openPopup('deleteAccount-popup')">Delete Account</button>
</div>
<p>This <span style="color: red; text-transform: uppercase;">permenantly</span> deletes your account</p>
</div>
<div class="modal" id="deleteAccount-popup">
<div class="modal-content">
<span onclick="closePopup('deleteAccount-popup')" class="modal-button">×</span>
<h2>Are You Sure You Want To Permanently Delete Your Account?</h2>
<!-- Took out the row to make the pop up taller-->
<div class="row">
<button style="color:red" type="button" id="deleteAccountButton-popup" onclick="deleteAccount()"><strong>Delete My Account</strong></button>
<!--May also have to move this to be under the open button -->
<p id="deleteAccountResult"></p>
<button type="button" id="cancelDeleteAccountButton" onclick="closePopup('deleteAccount-popup')">Cancel</button>
</div>
</div>
</div>
<div class="modal" id="changeEmail-popup">
<div class="modal-content">
<span onclick="closePopup('changeEmail-popup')" class="modal-button">×</span>
<div class="row">
<input type="text" id="changeEmail" placeholder="New Email"></input>
</div>
<div class="row">
<button type="button" id="changeEmailButton" onclick="changeEmail()">Change Email</button>
</div>
<div class="row">
<button type="button" id="closeChangeEmailButton" onclick="closePopup('changeEmail-popup')">Cancel</button>
</div>
<p id="changeEmailText"></p>
</div>
</div>
<div class="modal" id="changePassword-popup">
<div class="modal-content">
<span onclick="closePopup('changePassword-popup')" class="modal-button">×</span>
<div class="row">
<input type="password" id="changePasswordOldPassword" placeholder="Old Password"></input>
</div>
<div class="row">
<input type="password" id="changePasswordNewPassword1" placeholder="New Password"></input>
</div>
<div class="row">
<input type="password" id="changePasswordNewPassword2" placeholder="Repeat New Password"></input>
</div>
<div class="row">
<button type="button" id="changePasswordButton" onclick="changePassword()">Change Password</button>
</div>
<div class="row">
<button type="button" id="closeChangePasswordButton" onclick="closePopup('changePassword-popup')">Cancel</button>
</div>
<p id="changePasswordText"></p>
</div>
</div>
</body>
</html>