aboutsummaryrefslogblamecommitdiffhomepage
path: root/themes/baggy/js/init.js
blob: c1d3c0ec01c6476e144462f664145a0e4bfdd2df (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                           
document.addEventListener('DOMContentLoaded', function() {
  var menu = document.getElementById('menu');

  menu.addEventListener('click', function(){
    if(this.nextElementSibling.style.display === "block") {
      this.nextElementSibling.style.display = "none";
    }else {
      this.nextElementSibling.style.display = "block";  
    }
    
  });
});