|
|
@@ -144,5 +144,19 @@ $(document).ready(function() {
|
|
|
|
|
|
$('#focus-pwd').click(function () {
|
|
|
$('#project-password').focus();
|
|
|
- })
|
|
|
+ });
|
|
|
+
|
|
|
+ // 密码显示/隐藏切换
|
|
|
+ $('#toggle-password').click(function () {
|
|
|
+ const passwordInput = $('#project-password');
|
|
|
+ const passwordIcon = $('#password-icon');
|
|
|
+
|
|
|
+ if (passwordInput.attr('type') === 'password') {
|
|
|
+ passwordInput.attr('type', 'text');
|
|
|
+ passwordIcon.removeClass('fa-eye-slash').addClass('fa-eye');
|
|
|
+ } else {
|
|
|
+ passwordInput.attr('type', 'password');
|
|
|
+ passwordIcon.removeClass('fa-eye').addClass('fa-eye-slash');
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|