25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00
xmpp.chapril.org-ejabberd/priv/js/muc.js

20 lines
534 B
JavaScript
Raw Normal View History

// Show/Hide an element
function sh(e) {
if (document.getElementById(e).style.display=='none') {
document.getElementById(e).style.display='block';
} else {
document.getElementById(e).style.display='none';
}
}
// Show/Hide join/leave elements
function jlf() {
var es = document.getElementsByClassName('jl');
for (var i = 0; i < es.length; i++) {
if (es[i].style.display === 'block') {
es[i].style.display = 'none';
} else {
es[i].style.display = 'block';
}
}
}