diff --git a/html/script.js b/html/script.js index c122472..f6dde20 100644 --- a/html/script.js +++ b/html/script.js @@ -83,7 +83,7 @@ let firstFetch = true; let debugCounter = 0; let pathName = window.location.pathname.replace(/\/+/, '/') || "/"; let sourcesFilter = null; -let sources = ['adsb', ['uat', 'adsr'], 'mlat', 'tisb', 'modeS', 'other', 'adsc']; +let sources = ['adsb', ['uat', 'adsr'], 'mlat', 'tisb', 'modeS', 'other', 'adsc', 'ais']; let flagFilter = null; let flagFilterValues = ['military', 'pia', 'ladd']; let showTrace = false; @@ -1758,6 +1758,10 @@ function initSourceFilter(colors) { html += createFilter(colors['other'], 'Other', sources[5]); html += createFilter(colors['uat'], 'ADS-C', sources[6]); + if (aiscatcher_server) { + html += createFilter(colors['ais'], 'AIS', sources[7]); + } + document.getElementById('sourceFilter').innerHTML = html; jQuery("#sourceFilter").selectable({