(level)
| 158 | } |
| 159 | |
| 160 | function setActive(level) { |
| 161 | for (const [l, b] of levelBtns) { |
| 162 | const color = l === "" ? ALL_COLOR : LEVEL_COLORS[l]; |
| 163 | styleBtn(b, color, l === "" ? level === "" : l === level); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | filterRow.addEventListener("click", (e) => { |
| 168 | const btn = e.target.closest("button"); |
no test coverage detected