This commit is contained in:
Paul Wieland 2024-11-12 13:26:46 -05:00
parent e919ff53da
commit 4ee1ddf0bc
5 changed files with 7 additions and 4 deletions

View File

@ -250,7 +250,7 @@
<h2>Wiring Diagram</h2> <h2>Wiring Diagram</h2>
<img id="wiring_diagram" src="wiring_diagrams/secplus_diagram.png" alt="Security + 1 and 2 wiring diagram" /> <img id="wiring_diagram" src="wiring_diagrams/v25iboard_secplus.png" alt="Security + 1 and 2 wiring diagram" />
<h3>Documentation</h3> <h3>Documentation</h3>
<ul> <ul>
@ -294,10 +294,13 @@
var protocol = document.querySelector('input[name="protocol"]:checked').value; var protocol = document.querySelector('input[name="protocol"]:checked').value;
var hardware = document.querySelector('input[name="hardware"]:checked').value; var hardware = document.querySelector('input[name="hardware"]:checked').value;
if(protocol === "drycontact"){ var diagram_protocol = protocol.replace("v1","").replace("v2","");
document.querySelector("#wiring_diagram").src = "wiring_diagrams/dry_contact_diagram.png"; var img = new Image();
img.src = `wiring_diagrams/${hardware}_${protocol}.png`;
if(img.height !== 0){
document.querySelector("#wiring_diagram").src = img.src;
}else{ }else{
document.querySelector("#wiring_diagram").src = "wiring_diagrams/secplus_diagram.png"; document.querySelector("#wiring_diagram").src = "v25iboard_secplus.png";
} }
if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){ if(protocol !== "secplusv2" && (hardware === "v2board_esp8266_d1_mini" || hardware === "v2board_esp32_d1_mini")){

View File

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

Before

Width:  |  Height:  |  Size: 554 KiB

After

Width:  |  Height:  |  Size: 554 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB