Skip to content

Commit

Permalink
Add way to open overlay on click on selected station name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Atokulus committed Mar 6, 2023
1 parent 0740fc5 commit ddf9f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion imports/ui/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<svg id="connection_board" onresize="$('#connection_board').trigger('connectionBoard.resize');"></svg>
</div>
<div class="footer">
<div class="station_name">{{{station_name}}}</div>
<div id="selected_station" class="station_name">{{{station_name}}}</div>
<div class="time">
<svg class="clock" id="clock"></svg>
<div class="time-digits"></div>
Expand Down
4 changes: 4 additions & 0 deletions imports/ui/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ Template.body.onRendered(() => {
else Session.set('route', 'overlay')
})

$('#selected_station').on('click', e => {
Session.set('route', 'overlay')
})

let resized = count => {
Session.set('connection_count', count)
}
Expand Down

0 comments on commit ddf9f2a

Please sign in to comment.