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 %}
{{ telnet_server_address }} and port {{ telnet_server_port }}.
+
+