From bda198c729ba65905bc34d15b44eb51f8336a8ff Mon Sep 17 00:00:00 2001 From: RblSb Date: Mon, 6 Apr 2020 20:33:38 +0300 Subject: Hide password warning for guest login --- res/client.js | 4 ++++ res/index.html | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'res') 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; diff --git a/res/index.html b/res/index.html index 39252d5..1b86016 100644 --- a/res/index.html +++ b/res/index.html @@ -66,12 +66,12 @@
- + @@ -117,7 +117,7 @@
- +
@@ -131,7 +131,7 @@