diff --git a/static/js/spots.js b/static/js/spots.js index 56d7de5..4bfd9f1 100644 --- a/static/js/spots.js +++ b/static/js/spots.js @@ -538,6 +538,15 @@ function displayIntroBox() { $("#intro-box-dismiss").click(function () { localStorage.setItem("intro-box-dismissed", true); }); + + // Do the same with the "telnet" intro box, but only show it if the user has dismissed the normal intro box once, + // to avoid two boxes on first page load. + if (localStorage.getItem("intro-box-telnet-dismissed") == null && localStorage.getItem("intro-box-dismissed") != null) { + $("#intro-box-telnet").show(); + } + $("#intro-box-telnet-dismiss").click(function () { + localStorage.setItem("intro-box-telnet-dismissed", true); + }); } // Mark a callsign-band-mode combination as worked (or unmark it). Persist this to localStorage. diff --git a/templates/add_spot.html b/templates/add_spot.html index a1ae6f3..58e4806 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -77,7 +77,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 2db1149..66bfaad 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -83,7 +83,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index cf4d0c2..f611cc2 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -76,8 +76,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index a807322..fb136d5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -16,10 +16,10 @@ window.fetchEventSource = fetchEventSource; - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 98c3fad..f43b2fb 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 6b55bdd..c7235e7 100644 --- a/templates/map.html +++ b/templates/map.html @@ -113,8 +113,8 @@ const CARTODB_API_KEY = "{{ web_ui_options.get('cartodb_api_key', '') }}"; - - + + diff --git a/templates/spots.html b/templates/spots.html index 0f41e8b..6a6b662 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -14,6 +14,18 @@ +{% if telnet_server_enabled %} +
+ +
+{% end %} +
@@ -113,8 +125,8 @@
- - + + diff --git a/templates/status.html b/templates/status.html index 48f4566..8233b6f 100644 --- a/templates/status.html +++ b/templates/status.html @@ -86,7 +86,7 @@
- +