Add register.js

This commit is contained in:
Moe Poi ~ 2021-11-10 12:01:52 +07:00
parent a84728cc5e
commit 7201ce6be6

17
public/js/register.js Normal file
View 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";
}
}