hackertours/themes/hackertours/assets/js/mobilemenu.js
Stefan Bethke c18375eeba 40C3: site structure and 40C3 theme
Move the Hackertours design into a stacked theme (hackertours) on top of
upstream zen, and add the 40C3 design as theme layer hackertours-40c3.
Adds the tour map, calendar/ICS and list view for the schedule, mobile
menu fixes, vendored icons and Leaflet, schedule tests, and README
documentation.
2026-11-14 20:54:06 +01:00

16 lines
462 B
JavaScript

/**
* @file
* A JavaScript file for the mobile bottom navigation menu.
*/
(function () {
// Hide the main menu on small screens
const main_menu = document.querySelector('.main-menu');
const header_region = document.querySelector('.header__region');
const small_screen = window.matchMedia('(max-width: 666px)').matches;
if (small_screen) {
if (main_menu) main_menu.hidden = true;
if (header_region) header_region.hidden = true;
}
})();