Spaces:
Running
Running
File size: 7,567 Bytes
8aeb522 |
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 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from es-teams-database2025.onrender.com/profile by HTTrack Website Copier/3.x [XR&CO'2017], Fri, 14 Feb 2025 22:34:59 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ES TEAMS PROFILE</title>
<link href="../external.html?link=https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet" />
<style>
body {
font-family: "Inter", sans-serif;
margin: 0;
padding: 0;
background-color: #1a1a1a;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
overflow: hidden;
}
header {
width: 100%;
background: #333;
color: #4caf50;
text-align: center;
font-size: 20px;
padding: 10px;
overflow: hidden;
white-space: nowrap;
}
header marquee {
display: inline-block;
width: 100%;
}
.container {
width: 90%;
max-width: 400px;
margin-top: 20px;
background: #2c2c2c;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
padding: 20px;
}
.profile-pic-container {
text-align: center;
position: relative;
margin-bottom: 20px;
}
.profile-pic {
width: 120px;
height: 120px;
border-radius: 50%;
background-color: #444;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
font-size: 14px;
text-align: center;
margin: 0 auto;
line-height: 1.4; /* Ensures perfect centering for multi-line text */
}
.profile-pic img {
border-radius: 50%;
width: 100%;
height: 100%;
object-fit: cover;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.form-group input {
width: 100%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ccc;
background: #222;
color: #fff;
}
button {
width: 100%;
padding: 10px;
margin: 10px 0;
border: none;
border-radius: 5px;
background: #4caf50;
color: white;
font-size: 16px;
cursor: pointer;
}
button:hover {
background: #45a049;
}
.delete-account {
position: fixed;
bottom: 20px;
right: 20px;
background: red;
color: white;
width: 150px;
height: 50px;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: bold;
box-shadow: 0 4px 10px rgba(255, 0, 0, 0.6);
cursor: pointer;
animation: glow 1.5s infinite;
}
@keyframes glow {
0%, 100% {
box-shadow: 0 0 10px red;
}
50% {
box-shadow: 0 0 20px red;
}
}
</style>
</head>
<body>
<header>
<marquee>WELCOME TO ES TEAMS PROFILE DISPLAY</marquee>
</header>
<div class="profile-pic-container">
<div id="profile-pic" class="profile-pic" onclick="document.getElementById('file-input').click()">
<img id="profile-image" src="#" alt="Upload Profile Picture" />
</div>
<input type="file" id="file-input" style="display: none;" onchange="uploadPicture()" />
</div>
<h3>USER PROFILE</h3>
<div class="form-group">
<label for="firstname">First Name</label>
<input type="text" id="firstname" placeholder="First Name" required />
</div>
<div class="form-group">
<label for="lastname">Last Name</label>
<input type="text" id="lastname" placeholder="Last Name" required />
</div>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" id="email" placeholder="Email Address" required />
</div>
<button onclick="saveDetails()">Save Details</button>
<h3>Password Settings</h3>
<div class="form-group">
<label for="password">Old Password</label>
<input type="password" id="password" placeholder="Old Password" required />
</div>
<div class="form-group">
<label for="new-password">New Password</label>
<input type="password" id="new-password" placeholder="New Password" required />
</div>
<div class="form-group">
<label for="confirm-password">Confirm Password</label>
<input type="password" id="confirm-password" placeholder="Confirm Password" required />
</div>
<button onclick="changePassword()">Save Changes</button>
</div>
<button class="delete-account" onclick="location.href='delete.html'">DELETE ACCOUNT</button>
<script>
// Initialize profile details and image from localStorage
window.onload = function () {
const userData = JSON.parse(localStorage.getItem("userData")) || {};
document.getElementById("firstname").value = userData.firstname || "";
document.getElementById("lastname").value = userData.lastname || "";
document.getElementById("email").value = userData.email || "";
const profileImage = document.getElementById("profile-image");
if (userData.profilePic) {
profileImage.src = userData.profilePic;
} else {
profileImage.src = ""; // Default blank state
profileImage.alt = "Upload Profile Picture";
}
};
function uploadPicture() {
const fileInput = document.getElementById("file-input");
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function (event) {
const userData = JSON.parse(localStorage.getItem("userData")) || {};
userData.profilePic = event.target.result; // Save picture in base64 format
localStorage.setItem("userData", JSON.stringify(userData));
document.getElementById("profile-image").src = event.target.result; // Update the profile image
};
reader.readAsDataURL(file);
}
}
function saveDetails() {
const firstname = document.getElementById("firstname").value.trim();
const lastname = document.getElementById("lastname").value.trim();
const email = document.getElementById("email").value.trim();
if (!firstname || !lastname || !email) {
alert("All fields are required!");
return;
}
const userData = JSON.parse(localStorage.getItem("userData")) || {};
userData.firstname = firstname;
userData.lastname = lastname;
userData.email = email;
localStorage.setItem("userData", JSON.stringify(userData));
alert("Changes saved!");
}
function changePassword() {
const password = document.getElementById("password").value.trim();
const newPassword = document.getElementById("new-password").value.trim();
const confirmPassword = document.getElementById("confirm-password").value.trim();
if (!password || !newPassword || !confirmPassword) {
alert("All fields are required!");
return;
}
const userData = JSON.parse(localStorage.getItem("userData")) || {};
if (userData.password !== password) {
alert("Old password is incorrect!");
return;
}
if (newPassword !== confirmPassword) {
alert("Passwords do not match!");
return;
}
userData.password = newPassword;
localStorage.setItem("userData", JSON.stringify(userData));
alert("Password changed successfully!");
}
</script>
</body>
<!-- Mirrored from es-teams-database2025.onrender.com/profile by HTTrack Website Copier/3.x [XR&CO'2017], Fri, 14 Feb 2025 22:35:00 GMT -->
</html> |