diff --git a/Css-files/login.css b/Css-files/login.css index a817791d..7f9ad149 100644 --- a/Css-files/login.css +++ b/Css-files/login.css @@ -91,10 +91,6 @@ width: 80%; } -.back-button{ - display: none; -} - @media screen and (width <= 600px) { .card{ width: 95%; @@ -109,9 +105,6 @@ padding-bottom: 4rem; padding-top: 0; } - .back-button{ - display: block; - } } #rememberCheckbox{ diff --git a/Css-files/signup.css b/Css-files/signup.css index 31fb075e..9e3bd464 100644 --- a/Css-files/signup.css +++ b/Css-files/signup.css @@ -88,10 +88,6 @@ width: 80%; } -.back-button{ - display: none; -} - @media screen and (width <=600px) { .card { width: 95%; @@ -107,9 +103,6 @@ padding-bottom: 4rem; padding-top: 0; } - .back-button{ - display: block; - } } @media screen and (width >= 2000px) diff --git a/Html-files/login.html b/Html-files/login.html index ebf93910..e93dc0a4 100644 --- a/Html-files/login.html +++ b/Html-files/login.html @@ -84,7 +84,6 @@
-

LOGIN

@@ -112,11 +111,10 @@

LOGIN

- - - - + + + +
@@ -415,6 +413,24 @@

Follow Us

// alert(error.message); // }); // }); + document.addEventListener("DOMContentLoaded", function() { + const passwordInput = document.getElementById('login-password'); + const toggleIcon = document.getElementById('login-hide'); + const icon = toggleIcon.querySelector('i'); + + toggleIcon.addEventListener('click', function() { + if (passwordInput.type === "password") { + passwordInput.type = "text"; + icon.classList.remove('bxs-hide'); + icon.classList.add('bxs-show'); // Change the icon class as needed + } else { + passwordInput.type = "password"; + icon.classList.remove('bxs-show'); + icon.classList.add('bxs-hide'); // Change the icon class as needed + } + }); +}); + diff --git a/Html-files/signup.html b/Html-files/signup.html index 836805ef..babb34f4 100644 --- a/Html-files/signup.html +++ b/Html-files/signup.html @@ -84,7 +84,6 @@
-

SIGN UP

@@ -117,11 +116,11 @@

SIGN UP

- - - - + + + + +

Already have an account @@ -317,6 +316,27 @@

Follow Us

// alert(error.message); // }); // }); + document.addEventListener("DOMContentLoaded", function() { + const togglePasswordVisibility = (inputId, toggleId) => { + const passwordInput = document.getElementById(inputId); + const toggleIcon = document.getElementById(toggleId); + const icon = toggleIcon.querySelector('i'); + + toggleIcon.addEventListener('click', function() { + if (passwordInput.type === "password") { + passwordInput.type = "text"; + icon.classList.remove('bxs-hide'); + icon.classList.add('bxs-show'); // Change the icon class as needed + } else { + passwordInput.type = "password"; + icon.classList.remove('bxs-show'); + icon.classList.add('bxs-hide'); // Change the icon class as needed + } + }); + }; + togglePasswordVisibility('signup-password', 'signup-hide'); +}); +