mirror of
https://github.com/aaronleetw/Attendance.git
synced 2024-11-14 19:11:39 -08:00
20 lines
No EOL
627 B
JavaScript
Vendored
20 lines
No EOL
627 B
JavaScript
Vendored
function loadingAnimation() {
|
|
$('#password_form').submit();
|
|
$('.container').hide();
|
|
$('#loading').show();
|
|
}
|
|
function password_show_hide() {
|
|
var x = document.getElementById("password");
|
|
var show_eye = document.getElementById("show_eye");
|
|
var hide_eye = document.getElementById("hide_eye");
|
|
hide_eye.classList.remove("d-none");
|
|
if (x.type === "password") {
|
|
x.type = "text";
|
|
show_eye.style.display = "none";
|
|
hide_eye.style.display = "block";
|
|
} else {
|
|
x.type = "password";
|
|
show_eye.style.display = "block";
|
|
hide_eye.style.display = "none";
|
|
}
|
|
} |