2015-01-07 14:54:03 +00:00
|
|
|
/**
|
|
|
|
* Created by hristo on 12/22/14.
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
/**
|
|
|
|
* Returns the available video width.
|
|
|
|
*/
|
|
|
|
getAvailableVideoWidth: function () {
|
|
|
|
var PanelToggler = require("../side_pannels/SidePanelToggler");
|
|
|
|
var rightPanelWidth
|
|
|
|
= PanelToggler.isVisible() ? PanelToggler.getPanelSize()[0] : 0;
|
|
|
|
|
|
|
|
return window.innerWidth - rightPanelWidth;
|
2015-01-19 09:20:00 +00:00
|
|
|
},
|
|
|
|
/**
|
|
|
|
* Changes the style class of the element given by id.
|
|
|
|
*/
|
|
|
|
buttonClick: function(id, classname) {
|
|
|
|
$(id).toggleClass(classname); // add the class to the clicked element
|
2015-01-07 14:54:03 +00:00
|
|
|
}
|
|
|
|
|
2015-01-19 09:20:00 +00:00
|
|
|
|
2015-01-07 14:54:03 +00:00
|
|
|
};
|