diff --git a/html/config.js b/html/config.js index 76c8bfc..e9c59af 100644 --- a/html/config.js +++ b/html/config.js @@ -379,6 +379,7 @@ HideCols = [ //tableInView = false; // only show aircraft in current view (V button) //audio_url = ["", "", "", "", "", ""]; // show html5 audio player for these URLs +// example with titles: audio_url = [ ["URL1", "title1" ], ["URL2", "title2"] ]; // aiscatcher_server = "http://192.168.1.113:8100"; // update with your server address // aiscatcher_refresh = 15; // refresh interval in seconds diff --git a/html/defaults.js b/html/defaults.js index dddeb2b..8c41a25 100644 --- a/html/defaults.js +++ b/html/defaults.js @@ -386,6 +386,7 @@ let darkModeDefault = true; // turn on dark mode by default (change in browser p let tableInView = false; // only show aircraft in current view (V button) let audio_url = ["", "", "", "", "", ""]; // show html5 audio player for these URLs +// example with titles: audio_url = [ ["URL1", "title1" ], ["URL2", "title2"] ]; let aiscatcher_server = ""; let aiscatcher_refresh = 15; diff --git a/html/script.js b/html/script.js index aab6678..7d0681a 100644 --- a/html/script.js +++ b/html/script.js @@ -871,10 +871,16 @@ function earlyInitPage() { audio_url = [ audio_url ]; } let html = ""; - for (const url of audio_url) { + for (const entry of audio_url) { + let url = entry; + let title = entry; + if (Array.isArray(url)) { + url = entry[0]; + title = entry[1]; + } if (url) { html += ` -