From 3cb2e673876bfa8db4690996dd20bd1e677317ca Mon Sep 17 00:00:00 2001 From: billz Date: Sun, 20 Apr 2025 03:38:45 -0700 Subject: [PATCH] Cleanup unused classes + setAttribute defs --- app/css/all.css | 12 +----------- app/js/custom.js | 3 --- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/css/all.css b/app/css/all.css index edd38bd3..6c054e18 100644 --- a/app/css/all.css +++ b/app/css/all.css @@ -662,22 +662,12 @@ a.inactive:focus { } .led-pulse { - /* animation: pulse 0.25s infinite; */ opacity: 0.3 !important; } -@keyframes pulse { - 0% { opacity: 1; } - 50% { opacity: 0.3; } - 100% { opacity: 1; } -} -#hostapd-led { +.hostapd-led { color: #28a745; opacity: 1; transition: opacity 0.05s; } -#hostapd-led[data-active="true"] { - opacity: 0.3; -} - diff --git a/app/js/custom.js b/app/js/custom.js index 6af1313e..fba8b8bf 100644 --- a/app/js/custom.js +++ b/app/js/custom.js @@ -1033,15 +1033,12 @@ function updateActivityLED() { if (!isNaN(activity)) { leds.forEach(led => { if (activity > threshold_bytes) { - led.setAttribute('data-active', 'true'); led.classList.add('led-pulse'); setTimeout(() => { - led.removeAttribute('data-active'); led.classList.remove('led-pulse'); }, 50); } else { led.classList.remove('led-pulse'); - led.removeAttribute('data-active'); } }); }