Refactor change pass page

This commit is contained in:
Kostya Struga 2022-04-29 09:32:01 +03:00
parent fa6e0456ae
commit f013120df4

View File

@ -6,9 +6,9 @@
<link href="https://fonts.googleapis.com/css?family=Muli" rel="stylesheet"/>
<link href="${url.resourcesPath}/img/favicon.png" rel="icon"/>
<script>
function togglePassword(id, elementId) {
var x = document.getElementById(id);
var v = document.getElementById(elementId);
function togglePassword(inputPasswordId, eyeImageId) {
var x = document.getElementById(inputPasswordId);
var v = document.getElementById(eyeImageId);
if (x.type === "password") {
x.type = "text";
v.src = "${url.resourcesPath}/img/eye.png";