From 1ba1d1154f7f0bf91d6b2ba7a18cf63d43f5c7bc Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 23 May 2020 00:25:02 +0200 Subject: [PATCH] separate type description / type code in description --- html/index.html | 14 +++++++++++--- html/script.js | 6 +++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/html/index.html b/html/index.html index 0415bc1..be84082 100644 --- a/html/index.html +++ b/html/index.html @@ -130,12 +130,20 @@
- Desc. - Type: + Type code:
+
+
+ Type Desc.: +
+
+ +
+
Squawk: @@ -838,7 +846,7 @@
- +
@@ -847,7 +855,7 @@
- +
diff --git a/html/script.js b/html/script.js index 5c24254..51c8eee 100644 --- a/html/script.js +++ b/html/script.js @@ -1787,10 +1787,14 @@ function refreshSelected() { } if (selected.icaoType) { - $('#selected_icaotype').text(selected.typeDescription + ' - ' + selected.icaoType); + $('#selected_icaotype').text(selected.icaoType); } else { $('#selected_icaotype').text("n/a"); } + if (selected.typeDescription) + $('#selected_typedesc').text(selected.typeDescription); + else + $('#selected_typedesc').text("n/a"); if (showPictures && selected.icaoType){ let new_html = "";