diff --git a/static/voyage.js b/static/voyage.js index 95289fe..6c2a204 100644 --- a/static/voyage.js +++ b/static/voyage.js @@ -68,6 +68,22 @@ function toggle_visibility(event) { post.classList.remove(vis_class[event.target.parentElement.cellIndex - 1]); } } + } else if (tag == 'post tags') { + for (let post of document.querySelectorAll('.post_container > .tags')) { + if (event.target.checked) { + post.classList.add(vis_class[event.target.parentElement.cellIndex - 1]); + } else { + post.classList.remove(vis_class[event.target.parentElement.cellIndex - 1]); + } + } + } else if (tag == 'post header') { + for (let post of document.querySelectorAll('.post_container > .header')) { + if (event.target.checked) { + post.classList.add(vis_class[event.target.parentElement.cellIndex - 1]); + } else { + post.classList.remove(vis_class[event.target.parentElement.cellIndex - 1]); + } + } } else { for (let post of document.querySelectorAll('.' + tag)) { if (event.target.checked) { diff --git a/templates/thread.html b/templates/thread.html index 528c0a8..8b90846 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -30,6 +30,12 @@ {{ tag }} {% endfor %} + + post tags + + + post header +