diff --git a/src/static/templ/board.html b/src/static/templ/board.html index 098872ff..0817568d 100644 --- a/src/static/templ/board.html +++ b/src/static/templ/board.html @@ -141,6 +141,17 @@ $("#topScrollBar").scrollLeft($(this).scrollLeft()); }); + $("#showSelf").on('change', function (e) { + let clicked = $(this).is(":checked"); + $("tbody > tr").each((idx, el) => { + el = $(el); + if (!el.hasClass("_self")) { + if (clicked) el.hide(); + else el.show(); + } + }); + }); + setTimeout(() => { var board = document.getElementById('board1'); if (window.localStorage.getItem('board_scoll_left')) { @@ -200,6 +211,10 @@