Skip to content

Commit 5348e5d

Browse files
added switch to hide timebox
1 parent a47b971 commit 5348e5d

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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">

js/app.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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); }

0 commit comments

Comments
 (0)