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> <script type="text/javascript" src="coolclock/moreskins.js"></script>
<title>DUMP1090</title> <title>DUMP1090</title>
</head> </head>
<body onload="initialize()"> <body onload="initialize()">
<div id="loader" class="hidden"> <div id="loader" class="hidden">
<img src="spinny.gif" id="spinny"> <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 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?! 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"> <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="reg1" value="">
<input type="hidden" name="selcal" value=""> <input type="hidden" name="selcal" value="">
@ -40,6 +42,7 @@
<div id="map_container"> <div id="map_container">
<div id="map_canvas"></div> <div id="map_canvas"></div>
</div> </div>
<div id="sidebar_container"> <div id="sidebar_container">
<div id="sidebar_canvas"> <div id="sidebar_canvas">
<div id="timestamps"> <div id="timestamps">
@ -54,7 +57,8 @@
<td align="center">Last Update</td> <td align="center">Last Update</td>
</tr> </tr>
</table> </table>
</div> </div> <!-- timestamps -->
<div id="sudo_buttons"> <div id="sudo_buttons">
<table width="100%"> <table width="100%">
<tr> <tr>
@ -63,7 +67,7 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div> <!-- sudo_buttons -->
<div id="dump1090_infoblock"> <div id="dump1090_infoblock">
<table width="100%"> <table width="100%">
@ -101,7 +105,7 @@
<td>History: <span id="dump1090_total_history">n/a</span> positions</td> <td>History: <span id="dump1090_total_history">n/a</span> positions</td>
</tr> </tr>
</table> </table>
</div> </div> <!-- dump1090_infoblock -->
<div id="selected_infoblock" class="hidden"> <div id="selected_infoblock" class="hidden">
<table width="100%"> <table width="100%">
@ -158,7 +162,8 @@
<td colspan="2">Distance from Site: <span id="selected_sitedist">n/a</span></td> <td colspan="2">Distance from Site: <span id="selected_sitedist">n/a</span></td>
</tr> </tr>
</table> </table>
</div> </div> <!-- selected_infoblock -->
<div id="planes_table"> <div id="planes_table">
<table id="tableinfo" width="100%"> <table id="tableinfo" width="100%">
<thead style="background-color: #BBBBBB; cursor: pointer;"> <thead style="background-color: #BBBBBB; cursor: pointer;">
@ -190,9 +195,11 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div> <!-- planes_table -->
</div>
</div> </div> <!-- sidebar_canvas -->
</div> <!-- sidebar_container -->
<div id="SpecialSquawkWarning" class="hidden"> <div id="SpecialSquawkWarning" class="hidden">
<b>Squawk 7x00 is reported and shown.</b><br> <b>Squawk 7x00 is reported and shown.</b><br>
This is most likely an error in receiving or decoding.<br> This is most likely an error in receiving or decoding.<br>

View file

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