wtf-webseite/assets/js/nav_toggle.js
Stephan 0a94a0fba4 Rudimentäre Lektor-Version des WTF-Layouts.
Nur eine Section, nur eine Menüebene.
2020-12-22 14:47:58 +01:00

9 lines
286 B
JavaScript

document.getElementsByClassName('nav__toggle')[0].addEventListener('click', function(){
var nav_list = document.getElementsByClassName('nav__navlist')[0]
if (nav_list.style.display === 'block') {
nav_list.style.display = 'none';
} else {
nav_list.style.display = 'block';
}
});