7.1
15832144755
2021-07-01 ba21fcf8482029f7634b62d60daf171538001769
1
2
3
4
5
6
7
8
9
10
11
12
var togglePassword = document.getElementById("toggle-password");
 
if (togglePassword) {
    togglePassword.addEventListener('click', function() {
      var x = document.getElementById("password");
      if (x.type === "password") {
        x.type = "text";
      } else {
        x.type = "password";
      }
    });
}