diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-13 19:49:25 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2014-02-13 19:49:25 +0100 |
commit | 5e98c2183ae824ab6a1dd2dc22f8619a0d718977 (patch) | |
tree | 24ab567d403c967a8b33de8750053abeeca0125a /themes/baggy/js/init.js | |
parent | 38dafee05d52948fba4a06066d7b0343c8e3de9d (diff) | |
parent | 9f3148fec787a51f837549907130e8ec980a0547 (diff) | |
download | wallabag-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-x | themes/baggy/js/init.js | 12 |
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 @@ | |||
1 | document.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 | ||