You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bottom_toolbar.js 844B

1234567891011121314151617181920212223242526272829303132
  1. var BottomToolbar = (function (my) {
  2. my.toggleChat = function() {
  3. if (ContactList.isVisible()) {
  4. buttonClick("#contactListButton", "active");
  5. ContactList.toggleContactList();
  6. }
  7. buttonClick("#chatBottomButton", "active");
  8. Chat.toggleChat();
  9. };
  10. my.toggleContactList = function() {
  11. if (Chat.isVisible()) {
  12. buttonClick("#chatBottomButton", "active");
  13. Chat.toggleChat();
  14. }
  15. buttonClick("#contactListButton", "active");
  16. ContactList.toggleContactList();
  17. };
  18. $(document).bind("remotevideo.resized", function (event, width, height) {
  19. var bottom = (height - $('#bottomToolbar').outerHeight())/2 + 18;
  20. $('#bottomToolbar').css({bottom: bottom + 'px'});
  21. });
  22. return my;
  23. }(BottomToolbar || {}));