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 --- src/client/Main.hx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/Main.hx') diff --git a/src/client/Main.hx b/src/client/Main.hx index b1f5e79..6c7677b 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -560,6 +560,9 @@ class Main { ge("#guestlogin").style.display = "none"; ge("#chatline").style.display = "none"; ge("#guestpassword").style.display = "block"; + (cast ge("#guestpass") : InputElement).type = "password"; + ge("#guestpass_icon").classList.add("glyphicon-eye-open"); + ge("#guestpass_icon").classList.remove("glyphicon-eye-close"); } function updateClients(newClients:Array):Void { -- cgit v1.2.3