File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2+ const mainNavHashLinks = document . querySelectorAll (
3+ 'rh-navigation-primary-item[href^="#"], rh-navigation-primary-item > a[href^="#"]'
4+ ) ;
5+
6+ // Close dropdowns after clicking an in-page link on mobile viewports
7+ for ( let hashLink of mainNavHashLinks ) {
8+ hashLink . addEventListener ( 'click' , function ( ) {
9+ hashLink . closest ( 'rh-navigation-primary' ) . close ( ) ;
10+ } ) ;
11+ }
12+ } ) ;
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ <h3 class="header">{{ elem.heading }}</h3>
116116
117117{% include "partials/_footer.html" %}
118118
119+ < script src ="/js/page.js "> </ script >
119120< script src ="/js/table-search.js "> </ script >
120121< script src ="/js/rht-picture.js "> </ script >
121122
You can’t perform that action at this time.
0 commit comments