Audiotool board archive

Add a Search/Filter Option to the Board

Apollo · started 2019-02-23 03:57 · updated 2019-02-23 04:00 · closed

It would not necessarily be programmatically difficult to implement filter options for the board (especially because Audiotool uses jQuery... which it arguably shouldn't in 2019). This gives users the option to potentially filter posts by ascending/descending date, author, likes, etc. In fact, I've used the following example in the JS console to filter all posts (after I've scrolled to the very bottom of the page because of how the cular.endlessScrolling properties are implemented)

‍‍‍ 

Filter by userName
$.each($("li.user"), function (i, item) {
if ($(item).children("a")[0].dataset.userName !== "Apollo") {
for (let i = 0; i < 3; i++) $(item).prev().remove();
for (let i = 0; i < 2; i++) $(item).next().remove();
$(item).remove();
}
});

Comments (1)