mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-07 23:45:13 +00:00
add arrow to toggle legend pane
This commit is contained in:
parent
900fbafaa4
commit
dc390aa8b7
4 changed files with 35 additions and 6 deletions
|
|
@ -28,16 +28,21 @@ function MapManager() {
|
|||
}, 1000);
|
||||
|
||||
// When stuff loads...
|
||||
$(function() {
|
||||
$(function () {
|
||||
// Create clock display
|
||||
self.clock = new Clock($('#openwebrx-clock-utc'));
|
||||
|
||||
// Clicking clock display toggles legend box on/off
|
||||
$('#openwebrx-clock-utc').css('cursor', 'pointer').on('click', function() {
|
||||
$('#openwebrx-legend-toggle').css({
|
||||
'cursor': 'pointer',
|
||||
'display': 'flex',
|
||||
'justify-content': 'space-between'
|
||||
}).on('click', function () {
|
||||
var el = document.getElementById('openwebrx-map-selectors');
|
||||
if (el) {
|
||||
el.style.display = el.style.display === 'none'?
|
||||
'block' : 'none';
|
||||
$(this).find('i').removeClass()
|
||||
.addClass('openwebrx-arrow-' + (el.style.display === 'none' ? 'down' : 'up'));
|
||||
el.style.display = el.style.display === 'none' ? 'block' : 'none';
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue