forked from wallabag/wallabag
new theme, baggy one cf #448
This commit is contained in:
12
themes/baggy/js/init.js
Executable file
12
themes/baggy/js/init.js
Executable file
@ -0,0 +1,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";
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user