aboutsummaryrefslogtreecommitdiffstats
path: root/res/client.js
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-04-06 20:33:38 +0300
committerRblSb <msrblsb@gmail.com>2020-04-06 20:33:38 +0300
commitbda198c729ba65905bc34d15b44eb51f8336a8ff (patch)
tree4a4f89cbfa32a1efff42a3e25183a5249ecc5ea0 /res/client.js
parent1b269aa5c990ded5aaae773a78daf5230d47a5e2 (diff)
Hide password warning for guest login
Diffstat (limited to 'res/client.js')
-rw-r--r--res/client.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/client.js b/res/client.js
index 947541f..32eb424 100644
--- a/res/client.js
+++ b/res/client.js
@@ -770,6 +770,7 @@ client_Buttons.initChatInput = function(main) {
guestPass.onkeydown = function(e1) {
if(e1.keyCode == 13) {
main.userLogin(guestName.value,guestPass.value);
+ guestPass.value = "";
}
return;
};
@@ -1361,6 +1362,9 @@ client_Main.prototype = {
window.document.querySelector("#guestlogin").style.display = "none";
window.document.querySelector("#chatline").style.display = "none";
window.document.querySelector("#guestpassword").style.display = "block";
+ window.document.querySelector("#guestpass").type = "password";
+ window.document.querySelector("#guestpass_icon").classList.add("glyphicon-eye-open");
+ window.document.querySelector("#guestpass_icon").classList.remove("glyphicon-eye-close");
}
,updateClients: function(newClients) {
this.clients.length = 0;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage