-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdelete-account.html
73 lines (61 loc) · 2.66 KB
/
delete-account.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Take The Land - Delete Account</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="icon.png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container delete-account-page">
<h1>Delete Account</h1>
<!-- Request Deletion Key Section -->
<section class="deletion-section">
<h2>Request a Deletion Key</h2>
<div class="centered-column">
<form id="request-deletion-form">
<label for="email">Email:</label>
<input type="email" id="request-email" name="email" required>
<label for="password">Password:</label>
<input type="password" id="request-password" name="password" required>
<button type="submit">Request Deletion Key</button>
</form>
</div>
</section>
<!-- Confirm Deletion Section -->
<section class="deletion-section">
<h2>Confirm Deletion</h2>
<div class="centered-column">
<form id="confirm-deletion-form">
<label for="email">Email:</label>
<input type="email" id="confirm-email" name="email" required>
<label for="password">Password:</label>
<input type="password" id="confirm-password" name="password" required>
<label for="deletion-key">Deletion Key:</label>
<input type="text" id="deletion-key" name="deletion-key" required>
<button type="submit">Confirm Deletion</button>
</form>
</div>
</section>
<!-- Go Back to Main Menu Button -->
<div class="centered-column">
<button id="back-to-menu">Go Back</button>
</div>
</div>
<!-- Include JavaScript -->
<script>
// JavaScript to sync email input between the two forms
document.getElementById('request-email').addEventListener('input', function() {
document.getElementById('confirm-email').value = this.value;
});
document.getElementById('confirm-email').addEventListener('input', function() {
document.getElementById('request-email').value = this.value;
});
// JavaScript for back to menu button
document.getElementById('back-to-menu').addEventListener('click', function() {
window.location.href = 'index.html'; // Change this to the actual main menu URL
});
</script>
</body>
</html>