Hide extended data fields by default

This commit is contained in:
Oliver Jowett 2018-05-09 15:20:45 +01:00
parent 084acd2951
commit c9e729a48a
3 changed files with 12 additions and 1 deletions

View file

@ -118,3 +118,8 @@ ChartBundleLayers = false;
// BingMapsAPIKey = "your key here"; // BingMapsAPIKey = "your key here";
// //
BingMapsAPIKey = null; BingMapsAPIKey = null;
// Turn on display of extra Mode S EHS / ADS-B v1/v2 data
// This is not polished yet (and so is disabled by default),
// currently it's just a data dump of the new fields with no UX work.
ExtendedData = false;

View file

@ -172,6 +172,7 @@
</div> </div>
<div id="extendedData" class="hidden">
<div class="infoBlockSection lightGreyBackground"> <div class="infoBlockSection lightGreyBackground">
<div> <div>
<div class="infoHeading infoRowFluid fourColumnSection1">Alt (geom):</div> <div class="infoHeading infoRowFluid fourColumnSection1">Alt (geom):</div>
@ -229,6 +230,7 @@
<div class="infoData infoRowFluid fourColumnSection2"><span id="selected_version"/></div> <div class="infoData infoRowFluid fourColumnSection2"><span id="selected_version"/></div>
</div> </div>
</div> </div>
</div>
<a href="http://www.airframes.org/" onclick="document.getElementById('horrible_hack').submit.call(document.getElementById('airframes_post')); return false;" class="link rightLink"> <a href="http://www.airframes.org/" onclick="document.getElementById('horrible_hack').submit.call(document.getElementById('airframes_post')); return false;" class="link rightLink">
AirFrames.org AirFrames.org

View file

@ -198,6 +198,10 @@ function initialize() {
$("#loader").removeClass("hidden"); $("#loader").removeClass("hidden");
if (ExtendedData) {
$("#extendedData").removeClass("hidden");
}
// Set up map/sidebar splitter // Set up map/sidebar splitter
$("#sidebar_container").resizable({handles: {w: '#splitter'}}); $("#sidebar_container").resizable({handles: {w: '#splitter'}});