Compare commits

..

3 Commits

Author SHA1 Message Date
faa6a5c931 chore: Gedoppelten Link entfernt damit Demo realistischer wird.
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/promote/spielwiese Build is passing
2024-03-22 23:48:45 +01:00
a646510170 fix: Fix Standort-Highlighting auf Home. 2024-03-22 23:48:45 +01:00
9e36de87a1 fix: Menü in mobile und PC-Version gesplittet.
Etwas Overhead im Template, dafür weniger verschwurbelte Logik.
2024-03-22 23:48:42 +01:00

View File

@ -1,9 +1,9 @@
document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){ document.getElementsByClassName('primary_nav__toggle')[0].addEventListener('click', function(){
let nav_list = document.getElementsByClassName('primary_nav__navlist')[0] let mobile_nav_list = document.getElementsByClassName('primary_nav__mobile_navlist')[0]
if (nav_list.style.display === 'block') { if (mobile_nav_list.style.display === 'block') {
nav_list.style.display = 'none'; mobile_nav_list.style.display = 'none';
} else { } else {
nav_list.style.display = 'block'; mobile_nav_list.style.display = 'block';
} }
}); });