Fix NAC/NIC/SIL labels and content. Fix airframes padding. Fix info icon url

This commit is contained in:
James Wilson 2018-07-31 18:25:11 -05:00
parent 0983766a6c
commit 6af6ff7c2b
3 changed files with 57 additions and 36 deletions

View file

@ -573,7 +573,7 @@
<div class="infoBlockSection">
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
<span title="Navigation accuracy category of the position (95% bound on positions).">Nac_p</span>:
<span title="Navigation accuracy category of the position (95% bound on positions).">NAC<sub>P</sub></sub></span>:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_nac_p">n/a</span>
@ -581,43 +581,35 @@
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
Sil_type:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_sil_type">n/a</span>
</div>
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
<span title="Navigation accuracy category of the velocity (95% bound on velocities).">Nac_v</span>:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_nac_p">n/a</span>
</div>
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
Nic_baro:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_nic_baro">n/a</span>
</div>
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
<span title="Surveillance integrity level (probability of positions lying outside the claimed radius of containment).">Sil</span>:
<span title="Surveillance integrity level (probability of positions lying outside the claimed radius of containment).">SIL</span>:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_sil">n/a</span>
</div>
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
<span title="Navigation accuracy category of the velocity (95% bound on velocities).">NAC<sub>V</sub></span>:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_nac_p">n/a</span>
</div>
</div>
<div class="infoRowLine">
<div class="infoHeading infoRowFluid fourColumnSection1">
NIC<sub>BARO</sub>:
</div>
<div class="infoData infoRowFluid fourColumnSection2">
<span id="selected_nic_baro">n/a</span>
</div>
</div>
<!-- </div> -->
</div>
<div class="bottom-info-container">
<img src="/images/icon-information@2x.png" width="18" height="18"> Learn more about Mode S data type by hovering over each data label.
<img src="images/icon-information@2x.png" width="18" height="18"> Learn more about Mode S data type by hovering over each data label.
</div>
<div class="bottom-container">

View file

@ -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 = "&gt; 1×10<sup>-3</sup>";
break;
case 1:
silDesc = "≤ 1×10<sup>-3</sup>";
break;
case 2:
silDesc = "≤ 1×10<sup>-5</sup>";
break;
case 3:
silDesc = "≤ 1×10<sup>-7</sup>";
break;
default:
silDesc = "n/a";
sampleRate = "";
break;
}
$('#selected_sil').html(silDesc + sampleRate);
}
if (selected.version == null) {

View file

@ -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;