ContainerImage.Pinniped/site/themes/pinniped/static/js/main.js
Matt Moyer a4089fcc72
Add security headers to the website.
The one bit of JS we have for the mobile menu needed some tweaking.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-02-23 14:38:05 -06:00

9 lines
322 B
JavaScript

"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);
});