Update ESP Web Tools script and add browser note

This commit is contained in:
Eiswolf
2026-08-05 19:24:09 +02:00
committed by GitHub
parent 9d52c564a8
commit cd116ff6a6

View File

@@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Eiswolfs Flightradar CYD - Web Installer</title> <title>Eiswolfs Flightradar CYD - Web Installer</title>
<!-- ESP Web Tools Installer Script --> <!-- ESP Web Tools Installer Script -->
<script type="module" src="https://unpkg.com"></script> <script type="module" src="https://unpkg.com/esp-web-tools@10/dist/web/install-button.js?module"></script>
<style> <style>
:root { :root {
--bg-color: #0a0f0d; --bg-color: #0a0f0d;
@@ -36,9 +36,9 @@
width: 100%; width: 100%;
position: relative; position: relative;
} }
h1 { h1 {
font-size: 26px; font-size: 26px;
margin-bottom: 5px; margin-bottom: 5px;
text-shadow: 0 0 8px rgba(57, 255, 20, 0.6); text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
} }
.subtitle { .subtitle {
@@ -59,10 +59,10 @@
margin-bottom: 25px; margin-bottom: 25px;
text-shadow: 0 0 4px rgba(57, 255, 20, 0.4); text-shadow: 0 0 4px rgba(57, 255, 20, 0.4);
} }
p { p {
font-size: 14px; font-size: 14px;
color: #ffffff; color: #ffffff;
margin-bottom: 30px; margin-bottom: 30px;
line-height: 1.5; line-height: 1.5;
} }
.instructions { .instructions {
@@ -75,7 +75,12 @@
margin-bottom: 30px; margin-bottom: 30px;
border-left: 3px solid var(--accent-color); border-left: 3px solid var(--accent-color);
} }
.browser-note {
font-size: 11px;
color: #6a8f6a;
margin-top: 20px;
}
/* Customizing the ESP Web Tools button */ /* Customizing the ESP Web Tools button */
esp-web-install-button { esp-web-install-button {
--esp-tools-button-bg-color: var(--accent-color); --esp-tools-button-bg-color: var(--accent-color);
@@ -85,24 +90,23 @@
</style> </style>
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<h1>FLIGHTRADAR CYD</h1> <h1>FLIGHTRADAR CYD</h1>
<div class="subtitle">Firmware Flash Utility</div> <div class="subtitle">Firmware Flash Utility</div>
<div class="version-badge">Version: v2.3.2</div> <div class="version-badge">Version: v2.3.2</div>
<p>Install the latest Flightradar firmware directly from your browser to your Cheap Yellow Display.</p> <p>Install the latest Flightradar firmware directly from your browser to your Cheap Yellow Display.</p>
<div class="instructions"> <div class="instructions">
1. Connect your CYD via USB cable<br> 1. Connect your CYD via USB cable<br>
2. Click the "Install" button below<br> 2. Click the "Install" button below<br>
3. Select the correct COM port<br> 3. Select the correct COM port<br>
4. Sit back and wait for the process to finish 4. Sit back and wait for the process to finish
</div> </div>
<!-- References the manifest.json in the same folder --> <!-- References the manifest.json in the same folder -->
<esp-web-install-button manifest="manifest.json"></esp-web-install-button> <esp-web-install-button manifest="manifest.json"></esp-web-install-button>
</div>
<div class="browser-note">Requires Chrome, Edge, or Opera (Web Serial API)</div>
</div>
</body> </body>
</html> </html>