diff --git a/public_html/index.html b/public_html/index.html index 962fc6f..3bd0f0f 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -573,7 +573,7 @@
- Nac_p: + NACP:
n/a @@ -581,43 +581,35 @@
- Sil_type: -
-
- n/a -
-
-
-
- Nac_v: -
-
- n/a -
-
-
-
- Nic_baro: -
-
- n/a -
-
-
-
- Sil: + SIL:
n/a
+
+
+ NACV: +
+
+ n/a +
+
+
+
+ NICBARO: +
+
+ n/a +
+
- Learn more about Mode S data type by hovering over each data label. + Learn more about Mode S data type by hovering over each data label.
diff --git a/public_html/script.js b/public_html/script.js index 821e9fa..d447d6b 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -1031,7 +1031,11 @@ function refreshSelected() { if (selected.nic_baro == null) { $('#selected_nic_baro').text("n/a"); } else { - $('#selected_nic_baro').text(selected.nic_baro); + if (selected.nic_baro == 1) { + $('#selected_nic_baro').text("cross-checked"); + } else { + $('#selected_nic_baro').text("not cross-checked"); + } } if (selected.nac_p == null) { $('#selected_nac_p').text("n/a"); @@ -1043,15 +1047,36 @@ function refreshSelected() { } else { $('#selected_nac_v').text(selected.nac_v); } - if (selected.sil == null) { + if (selected.sil == null || selected.sil_type == null) { $('#selected_sil').text("n/a"); } else { - $('#selected_sil').text(selected.sil); - } - if (selected.sil_type == null) { - $('#selected_sil_type').text("n/a"); - } else { - $('#selected_sil_type').text(selected.sil_type); + var sampleRate = ""; + var silDesc = ""; + if (selected.sil_type == "perhour") { + sampleRate = " per flight hour"; + } else if (selected.sil_type == "persample") { + sampleRate = " per sample"; + } + + switch (selected.sil) { + case 0: + silDesc = "> 1×10-3"; + break; + case 1: + silDesc = "≤ 1×10-3"; + break; + case 2: + silDesc = "≤ 1×10-5"; + break; + case 3: + silDesc = "≤ 1×10-7"; + break; + default: + silDesc = "n/a"; + sampleRate = ""; + break; + } + $('#selected_sil').html(silDesc + sampleRate); } if (selected.version == null) { diff --git a/public_html/style.css b/public_html/style.css index 43fd2ce..c6e37de 100644 --- a/public_html/style.css +++ b/public_html/style.css @@ -302,6 +302,10 @@ select.error, textarea.error, input.error { color: #002F5D; } +.infoHeading sub { + font-weight: normal; +} + .infoData { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; @@ -713,7 +717,7 @@ select.error, textarea.error, input.error { line-height: 18px; } .selected_airframe { - padding-top: 75px; + padding-top: 30px; } .selected_airframe a { color: #002F5D;