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

View file

@ -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) {

View file

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