把前端从CircuitVerse中拆了出来
This commit is contained in:
commit
5bf1284599
2182 changed files with 189323 additions and 0 deletions
11
public/js/togglePassword.js
Normal file
11
public/js/togglePassword.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
function togglePassword() {
|
||||
if ($('.users-password-input').attr('type') === 'text') {
|
||||
$('.users-password-input').attr('type', 'password');
|
||||
$('#toggle-icon').addClass('fa-eye-slash');
|
||||
$('#toggle-icon').removeClass('fa-eye');
|
||||
} else {
|
||||
$('.users-password-input').attr('type', 'text');
|
||||
$('#toggle-icon').addClass('fa-eye');
|
||||
$('#toggle-icon').removeClass('fa-eye-slash');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue