Ok so I can't tell you how many times I've wanted to do this, and now after some of the things I've done with LG I understand how to select inside AWC. And tonight while being bored I created this REALLY AWESOME feature for the AWC! What you ask, well clearly a Member List Toggler... What this does is, you can close the members list and have a full chat, easily open it back up. Also it takes great advantage of the animate function from jQuery. Drum Roll Please...
Well hope you guys love this as much as I do, I'm over at my test site just toggling away
Updated To go with AWC 1.8
- Spoiler:
- Code:
avacweb_chat_config.add_event('onload', function () {
$(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" id="toggle_members">Close List</div>');
var members = $(avacweb_chat.id('chatbox_members'));
var chatbox = $(avacweb_chat.id('chatbox'));
var chat_tabs = $(avacweb_chat.id('achat_tabs'));
var toggle = $(avacweb_chat.id('toggle_members'));
toggle.toggle(function() {
members.stop().animate({left:-181},1000);
chatbox.stop().animate({left:0},1000);
chat_tabs.stop().animate({marginLeft:0px},1000);
toggle.html('Open List');
},
function() {
members.stop().animate({left:0},1000);
chatbox.stop().animate({left:181},1000);
chat_tabs.stop().animate({marginLeft:181px},1000);
toggle.html('Close List');
});
});
Well hope you guys love this as much as I do, I'm over at my test site just toggling away
Updated To go with AWC 1.8