PNG of the schematics added.

This commit is contained in:
Kai Lauterbach 2023-05-07 16:13:26 +02:00
parent 3d54da7f75
commit 21952bd0e3
11 changed files with 22 additions and 16 deletions

View file

@ -392,10 +392,10 @@ for (var i = 0; i < tcdata.length; i++) {
var row = document.getElementById("hour" + (i+1)).parentNode; var row = document.getElementById("hour" + (i+1)).parentNode;
row.cells[0].childNodes[0].value = tcdata[i].hour; row.cells[0].childNodes[0].value = tcdata[i].hour;
row.cells[1].childNodes[0].value = tcdata[i].min; row.cells[1].childNodes[0].value = tcdata[i].min;
row.cells[2].childNodes[0].value = parseInt(tcdata[i].ch1 * 100 / 255); row.cells[2].childNodes[0].value = parseInt(Math.round(tcdata[i].ch1 * 100 / 255));
row.cells[3].childNodes[0].value = parseInt(tcdata[i].ch2 * 100 / 255); row.cells[3].childNodes[0].value = parseInt(Math.round(tcdata[i].ch2 * 100 / 255));
row.cells[4].childNodes[0].value = parseInt(tcdata[i].ch3 * 100 / 255); row.cells[4].childNodes[0].value = parseInt(Math.round(tcdata[i].ch3 * 100 / 255));
row.cells[5].childNodes[0].value = parseInt(tcdata[i].ch4 * 100 / 255); row.cells[5].childNodes[0].value = parseInt(Math.round(tcdata[i].ch4 * 100 / 255));
} }
loadTCGraphData(); loadTCGraphData();
}); });

View file

@ -9,11 +9,11 @@
<table> <table>
<tr> <tr>
<td> <td>
<div id="table-container"> <div id="table-container" class="top-align">
</div> </div>
</td> </td>
<td> <td>
<div id="tc_plot_chart"> <div id="tc_plot_chart" class="top-align">
</div> </div>
</td> </td>
</tr> </tr>

View file

@ -1,7 +1,7 @@
<!-- middle --> <!-- middle -->
</td> </td>
<td> <td>
<div id="plot_chart"></div> <div id="plot_chart" class="top-align"></div>
</td> </td>
</tr> </tr>
</table> </table>

View file

@ -47,4 +47,4 @@
<br> <br>
<table border=0> <table border=0>
<tr> <tr>
<td> <td class="top-align">

View file

@ -41,3 +41,6 @@ cursor: pointer;
.pure-button:hover { .pure-button:hover {
background-color: #333; background-color: #333;
} }
.top-align {
vertical-align: top;
}

View file

@ -486,10 +486,10 @@ function fillTableFromJson() {
var row = document.getElementById("hour" + (i+1)).parentNode; var row = document.getElementById("hour" + (i+1)).parentNode;
row.cells[0].childNodes[0].value = tcdata[i].hour; row.cells[0].childNodes[0].value = tcdata[i].hour;
row.cells[1].childNodes[0].value = tcdata[i].min; row.cells[1].childNodes[0].value = tcdata[i].min;
row.cells[2].childNodes[0].value = parseInt(tcdata[i].ch1 * 100 / 255); row.cells[2].childNodes[0].value = parseInt(Math.round(tcdata[i].ch1 * 100 / 255));
row.cells[3].childNodes[0].value = parseInt(tcdata[i].ch2 * 100 / 255); row.cells[3].childNodes[0].value = parseInt(Math.round(tcdata[i].ch2 * 100 / 255));
row.cells[4].childNodes[0].value = parseInt(tcdata[i].ch3 * 100 / 255); row.cells[4].childNodes[0].value = parseInt(Math.round(tcdata[i].ch3 * 100 / 255));
row.cells[5].childNodes[0].value = parseInt(tcdata[i].ch4 * 100 / 255); row.cells[5].childNodes[0].value = parseInt(Math.round(tcdata[i].ch4 * 100 / 255));
} }
loadTCGraphData(); loadTCGraphData();

View file

@ -9,11 +9,11 @@
<table> <table>
<tr> <tr>
<td> <td>
<div id="table-container"> <div id="table-container" class="top-align">
</div> </div>
</td> </td>
<td> <td>
<div id="tc_plot_chart"> <div id="tc_plot_chart" class="top-align">
</div> </div>
</td> </td>
</tr> </tr>

View file

@ -1,7 +1,7 @@
<!-- middle --> <!-- middle -->
</td> </td>
<td> <td>
<div id="plot_chart"></div> <div id="plot_chart" class="top-align"></div>
</td> </td>
</tr> </tr>
</table> </table>

View file

@ -47,5 +47,5 @@
<br> <br>
<table border=0> <table border=0>
<tr> <tr>
<td> <td class="top-align">

View file

@ -41,3 +41,6 @@ cursor: pointer;
.pure-button:hover { .pure-button:hover {
background-color: #333; background-color: #333;
} }
.top-align {
vertical-align: top;
}

BIN
pic/schematics.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB