[SOLVED]Make friendslist collapsable - Better Battlelog Forums #139648

Sitemap
Post edited 1 x times, last by
Topicstarter
Hello,

I'm using Better Battlelog 2.0 Theme where the firendslist is a standalone div on right side of the page.

How can I make it collapsable with jQuery? I know a lot already, but can't make it happen.

I want to click the following div:
#friendlist-header

so make it toggable.
You can animate the height of $("#comcenter-friends") from the full height (700 px) to 38 px.
Post edited 2 x times, last by
Topicstarter
That works! Thabks!

This is what I got out of it:

$("div#friendlist-header").toggle(function(e){
if(e.target == this){
$("#comcenter-friends").animate({height:80},200);
}
},function(e){
if(e.target == this){
$("#comcenter-friends").animate({height:700},200);
}
});
Topicstarter
Well, I broke the search for friends function tho...