Fix typo. Clean up CSS and spacing

This commit is contained in:
James Wilson 2018-08-17 11:31:12 -05:00
parent 8985b5ab86
commit 8eeb29ec32
4 changed files with 11 additions and 32 deletions

View file

@ -168,7 +168,7 @@ function format_distance_long(dist, displayUnits, fixed) {
return dist_text; return dist_text;
} }
function format_distace_short (dist, displayUnits) { function format_distance_short (dist, displayUnits) {
if (dist === null) { if (dist === null) {
return "n/a"; return "n/a";
} }
@ -193,7 +193,7 @@ function convert_distance(dist, displayUnits) {
// converts meters to feet or just returns meters // converts meters to feet or just returns meters
function convert_distance_short(dist, displayUnits) { function convert_distance_short(dist, displayUnits) {
if (displayUnits === "imperial") { if (displayUnits === "imperial") {
return (dist * 3.28084); // meters to feet return (dist / 0.3048); // meters to feet
} }
return dist; // just meters return dist; // just meters
} }

View file

@ -5,8 +5,8 @@ function PlaneObject(icao) {
this.icao = icao; this.icao = icao;
this.icaorange = findICAORange(icao); this.icaorange = findICAORange(icao);
this.flight = null; this.flight = null;
this.squawk = null; this.squawk = null;
this.selected = false; this.selected = false;
this.category = null; this.category = null;
// Basic location information // Basic location information
@ -29,13 +29,13 @@ function PlaneObject(icao) {
this.nav_heading = null; this.nav_heading = null;
this.nav_modes = null; this.nav_modes = null;
this.nav_qnh = null; this.nav_qnh = null;
this.rc = null; this.rc = null;
this.nac_p = null; this.nac_p = null;
this.nac_v = null; this.nac_v = null;
this.nic_baro = null; this.nic_baro = null;
this.sil_type = null; this.sil_type = null;
this.sil = null; this.sil = null;
this.baro_rate = null; this.baro_rate = null;
this.geom_rate = null; this.geom_rate = null;

View file

@ -1046,7 +1046,7 @@ function refreshSelected() {
} else if (selected.rc == 0) { } else if (selected.rc == 0) {
$('#selected_rc').text("unknown"); $('#selected_rc').text("unknown");
} else { } 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) { if (selected.sil == null || selected.sil_type == null) {

View file

@ -319,8 +319,6 @@ select.error, textarea.error, input.error {
color: #fff; color: #fff;
background: #002F5D; background: #002F5D;
font-size: 14px; font-size: 14px;
/* padding: 5px 20px; */
/* margin-left: -10px; */
} }
.section-title-content { .section-title-content {
@ -508,12 +506,10 @@ select.error, textarea.error, input.error {
.infoRowTitle { .infoRowTitle {
display: inline-block; display: inline-block;
/* width: 50%; */
} }
.infoRowContent { .infoRowContent {
display: inline-block; display: inline-block;
/* width: 40%; */
} }
.infoRowFluid { .infoRowFluid {
@ -561,22 +557,6 @@ select.error, textarea.error, input.error {
.lightGreyBackground { .lightGreyBackground {
background-color: #efefef; background-color: #efefef;
} }
/*
.fourColumnSection1 {
width: 20%;
}
.fourColumnSection2 {
width: 20%;
}
.fourColumnSection3 {
width: 20%;
}
.fourColumnSection4 {
width: 20%;
} */
#dump1090_infoblock { #dump1090_infoblock {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
@ -613,7 +593,6 @@ select.error, textarea.error, input.error {
} }
.legendTitle { .legendTitle {
/*margin-left: auto;*/
line-height: 19px; line-height: 19px;
display: inline-block; display: inline-block;
padding-right: 20px; padding-right: 20px;