lynnespace/assets/script.js

14 lines
389 B
JavaScript
Raw Normal View History

2021-05-02 08:51:24 +00:00
// @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat license
2021-05-02 08:39:49 +00:00
function dgel(id) {
return document.getElementById(id);
}
window.addEventListener('DOMContentLoaded', (_) => {
dgel('hamburger').onclick = function () {
this.classList.toggle('active');
document.getElementsByTagName('header')[0].classList.toggle('active');
};
});
2021-05-02 08:51:24 +00:00
// @license-end