I found a responsive menu code here and I want to add it to my Drupal 7 site. I have no experience with JavaScript, but I thought that if i just copy the script into mytheme/js/menu.js, call it in mytheme.info, and add the HTML to a block, I will have the script up and running.
The HTML part works fine, but the JavaScript part isn't working.
Why doesn't my JavaScript code work?