mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
20 lines
534 B
JavaScript
20 lines
534 B
JavaScript
// 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';
|
|
}
|
|
}
|
|
}
|