public
Created

embed_talker2.js

  • Download Gist
gistfile1.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
$("#talker2_link").remove()
Teambox.views.sidebar.apps_list.addApp("talker2", "New Group Chat", "#", "key");
$("#talker2_link a").click(function (e) {
e.preventDefault();
if (this.open) {
$(".chat_container").remove();
$(".content_wrap").css("bottom", "0px");
this.open = false;
} else {
var height = 250;
$(".chat_container").remove();
$('body').prepend('<div class="chat_container" style="position: fixed; bottom: 0; left: 191px; right: 0px; height: '+height+'px; border-top: 2px solid #999; border-left: 1px solid #999; z-index: 1;"><iframe src="http://client.talkerapp.com/?channel=teambox#nick=' + Teambox.models.user.get('username') + '" style="width: 100%;height: 100%;"></iframe></div>');
$(".content_wrap").css("bottom", (height+2)+"px");
this.open = true;
}
})

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.