aboutsummaryrefslogtreecommitdiffhomepage
path: root/themes/baggy/js/init.js
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-02-13 19:49:25 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-02-13 19:49:25 +0100
commit5e98c2183ae824ab6a1dd2dc22f8619a0d718977 (patch)
tree24ab567d403c967a8b33de8750053abeeca0125a /themes/baggy/js/init.js
parent38dafee05d52948fba4a06066d7b0343c8e3de9d (diff)
parent9f3148fec787a51f837549907130e8ec980a0547 (diff)
downloadwallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.tar.gz
wallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.tar.zst
wallabag-5e98c2183ae824ab6a1dd2dc22f8619a0d718977.zip
Merge pull request #450 from wallabag/dev1.5.0
1.5.0
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