Skip to content

Commit 6cdd2ac

Browse files
Mark JessopMark Jessop
authored andcommitted
Make narrower altitude range float predictions the default
1 parent 4e23378 commit 6cdd2ac

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,10 @@ <h4>Other</h4>
239239
</div>
240240
</div>
241241
<div class="row option">
242-
<span><b>Constrain Float Predictions</b></span>
243-
<div class="switch off" id="sw_float_constrained">
242+
<span><b>Wider Float Predictions</b></span>
243+
<div class="switch off" id="sw_float_wide">
244244
<span class="thumb"></span>
245-
<input type="checkbox" id="opt_float_constrained">
245+
<input type="checkbox" id="opt_float_wide">
246246
</div>
247247
</div>
248248
<h4>Overlays</h4>

js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ $(window).ready(function() {
732732
'#sw_show_testing',
733733
"#sw_nowelcome",
734734
"#sw_interpolate",
735-
"#sw_float_constrained"
735+
"#sw_float_wide"
736736
];
737737

738738
// applies functionality when switches are toggled

js/tracker.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,13 +1682,13 @@ function generateHysplit(callsign) {
16821682
hideHysplit(callsign)
16831683
var vehicle = vehicles[callsign];
16841684
vehicle.prediction_hysplit_visible = true;
1685-
// If requested, constrain the float prediction altitudes to a narrower range.
1686-
if(offline.get("opt_float_constrained")){
1687-
alt_max = 100;
1688-
alt_step = 20;
1689-
} else {
1685+
// If requested, widen the float prediction range.
1686+
if(offline.get("opt_float_wide")){
16901687
alt_max = 1000;
16911688
alt_step = 100;
1689+
} else {
1690+
alt_max = 100;
1691+
alt_step = 20;
16921692
}
16931693
alt_min = alt_max*-1;
16941694
for (var alt = alt_min; alt <= alt_max; alt+=alt_step) {

0 commit comments

Comments
 (0)