Update index.html
This commit is contained in:
parent
fbcc2ae75d
commit
12af6603fb
|
@ -298,8 +298,10 @@
|
||||||
var img = new Image();
|
var img = new Image();
|
||||||
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
|
img.src = `wiring_diagrams/${hardware}_${diagram_protocol}.png`;
|
||||||
if(img.height !== 0){
|
if(img.height !== 0){
|
||||||
|
console.log(`diagram: ${img.src}`);
|
||||||
document.querySelector("#wiring_diagram").src = img.src;
|
document.querySelector("#wiring_diagram").src = img.src;
|
||||||
}else{
|
}else{
|
||||||
|
console.log(`img not found: ${img.src}`);
|
||||||
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
|
document.querySelector("#wiring_diagram").src = "wiring_diagrams/v25iboard_secplus.png";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue