(number)
| 2517 | // click on one of three buttons per card. These helpers add j/k navigation |
| 2518 | // and single-key marking so the list can be worked through from the keyboard. |
| 2519 | // ========================================================================== |
| 2520 | |
| 2521 | function paperCards() { |
| 2522 | return [...document.querySelectorAll(".paper-card")]; |
| 2523 | } |
| 2524 | |
| 2525 | function visiblePaperCards() { |
| 2526 | return paperCards().filter((card) => !card.hidden); |
| 2527 | } |
| 2528 | |
| 2529 | function paperDisposition(number) { |
| 2530 | if (state.selected.has(number)) return "read"; |
| 2531 | if (state.skipped.has(number)) return "skip"; |
no test coverage detected