File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,13 @@ <h2><i class="icon-settings rfloat"></i>Settings</h2>
119119 < input type ="checkbox " id ="opt_haxis_hours ">
120120 </ div >
121121 </ div >
122+ < div class ="row option ">
123+ < span > < b > Hide time display</ b > </ span >
124+ < div class ="switch off " id ="sw_hide_timebox ">
125+ < span class ="thumb "> </ span >
126+ < input type ="checkbox " id ="opt_hide_timebox ">
127+ </ div >
128+ </ div >
122129 < div class ="row option ">
123130 < span > < b > Hide receivers from the map</ b > </ span >
124131 < div class ="switch off " id ="sw_hide_receivers ">
Original file line number Diff line number Diff line change @@ -485,7 +485,8 @@ $(window).ready(function() {
485485 "#sw_imperial" ,
486486 "#sw_haxis_hours" ,
487487 "#sw_daylight" ,
488- "#sw_hide_receivers"
488+ "#sw_hide_receivers" ,
489+ "#sw_hide_timebox"
489490 ] ;
490491
491492 // applies functionality when switches are toggled
@@ -530,6 +531,11 @@ $(window).ready(function() {
530531 refreshReceivers ( ) ;
531532 }
532533 break ;
534+ case "opt_hide_timebox" :
535+ var elm = $ ( "#timebox" ) ;
536+ if ( on ) { elm . attr ( 'class' , '' ) . hide ( ) ; }
537+ else { elm . attr ( 'class' , '' ) . addClass ( 'present' ) . show ( ) ; }
538+ break ;
533539 case "opt_layers_clouds" :
534540 if ( on ) { layers_clouds . setMap ( map ) ; }
535541 else { layers_clouds . setMap ( null ) ; }
You can’t perform that action at this time.
0 commit comments