37 lines
974 B
JavaScript
37 lines
974 B
JavaScript
var BottomToolbar = (function (my) {
|
|
my.toggleChat = function() {
|
|
if (ContactList.isVisible()) {
|
|
buttonClick("#contactListButton", "active");
|
|
ContactList.toggleContactList();
|
|
}
|
|
|
|
buttonClick("#chatBottomButton", "active");
|
|
|
|
Chat.toggleChat();
|
|
};
|
|
|
|
my.toggleContactList = function() {
|
|
if (Chat.isVisible()) {
|
|
buttonClick("#chatBottomButton", "active");
|
|
Chat.toggleChat();
|
|
}
|
|
|
|
buttonClick("#contactListButton", "active");
|
|
|
|
ContactList.toggleContactList();
|
|
};
|
|
|
|
my.toggleFilmStrip = function() {
|
|
var filmstrip = $("#remoteVideos");
|
|
filmstrip.toggleClass("hidden");
|
|
};
|
|
|
|
$(document).bind("remotevideo.resized", function (event, width, height) {
|
|
var bottom = (height - $('#bottomToolbar').outerHeight())/2 + 18;
|
|
|
|
$('#bottomToolbar').css({bottom: bottom + 'px'});
|
|
});
|
|
|
|
return my;
|
|
}(BottomToolbar || {}));
|