1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/movim_ynh.git synced 2024-09-03 19:46:19 +02:00
movim_ynh/sources/app/widgets/Group/group.js

22 lines
557 B
JavaScript

var Group = {
addLoad: function(id) {
document.querySelector('#group_widget').className = 'card shadow spinner';
movim_add_class('#group_widget', 'on');
movim_add_class('#group_widget', id);
},
clearLoad: function() {
movim_remove_class('#group_widget', 'on');
},
enableVideos: function() {
var items = document.querySelectorAll('video');
var i = 0;
while(i < items.length)
{
items[i].setAttribute('controls', 'controls');
i++;
}
}
}