Indentation/Readability cleanup

This commit is contained in:
Chris Bowles 2016-03-22 15:39:57 -04:00
parent dfc253bebf
commit d00b07f361
2 changed files with 857 additions and 851 deletions

View file

@ -18,6 +18,7 @@
<script type="text/javascript" src="coolclock/moreskins.js"></script>
<title>DUMP1090</title>
</head>
<body onload="initialize()">
<div id="loader" class="hidden">
<img src="spinny.gif" id="spinny">
@ -29,7 +30,8 @@
but if we have an input control with that name then it shadows the submit() function that
we need. So steal the submit function off a different form. Surely there is a better way?!
-->
<form id="horrible_hack" class="hidden"></form>
<form id="horrible_hack" class="hidden">
</form>
<form id="airframes_post" method="POST" action="http://www.airframes.org/" target="_blank" class="hidden">
<input type="hidden" name="reg1" value="">
<input type="hidden" name="selcal" value="">
@ -40,6 +42,7 @@
<div id="map_container">
<div id="map_canvas"></div>
</div>
<div id="sidebar_container">
<div id="sidebar_canvas">
<div id="timestamps">
@ -54,7 +57,8 @@
<td align="center">Last Update</td>
</tr>
</table>
</div>
</div> <!-- timestamps -->
<div id="sudo_buttons">
<table width="100%">
<tr>
@ -63,7 +67,7 @@
</td>
</tr>
</table>
</div>
</div> <!-- sudo_buttons -->
<div id="dump1090_infoblock">
<table width="100%">
@ -101,7 +105,7 @@
<td>History: <span id="dump1090_total_history">n/a</span> positions</td>
</tr>
</table>
</div>
</div> <!-- dump1090_infoblock -->
<div id="selected_infoblock" class="hidden">
<table width="100%">
@ -158,7 +162,8 @@
<td colspan="2">Distance from Site: <span id="selected_sitedist">n/a</span></td>
</tr>
</table>
</div>
</div> <!-- selected_infoblock -->
<div id="planes_table">
<table id="tableinfo" width="100%">
<thead style="background-color: #BBBBBB; cursor: pointer;">
@ -190,9 +195,11 @@
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- planes_table -->
</div> <!-- sidebar_canvas -->
</div> <!-- sidebar_container -->
<div id="SpecialSquawkWarning" class="hidden">
<b>Squawk 7x00 is reported and shown.</b><br>
This is most likely an error in receiving or decoding.<br>

View file

@ -450,8 +450,7 @@ function initialize_map() {
if (FollowSelected) {
// On manual navigation, disable follow
var selected = Planes[SelectedPlane];
if (Math.abs(GoogleMap.getCenter().lat() - selected.position.lat()) > 0.0001 &&
Math.abs(GoogleMap.getCenter().lng() - selected.position.lng()) > 0.0001) {
if (Math.abs(GoogleMap.getCenter().lat() - selected.position.lat()) > 0.0001 && Math.abs(GoogleMap.getCenter().lng() - selected.position.lng()) > 0.0001) {
FollowSelected = false;
refreshSelected();
}