new buttons and tweaked bg gradients

This commit is contained in:
rhiannon morris 2022-12-30 03:19:33 +01:00
parent 88b81681cb
commit cd8c51097c
8 changed files with 255 additions and 108 deletions

View file

@ -71,8 +71,8 @@ function clear(e) {
function toggleSingles(e) {
showSingles = !showSingles;
for (let li of document.querySelectorAll('#filters li')) {
let count = li.querySelector('label').dataset.count;
for (let li of document.querySelectorAll('.filterlist li')) {
let count = +li.querySelector('label').dataset.count;
if (count <= 1) {
li.hidden = !showSingles;
}