From 6cd163bd8195e759abcda3be771c00256feeeb19 Mon Sep 17 00:00:00 2001 From: Eiswolf-BG <37225519+Eiswolf-BG@users.noreply.github.com> Date: Wed, 12 Aug 2026 00:36:29 +0200 Subject: [PATCH] Add twinkling star background effect to the web flasher page Ports the same triangle-wave dim/brighten twinkle formula used by MenuStars on the device to a lightweight, dependency-free canvas overlay behind the page content, tying the web flasher's look to the device UI. Star count scales with viewport area (40-160) instead of a fixed number. The canvas uses z-index:0 (not negative) and pointer-events:none so it stacks reliably behind .container without blocking the ESP Web Tools install button or any links. Co-Authored-By: Claude Sonnet 5 --- index.html | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/index.html b/index.html index bbde68b..1f80f3d 100644 --- a/index.html +++ b/index.html @@ -35,6 +35,23 @@ max-width: 450px; width: 100%; position: relative; + z-index: 1; + } + + /* Twinkling star background (same triangle-wave dim/brighten + formula as menu_stars.cpp/radar_screen.cpp on the device) - + placed as the first element in and given z-index:0 + (NOT a negative z-index) so it stacks reliably behind + .container without depending on how the browser paints the + body's own background layer. pointer-events:none keeps the + ESP Web Tools install button and all links fully clickable. */ + #star-bg { + position: fixed; + inset: 0; + width: 100%; + height: 100%; + z-index: 0; + pointer-events: none; } h1 { font-size: 22px; @@ -91,6 +108,7 @@ +

EISWOLFS FLIGHTRADAR CYD

Firmware Flash Utility
@@ -109,5 +127,61 @@
Requires Chrome, Edge, or Opera (Web Serial API)
+