This commit is contained in:
Paul Wieland 2024-11-15 10:56:17 -05:00
parent c11a748608
commit eb90d3fd55
1 changed files with 39 additions and 18 deletions

View File

@ -215,6 +215,12 @@
ratgdo32 disco
</label>
<label>
<img src="./ratgdo32.jpg" alt="v32 board" />
<input type="radio" name="hardware" value="v32board" checked />
ratgdo32
</label>
<label>
<img src="./ratgdo_v2.5xi.jpg" alt="v2.5i, v2.52i, v2.53i" />
<input type="radio" name="hardware" value="v25iboard" checked />
@ -222,6 +228,8 @@
v2.5, v2.5i, v2.52i, v2.53i (black PCB)
</label>
<a id="show_legacy_hardware" style="text-decoration: underline;" onclick="toggleLegacy()">Show Legacy Hardware &raquo;</a>
<div id="legacy_hardware" style="display: none">
<label>
<img src="./ratgdo_v2.0.jpg" alt="v2.0" />
<input type="radio" name="hardware" value="v2board_esp8266_d1_mini" />
@ -243,6 +251,7 @@
ESP32 (white PCB)
</label>
</div>
</div>
<p>
<esp-web-install-button></esp-web-install-button>
@ -288,6 +297,18 @@
</div>
</div>
<script>
function toggleLegacy() {
var x = document.querySelector("#legacy_hardware");
var y = document.querySelector("#show_legacy_hardware");
if (x.style.display === "none") {
x.style.display = "block";
y.innerHTML = "hide legacy hardware &raquo;";
} else {
x.style.display = "none";
y.innerHTML = "show legacy hardware &raquo;";
}
}
document.querySelectorAll('div.radios input').forEach((radio) =>
radio.addEventListener("change", () => {
const button = document.querySelector("esp-web-install-button");