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.
16 lines
462 B
JavaScript
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;
|
|
}
|
|
})();
|