Skip to content

Commit

Permalink
Merge pull request #1080 from shrutigolwalk0109/main
Browse files Browse the repository at this point in the history
Update Login.html
  • Loading branch information
RitiChandak authored May 30, 2024
2 parents ca0c84d + bd37428 commit 01bd53e
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions assets/html/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,30 +216,16 @@ <h2>Join us by creating an account or log in if you already have an account.</h2
</footer>

<script>
let eyeIcon = document.getElementById("eyeicon");
let password = document.getElementById("password");
let eyeIconLogin = document.getElementById("eyeicon-login");
let passwordLogin = document.getElementById("login_password");
let eyeIcon = document.getElementById("eyeicon");
let password = document.getElementById("password");
let passwordStrength = document.getElementById("password-strength");
let lowUpperCase = document.querySelector(".low-upper-case i");
let number = document.querySelector(".one-number i");
let specialChar = document.querySelector(".one-special-char i");
let eightChar = document.querySelector(".eight-character i");

// Set the password field to type "password" by default
password.type = "password";
eyeIcon.src = "../images/eye-close.png"; // Set the initial eye icon as closed

eyeIcon.onclick = function () {
if (password.type === "password") {
password.type = "text";
eyeIcon.src = "../images/eye-open.png";
} else {
password.type = "password";
eyeIcon.src = "../images/eye-close.png";
}
};

passwordLogin.type = "password";
eyeIconLogin.src = "../images/eye-close.png"; // Set the initial eye icon as closed

Expand Down

0 comments on commit 01bd53e

Please sign in to comment.