diff --git a/templates/about.html b/templates/about.html index 232ab3c..50cac74 100644 --- a/templates/about.html +++ b/templates/about.html @@ -67,7 +67,7 @@

This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.

- + {% end %} \ No newline at end of file diff --git a/templates/add_spot.html b/templates/add_spot.html index 6dbbed9..dd8c7f2 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -69,8 +69,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/alerts.html b/templates/alerts.html index a745259..250c949 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -56,8 +56,8 @@ - - + + {% end %} \ No newline at end of file diff --git a/templates/bands.html b/templates/bands.html index 7b3bef1..00235c2 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -62,9 +62,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 996808c..060f57d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -46,9 +46,9 @@ crossorigin="anonymous"> - - - + + + diff --git a/templates/cards/audio.html b/templates/cards/audio.html new file mode 100644 index 0000000..7b58bc9 --- /dev/null +++ b/templates/cards/audio.html @@ -0,0 +1,11 @@ +
+
+
Audio
+
+
+ + +
+
+
+
\ No newline at end of file diff --git a/templates/conditions.html b/templates/conditions.html index 8d577bf..2ff9c26 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -230,8 +230,8 @@ - - + + diff --git a/templates/map.html b/templates/map.html index 284c2f3..14e8b50 100644 --- a/templates/map.html +++ b/templates/map.html @@ -79,9 +79,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/spots.html b/templates/spots.html index e93add4..523dcfb 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -74,6 +74,9 @@
{% module Template("cards/table-columns-spots.html", web_ui_options=web_ui_options) %}
+
+ {% module Template("cards/audio.html", web_ui_options=web_ui_options) %} +
@@ -87,9 +90,9 @@ - - - + + + {% end %} \ No newline at end of file diff --git a/templates/status.html b/templates/status.html index d224ead..0dbd0d4 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,8 +59,8 @@ - - + + diff --git a/webassets/audio/ping.mp3 b/webassets/audio/ping.mp3 new file mode 100644 index 0000000..99808c8 Binary files /dev/null and b/webassets/audio/ping.mp3 differ diff --git a/webassets/js/spots.js b/webassets/js/spots.js index 556ab5b..93720e4 100644 --- a/webassets/js/spots.js +++ b/webassets/js/spots.js @@ -61,6 +61,11 @@ function startSSEConnection() { // Add the new spot to table addSpotToTopOfTable(newSpot, true); + + // Ping if we need to + if ($("#pingOnNewSpots")[0].checked) { + new Audio("/audio/ping.mp3").play(); + } }; evtSource.onerror = function(err) {