mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-15 02:47:08 +01:00
Add register.js
This commit is contained in:
parent
a84728cc5e
commit
7201ce6be6
1 changed files with 17 additions and 0 deletions
17
public/js/register.js
Normal file
17
public/js/register.js
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
function revealhidePassword() {
|
||||||
|
const x = document.getElementById("password");
|
||||||
|
if (x.type === "password") {
|
||||||
|
x.type = "text";
|
||||||
|
} else {
|
||||||
|
x.type = "password";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function revealhideConfirmationPassword() {
|
||||||
|
const x = document.getElementById("password_confirmation");
|
||||||
|
if (x.type === "password") {
|
||||||
|
x.type = "text";
|
||||||
|
} else {
|
||||||
|
x.type = "password";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue