aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/js/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/baggy/js/init.js')
-rwxr-xr-xthemes/baggy/js/init.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/themes/baggy/js/init.js b/themes/baggy/js/init.js
new file mode 100755
index 00000000..c1d3c0ec
--- /dev/null
+++ b/themes/baggy/js/init.js
@@ -0,0 +1,12 @@
1document.addEventListener('DOMContentLoaded', function() {
2 var menu = document.getElementById('menu');
3
4 menu.addEventListener('click', function(){
5 if(this.nextElementSibling.style.display === "block") {
6 this.nextElementSibling.style.display = "none";
7 }else {
8 this.nextElementSibling.style.display = "block";
9 }
10
11 });
12}); \ No newline at end of file