invidious-copy-2022-03-16/assets/js/search.js

13 lines
392 B
JavaScript
Raw Normal View History

2021-01-03 00:35:31 +00:00
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;