Compare commits

...

5 Commits

Author SHA1 Message Date
Paul Wieland 26381de1b3
Merge 12af6603fb into ec3ba31ce8 2024-11-12 18:58:21 +00:00
Paul Wieland 12af6603fb Update index.html 2024-11-12 13:58:16 -05:00
Paul Wieland fbcc2ae75d Update index.html 2024-11-12 13:40:35 -05:00
Paul Wieland 4ee1ddf0bc diagrams 2024-11-12 13:26:46 -05:00
Paul Wieland e919ff53da Create ratgdo32_disco.jpg 2024-11-12 13:06:36 -05:00
6 changed files with 9 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,15 @@
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}_${diagram_protocol}.png`;
if(img.height !== 0){
console.log(`diagram: ${img.src}`);
document.querySelector("#wiring_diagram").src = img.src;
}else{ }else{
document.querySelector("#wiring_diagram").src = "wiring_diagrams/secplus_diagram.png"; console.log(`img not found: ${img.src}`);
document.querySelector("#wiring_diagram").src = "wiring_diagrams/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")){

BIN
static/ratgdo32_disco.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

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