TesoMayn
Boredom, it vexes me.
I actually have this working on my own site, but trying to get it to work on here as a user script
I'm just now starting to work with jQuery, so sorry if this is something easy.
I'm just now starting to work with jQuery, so sorry if this is something easy.
Code:
$('li.node').each(function() {
$(this).click(function(){
$(this).toggleClass("open");
$(this).find('li').toggle(300);
});
if ($(this).hasClass("open")) {
$('.toggle-icon').html("<i class='fa fa-minus-circle'></i>");
} else {
$('.toggle-icon').html("<i class='fa fa-plus-circle'></i>");
}
});