diff --git a/html5/connect.html b/html5/connect.html index 090a55c1..b5291e7c 100644 --- a/html5/connect.html +++ b/html5/connect.html @@ -59,13 +59,21 @@

Xpra HTML5 Client

+
Secure Sockets Insecure plain-text passwords
- AES - + + + AES + + + + + +
@@ -558,6 +566,7 @@

Advanced options

if (aes_input.checked) { ssl_input.checked = false; $('select#encryption').show(); + $('img#toggle-key').show(); $('span#aes-label').hide(); $('span#encryption-key-span').show(); const key_input = document.getElementById("key"); @@ -567,6 +576,7 @@

Advanced options

} else { $('select#encryption').hide(); + $('img#toggle-key').hide(); $('span#aes-label').show(); $('span#encryption-key-span').hide(); } @@ -582,6 +592,26 @@

Advanced options

document.getElementById("encryption").value = "AES-"+enc_mode; } } + + //reveal password and aes key: + function toggle_reveal(el) { + let x = document.getElementById(el); + if (x.type === "password") { + x.type = "text"; + return "eye.png"; + } else { + x.type = "password"; + return "eye-slash.png"; + } + } + $('#toggle-password').on("click", function() { + $('#toggle-password').attr("src", "../icons/"+toggle_reveal("password")); + }); + $('#toggle-key').on("click", function() { + $('#toggle-key').attr("src", "../icons/"+toggle_reveal("key")); + }); + + if (!has_session_storage) { //passwords would be sent on URL, //so show insecure checkbox whenever ssl is off: diff --git a/html5/css/signin.css b/html5/css/signin.css index c871f96c..37c1556f 100644 --- a/html5/css/signin.css +++ b/html5/css/signin.css @@ -1,6 +1,3 @@ -body { -} - div.bg-image { position:fixed; height: 100%; @@ -86,4 +83,13 @@ div.container { color: red; font-size: smaller; padding-left: 10px; -} \ No newline at end of file +} + +.form-signin img.field-icon { + margin-left: -32px; + position: relative; + z-index: 2; + font-family: bootstrap-icons; + width: 1.2em; + height: 1.2em; +}