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