File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments