From a4dac3665100e38d4a2f171e1cc39f20b57ece59 Mon Sep 17 00:00:00 2001 From: prplwtf Date: Sat, 16 Nov 2024 21:13:19 +0100 Subject: [PATCH] feat: this is fine --- browse/index.html | 148 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 104 insertions(+), 44 deletions(-) diff --git a/browse/index.html b/browse/index.html index 271a416..175a4de 100644 --- a/browse/index.html +++ b/browse/index.html @@ -110,55 +110,99 @@

- -
-
-
- - -
- - - - -
+ +
+
+
+ + +
+ + + + +
- -
-
- - - - + +
+
+ + + + +
+
+ + + + +
+
+
+
+ +
+
-
- - - - +
+
+ + -
-
+ @@ -364,6 +408,7 @@
${product.name} by var filterExtensions = document.getElementById('filterExtensions') function handleThemeFilter() { + syncFilters() var a = document.getElementById("css-filter-themes"); if (filterThemes.checked) { param('1', 'y') @@ -375,6 +420,7 @@
${product.name} by byteconfused() } function handleExtensionFilter() { + syncFilters() var a = document.getElementById("css-filter-extensions"); if (filterExtensions.checked) { param('2', 'y') @@ -397,6 +443,19 @@
${product.name} by else byte.style.display = "none" } + function syncFilters() { + if(filterExtensions.checked) { + document.getElementById('filterModalExtensions').checked = true + } else { + document.getElementById('filterModalExtensions').checked = false + } + if(filterThemes.checked) { + document.getElementById('filterModalThemes').checked = true + } else { + document.getElementById('filterModalThemes').checked = false + } + } + filterThemes.addEventListener('change', handleThemeFilter) filterExtensions.addEventListener('change', handleExtensionFilter) @@ -415,6 +474,7 @@
${product.name} by else if(url.searchParams.get('2') == 'n') { b.innerHTML = ".filter-extensions { display: none }"; d.checked = false } else { b.innerHTML = ""; d.checked = true } byteconfused() + syncFilters() } filter() byteconfused()