ContainerImage.Pinniped/site/themes/pinniped/static/js/main.js

9 lines
322 B
JavaScript
Raw Permalink Normal View History

2020-11-06 22:42:57 +00:00
"use strict";
function mobileNavToggle() {
var menu = document.getElementById("mobile-menu").parentElement;
menu.classList.toggle('mobile-menu-visible');
}
document.addEventListener('DOMContentLoaded', function () {
document.getElementById('mobile-menu-button').addEventListener('click', mobileNavToggle);
});