diff --git a/public_html/index.html b/public_html/index.html index cf851b9..e392bec 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -19,7 +19,7 @@ - + @@ -83,6 +83,14 @@
Speed:
n/a
+
+
Registration:
+
n/a
+
+
+
Source:
+
n/a
+
diff --git a/public_html/script.js b/public_html/script.js index 2e3c897..c2b4edd 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -1165,6 +1165,21 @@ function refreshHighlighted() { $('#higlighted_icaotype').text(""); } + if (highlighted.getDataSource() === "adsb_icao") { + $('#highlighted_source').text("ADS-B"); + } else if (highlighted.getDataSource() === "tisb_trackfile" || highlighted.getDataSource() === "tisb_icao" || highlighted.getDataSource() === "tisb_other") { + $('#highlighted_source').text("TIS-B"); + } else if (highlighted.getDataSource() === "mlat") { + $('#highlighted_source').text("MLAT"); + } else { + $('#highlighted_source').text("Other"); + } + + if (highlighted.registration !== null) { + $('#highlighted_registration').text(highlighted.registration); + } else { + $('#highlighted_registration').text(""); + } $('#highlighted_speed').text(format_speed_long(highlighted.speed, DisplayUnits));