11 lines
381 B
JavaScript
11 lines
381 B
JavaScript
|
"use strict";
|
||
|
document.addEventListener("DOMContentLoaded", function () {
|
||
|
(function Navbar() {
|
||
|
var menuButton = document.getElementById('menu-button');
|
||
|
var navMenu = document.getElementById('nav-menu');
|
||
|
menuButton.onclick = function (event) {
|
||
|
navMenu.classList.toggle('is-active');
|
||
|
};
|
||
|
})();
|
||
|
});
|
||
|
//# sourceMappingURL=navbar.js.map
|