Update Demo_Password_Change.html

This commit is contained in:
Zarcolio
2024-01-21 19:54:24 +01:00
committed by GitHub
parent 85ee4567df
commit 58e25dc21f
@@ -5,7 +5,52 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Password Change</title>
<style>
/* ... (previous CSS code) ... */
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
width: 300px;
}
h1 {
text-align: center;
color: #333;
}
label {
display: block;
margin-bottom: 10px;
color: #555;
}
input[type="password"] {
width: 94%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 3px;
padding-left: 10px; /* Add equal padding on the left and right */
padding-right: 10px;
}
button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 3px;
cursor: pointer;
}
button:hover {
background-color: #0056b3;
}
.message {
text-align: center;
margin-top: 10px;
@@ -43,7 +88,7 @@
messageDiv.innerHTML = "<p class='success'>Password changed successfully!</p>";
return false; // Prevent form submission
} else {
messageDiv.innerHTML = "<p class='error'>Passwords do not match. Please try again.</p>";
messageDiv.innerHTML = "<p class='error'>Passwords do not match. Try again.</p>";
return false; // Prevent form submission
}
}