Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

UIUtil.js 604B

1234567891011121314151617181920212223
  1. /**
  2. * Created by hristo on 12/22/14.
  3. */
  4. module.exports = {
  5. /**
  6. * Returns the available video width.
  7. */
  8. getAvailableVideoWidth: function () {
  9. var PanelToggler = require("../side_pannels/SidePanelToggler");
  10. var rightPanelWidth
  11. = PanelToggler.isVisible() ? PanelToggler.getPanelSize()[0] : 0;
  12. return window.innerWidth - rightPanelWidth;
  13. },
  14. /**
  15. * Changes the style class of the element given by id.
  16. */
  17. buttonClick: function(id, classname) {
  18. $(id).toggleClass(classname); // add the class to the clicked element
  19. }
  20. };