Rearrangements to infoblock layout.

This commit is contained in:
Oliver Jowett 2015-01-22 14:44:32 +00:00
parent 6daf116b40
commit fac838b9ad
2 changed files with 5 additions and 4 deletions

View file

@ -116,7 +116,8 @@
</tr>
<tr class="infoblock_body">
<td colspan="2">Position: <span id="selected_position">n/a</span> <span id="selected_follow" onclick="toggleFollowSelected();" class="pointer">[ follow &#x21D2 ]</span></td>
<td>Position: <span id="selected_position">n/a</span></td>
<td><span id="selected_follow" onclick="toggleFollowSelected();" class="pointer">[ follow &#x21D2 ]</span></td>
</tr>
<tr class="infoblock_body">

View file

@ -570,7 +570,7 @@ function format_distance_long(dist) {
// p as a LatLng
function format_latlng(p) {
return p.lat().toFixed(5) + DEGREES + "," + NBSP + p.lng().toFixed(5) + DEGREES;
return p.lat().toFixed(3) + DEGREES + "," + NBSP + p.lng().toFixed(3) + DEGREES;
}
// Refresh the detail window about the plane
@ -641,7 +641,7 @@ function refreshSelected() {
if (selected.seen <= 1) {
$('#selected_seen').text('now');
} else {
$('#selected_seen').text(selected.seen + 's ago');
$('#selected_seen').text(selected.seen + 's');
}
if (selected.position === null) {
@ -649,7 +649,7 @@ function refreshSelected() {
$('#selected_follow').addClass('hidden');
} else {
if (selected.seen_pos > 1) {
$('#selected_position').text(format_latlng(selected.position) + " (" + selected.seen_pos + "s ago)");
$('#selected_position').text(format_latlng(selected.position) + " (" + selected.seen_pos + "s)");
} else {
$('#selected_position').text(format_latlng(selected.position));
}