mirror of
https://github.com/iv-org/invidious
synced 2024-11-09 01:10:27 +00:00
13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
|
function toggle_comments(event) {
|
||
|
var target = event.target;
|
||
|
var body = document.getElementById('filters');
|
||
|
if (body.style.display === 'flex') {
|
||
|
target.innerHTML = '[ + ]';
|
||
|
body.style.display = 'none';
|
||
|
} else {
|
||
|
target.innerHTML = '[ - ]';
|
||
|
body.style.display = 'flex';
|
||
|
}
|
||
|
}
|
||
|
|
||
|
document.getElementById('togglefilters').onclick = toggle_comments;
|