22 lines
708 B
JavaScript
Executable File
Vendored
22 lines
708 B
JavaScript
Executable File
Vendored
/*
|
|
Template Name: Velzon - Admin & Dashboard Template
|
|
Author: Themesbrand
|
|
Website: https://Themesbrand.com/
|
|
Contact: Themesbrand@gmail.com
|
|
File: Password addon Js File
|
|
*/
|
|
|
|
// password addon
|
|
Array.from(document.querySelectorAll("form .auth-pass-inputgroup")).forEach(function (item) {
|
|
Array.from(item.querySelectorAll("#password-addon")).forEach(function (subitem) {
|
|
subitem.addEventListener("click", function (event) {
|
|
var passwordInput = item.querySelector("#password-input");
|
|
if (passwordInput.type === "password") {
|
|
passwordInput.type = "text";
|
|
} else {
|
|
passwordInput.type = "password";
|
|
}
|
|
});
|
|
});
|
|
});
|