From 40d64de1d1f76f4838521d60a012e8470a36a186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Semp=C3=A9r=C3=A9?= Date: Thu, 26 Sep 2024 08:48:03 +0200 Subject: [PATCH] Minor UI changes --- src/main/webapp/index.jsp | 12 ++++++------ src/main/webapp/js/main.js | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 4327c681..a3e3fa80 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -278,14 +278,14 @@ https://doi.org/10.1093/gigascience/giz051
-
- - -
- +
+
+ + +
@@ -293,7 +293,7 @@ https://doi.org/10.1093/gigascience/giz051
-
+
diff --git a/src/main/webapp/js/main.js b/src/main/webapp/js/main.js index b45f4520..bcc0b02a 100644 --- a/src/main/webapp/js/main.js +++ b/src/main/webapp/js/main.js @@ -1826,4 +1826,9 @@ function taxonSelected() { } }); $("#module").selectpicker("refresh"); +} + +function showHideLocalhostWarning() { + var serverAddr=location.origin.substring(location.origin.indexOf('//') + 2); + $('div#serverExportWarning').html($("#enableExportPush").prop('checked') && (serverAddr.toLowerCase().indexOf('localhost') == 0 || serverAddr.indexOf('127.0.0.1') == 0) ? 'WARNING: Gigwa seems to be running on localhost, any external tool running on a different machine will not be able to access exported files! If the computer running the webapp has an external IP address or domain name, you should use that instead.' : ''); } \ No newline at end of file