Difference between revisions of "Template:TU Darmstadt/JS"

Line 18: Line 18:
 
   }
 
   }
  
   document.getElementsByClassName('burger-inner').addEventListener('click', function () {
+
   document.getElementsByClassName('burger-inner')[0].addEventListener('click', function () {
 
     document.body.classList.toggle('nav-in');
 
     document.body.classList.toggle('nav-in');
 
   });
 
   });

Revision as of 18:42, 15 October 2018