mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Enhance search filter UI for JS disabled users
Change filters UI box to use <details>. Stylize detail button for filter ui Fix localization for 'filter' Fix CSS Fix styling
This commit is contained in:
parent
489d0151ad
commit
83b5fd252e
3 changed files with 34 additions and 29 deletions
|
@ -1,13 +0,0 @@
|
|||
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;
|
Loading…
Add table
Add a link
Reference in a new issue