From 7881c74b93dba31ee841feaec9cbe50b27de56cd Mon Sep 17 00:00:00 2001 From: prplwtf Date: Sun, 26 Nov 2023 22:01:43 +0100 Subject: [PATCH] feat(browse): improve confused byte implementation --- browse/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/browse/index.html b/browse/index.html index 357e87e..4f6c470 100644 --- a/browse/index.html +++ b/browse/index.html @@ -99,7 +99,7 @@

@@ -216,9 +216,12 @@

${product.name}
function byteconfused() { var byte = document.getElementById("byte-confused") var url = new URL(window.location.href) + var c = document.getElementById('filterThemes') + var d = document.getElementById('filterExtensions') if(url.searchParams.get('1') == 'n' && url.searchParams.get('2') == 'n') { byte.style.display = "inline" } - else { byte.style.display = "none" } + else if(!c.checked && !d.checked) { byte.style.display = "inline" } + else byte.style.display = "none" } filterThemes.addEventListener('change', handleThemeFilter) @@ -241,5 +244,6 @@
${product.name}
byteconfused() } filter() + byteconfused()