Skip to content

Commit

Permalink
Update flash1.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Fr4nkFletcher authored Feb 6, 2024
1 parent e31c810 commit ec85706
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions flash1.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -82,18 +82,21 @@ <h1>🚀 Cheap-Yellow-Marauder Web Flasher 🚀</h1>
<esp-web-install-button class="invisible"></esp-web-install-button>
</p>
</div>
<div class="footer">
💻 <a href="https://github.com/Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display">Cheap-Yellow-Marauder</a> 🛠️
<div class="footer">
<a href="https://github.com/Fr4nkFletcher/ESP32-Marauder-Cheap-Yellow-Display">💻 Cheap-Yellow-Marauder</a> &mdash; Installer powered by <a href="https://esphome.github.io/esp-web-tools/">ESP Web Tools 🛠️</a>.
</div>
<script type="module">
<script type="module">
import 'https://unpkg.com/esp-web-tools@latest/dist/install-button.js';

document.querySelectorAll('input[name="type"]').forEach(radio => {
radio.addEventListener('change', event => {
const button = document.querySelector('esp-web-install-button');
button.manifest = `web/manifest_${event.target.value}.json`; // Adjust path as necessary
button.manifest = `./manifest_${event.target.value}.json`; // Adjust path as necessary
button.addEventListener('connected', () => console.log('Device connected'));
button.style.display = 'block'; // Make button visible upon selection
});
});
</script>
</body>
</html>

0 comments on commit ec85706

Please sign in to comment.