add v32
This commit is contained in:
parent
c11a748608
commit
eb90d3fd55
|
@ -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 »</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 »";
|
||||
} else {
|
||||
x.style.display = "none";
|
||||
y.innerHTML = "show legacy hardware »";
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelectorAll('div.radios input').forEach((radio) =>
|
||||
radio.addEventListener("change", () => {
|
||||
const button = document.querySelector("esp-web-install-button");
|
||||
|
|
Loading…
Reference in New Issue