From c625024513748664144d79c38cb6788e40c6e6d8 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 9 May 2024 20:26:47 +0700 Subject: [PATCH] show some server information --- html5/connect.html | 23 ++++++++++++++++++----- html5/css/signin.css | 6 ++++++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/html5/connect.html b/html5/connect.html index 9fb5ae87..72b1dcc4 100644 --- a/html5/connect.html +++ b/html5/connect.html @@ -77,6 +77,10 @@
Version 13 beta
maxlength="5" />
+
+ +
+
Advanced options ); } - function show_mode(is_proxy) { - Utilities.debug("show_mode(", is_proxy, ")"); + function show_mode(mode, is_proxy) { + Utilities.debug("show_mode(", mode, ", ", is_proxy, ")"); + let server_info = ""; + let host_address = get_host_address(true); + if (mode.length > 0) { + server_info = host_address + " is a '" + mode + "' server"; + } + else { + server_info = "no information available for " + host_address; + } + document.getElementById("server-info").innerText = server_info; if (is_proxy) { //show all options: $("#action_connect_group").show(); @@ -1417,13 +1430,13 @@

Advanced options

mode.indexOf("desktop") >= 0 || mode.indexOf("shadow") >= 0 ) { - show_mode(false); + show_mode(mode, false); } else { - show_mode(true); + show_mode(mode, true); } }, function (error) { - show_mode(true); + show_mode("", true); } ); } diff --git a/html5/css/signin.css b/html5/css/signin.css index 27d4fd13..82ec3f23 100644 --- a/html5/css/signin.css +++ b/html5/css/signin.css @@ -100,3 +100,9 @@ div.container { width: 1.2em; height: 1.2em; } + +.form-signin span#server-info { + padding-left: 20px; + font-size: 11px; + font-style: italic; +} \ No newline at end of file