/*! * Bootstrap Show Password Toggle v1.4.1 * Copyright 2020-2024 C.Oliff * Licensed under MIT (https://github.com/coliff/bootstrap-show-password-toggle/blob/main/LICENSE) */ var ShowPasswordToggle=document.getElementById("Password"); ShowPasswordToggle.onclick=function(){ document.getElementById("Password").classList.add("input-password"); document.getElementById("toggle-password").classList.remove("d-none"); const passwordInput=document.getElementById("Password"); const togglePasswordButton=document.getElementById("toggle-password"); togglePasswordButton.addEventListener("click",togglePassword); function togglePassword(){ if(passwordInput.type==="password") {passwordInput.type="text"; togglePasswordButton.setAttribute("aria-label","Hide password.")} else {passwordInput.type="password"; togglePasswordButton.setAttribute("aria-label","Show password as plain text. Warning: this will display your password on the screen.")}} }; var ShowPasswordToggle2=document.getElementById("PasswordNew"); ShowPasswordToggle2.onclick=function(){ document.getElementById("PasswordNew").classList.add("input-password"); document.getElementById("toggle-password2").classList.remove("d-none"); const passwordInput2=document.getElementById("PasswordNew"); const togglePasswordButton2=document.getElementById("toggle-password2"); togglePasswordButton2.addEventListener("click",togglePassword2); function togglePassword2(){ if(passwordInput2.type==="password") {passwordInput2.type="text"; togglePasswordButton2.setAttribute("aria-label","Hide password.")} else {passwordInput2.type="password"; togglePasswordButton2.setAttribute("aria-label","Show password as plain text. Warning: this will display your password on the screen.")}} }; var ShowPasswordToggle3=document.getElementById("PasswordConfirm"); ShowPasswordToggle3.onclick=function(){ document.getElementById("PasswordConfirm").classList.add("input-password"); document.getElementById("toggle-password3").classList.remove("d-none"); const passwordInput3=document.getElementById("PasswordConfirm"); const togglePasswordButton3=document.getElementById("toggle-password3"); togglePasswordButton3.addEventListener("click",togglePassword3); function togglePassword3(){ if(passwordInput3.type==="password") {passwordInput3.type="text"; togglePasswordButton3.setAttribute("aria-label","Hide password.")} else {passwordInput3.type="password"; togglePasswordButton3.setAttribute("aria-label","Show password as plain text. Warning: this will display your password on the screen.")}} };