Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Added togglePasswordInput function
givanz866ff2d3087b
diff --git a/public/js/admin/functions.js b/public/js/admin/functions.jsindex 5ae8770..94e6ab8 100644--- a/public/js/admin/functions.js+++ b/public/js/admin/functions.js@@ -290,3 +290,18 @@ function generateElements(html) {template.innerHTML = html.trim();return template.content.children;}++function togglePasswordInput(element, input) {+ let password = document.getElementById(input);+ if (password.type == "password") {+ password.type = "text";+ let i = element.querySelector("i")+ i.classList.add("icon-eye-outline")+ i.classList.remove("icon-eye-off-outline");+ } else {+ password.type = "password";+ let i = element.querySelector("i")+ i.classList.remove("icon-eye-outline")+ i.classList.add("icon-eye-off-outline");+ }+}