|
|
|
@ -40,7 +40,7 @@ $(() => {
|
|
|
|
|
|
|
|
|
|
let option = {
|
|
|
|
|
grid: {
|
|
|
|
|
top: '10%',
|
|
|
|
|
top: '15%',
|
|
|
|
|
left: '6%',
|
|
|
|
|
right: '6%',
|
|
|
|
|
bottom: '3%',
|
|
|
|
@ -120,12 +120,13 @@ $(() => {
|
|
|
|
|
const deviceStatus = (statusArray) => {
|
|
|
|
|
let info = `<table style="width: 100%;height:100%;">
|
|
|
|
|
<tr style="width: 100%;">
|
|
|
|
|
<td style="border:0px solid red;text-align:center;"><img src="../../img/foamBox/${statusArray[0] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;"><img src="../../img/foamBox/${statusArray[1] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;"><img src="../../img/foamBox/${statusArray[2] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="border:0px solid red;text-align:center;"><img src="../../img/foamBox/${statusArray[3] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="border:0px solid red;text-align:right;padding-right: 12px;"><img src="../../img/foamBox/${statusArray[4] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="border:0px solid red;text-align:right;"><img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 3vw;"/></td>
|
|
|
|
|
<td style="width:15%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[0] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
<td style="width:15%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[1] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
<td style="width:15.3%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[2] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
<td style="width:13%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[3] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
<td style="width:9.7%;border:0px solid red;text-align:center;"></td>
|
|
|
|
|
<td style="width:18%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[4] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
<td style="width:14%;border:0px solid red;text-align:left;"><img src="../../img/foamBox/${statusArray[5] == 1 ? "deviceopen.png" : "deviceclose.png"}" style="width: 2vw;"/></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>`;
|
|
|
|
|
|
|
|
|
|