alpha_full/_include/_js/showPwd.js
2026-04-06 22:58:51 +02:00

18 lines
607 B
JavaScript
Executable File

// ---------------------
// Password
// ---------------------
var pwShown = 0;
function showHidePwd(thePwd){
var p = document.getElementById(thePwd);
// alert('test');
if (pwShown == 0){
pwShown = 1; p.setAttribute('type', 'text');
document.getElementById('eye').setAttribute("class","fa-duotone fa-eye-slash");
document.getElementById('eye').className="fa-duotone fa-eye-slash";
}
else{
pwShown = 0; p.setAttribute('type', 'password');
document.getElementById('eye').setAttribute("class","fad fa-eye");
document.getElementById('eye').className="fa-duotone fa-eye";
}
}