invidious-copy-2023-06-08/assets/js/search.js
2021-01-17 14:33:49 -05:00

13 lines
No EOL
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;