Fix typo. Clean up CSS and spacing
This commit is contained in:
parent
8985b5ab86
commit
8eeb29ec32
|
@ -168,7 +168,7 @@ function format_distance_long(dist, displayUnits, fixed) {
|
|||
return dist_text;
|
||||
}
|
||||
|
||||
function format_distace_short (dist, displayUnits) {
|
||||
function format_distance_short (dist, displayUnits) {
|
||||
if (dist === null) {
|
||||
return "n/a";
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ function convert_distance(dist, displayUnits) {
|
|||
// converts meters to feet or just returns meters
|
||||
function convert_distance_short(dist, displayUnits) {
|
||||
if (displayUnits === "imperial") {
|
||||
return (dist * 3.28084); // meters to feet
|
||||
return (dist / 0.3048); // meters to feet
|
||||
}
|
||||
return dist; // just meters
|
||||
}
|
||||
|
|
|
@ -5,8 +5,8 @@ function PlaneObject(icao) {
|
|||
this.icao = icao;
|
||||
this.icaorange = findICAORange(icao);
|
||||
this.flight = null;
|
||||
this.squawk = null;
|
||||
this.selected = false;
|
||||
this.squawk = null;
|
||||
this.selected = false;
|
||||
this.category = null;
|
||||
|
||||
// Basic location information
|
||||
|
@ -29,13 +29,13 @@ function PlaneObject(icao) {
|
|||
this.nav_heading = null;
|
||||
this.nav_modes = null;
|
||||
this.nav_qnh = null;
|
||||
this.rc = null;
|
||||
this.rc = null;
|
||||
|
||||
this.nac_p = null;
|
||||
this.nac_v = null;
|
||||
this.nic_baro = null;
|
||||
this.sil_type = null;
|
||||
this.sil = null;
|
||||
this.nac_p = null;
|
||||
this.nac_v = null;
|
||||
this.nic_baro = null;
|
||||
this.sil_type = null;
|
||||
this.sil = null;
|
||||
|
||||
this.baro_rate = null;
|
||||
this.geom_rate = null;
|
||||
|
|
|
@ -1046,7 +1046,7 @@ function refreshSelected() {
|
|||
} else if (selected.rc == 0) {
|
||||
$('#selected_rc').text("unknown");
|
||||
} else {
|
||||
$('#selected_rc').text(format_distace_short(selected.rc, DisplayUnits));
|
||||
$('#selected_rc').text(format_distance_short(selected.rc, DisplayUnits));
|
||||
}
|
||||
|
||||
if (selected.sil == null || selected.sil_type == null) {
|
||||
|
|
|
@ -319,8 +319,6 @@ select.error, textarea.error, input.error {
|
|||
color: #fff;
|
||||
background: #002F5D;
|
||||
font-size: 14px;
|
||||
/* padding: 5px 20px; */
|
||||
/* margin-left: -10px; */
|
||||
}
|
||||
|
||||
.section-title-content {
|
||||
|
@ -508,12 +506,10 @@ select.error, textarea.error, input.error {
|
|||
|
||||
.infoRowTitle {
|
||||
display: inline-block;
|
||||
/* width: 50%; */
|
||||
}
|
||||
|
||||
.infoRowContent {
|
||||
display: inline-block;
|
||||
/* width: 40%; */
|
||||
}
|
||||
|
||||
.infoRowFluid {
|
||||
|
@ -561,22 +557,6 @@ select.error, textarea.error, input.error {
|
|||
.lightGreyBackground {
|
||||
background-color: #efefef;
|
||||
}
|
||||
/*
|
||||
.fourColumnSection1 {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.fourColumnSection2 {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.fourColumnSection3 {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.fourColumnSection4 {
|
||||
width: 20%;
|
||||
} */
|
||||
|
||||
#dump1090_infoblock {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
|
@ -613,7 +593,6 @@ select.error, textarea.error, input.error {
|
|||
}
|
||||
|
||||
.legendTitle {
|
||||
/*margin-left: auto;*/
|
||||
line-height: 19px;
|
||||
display: inline-block;
|
||||
padding-right: 20px;
|
||||
|
|
Loading…
Reference in a new issue