Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created August 1, 2011 18:01
Show Gist options
  • Save tripflex/1118649 to your computer and use it in GitHub Desktop.
Save tripflex/1118649 to your computer and use it in GitHub Desktop.
Turntable Chat Window
$('.chat-container').appendTo('body').width((($(window).width()-$('#outer').width())/2)+'px').height($('#outer').height()+'px').css('top','0').css('left','0'); $('.messages').height(($('#outer').height()-40-25)+'px'); $('.message').width('100%'); $('.messages').bind('DOMNodeInserted',function(){$(this).find('.message').last().width('100%');}); $('.playlist-container').height(($('#outer').height()-40-56)+'px'); $('.queueView').height(($('#outer').height()-40-82)+'px'); $('.songlist').height(($('#outer').height()-40-125)+'px');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment