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'); } }); }