change element IDs for irradiance values and table rows

This commit is contained in:
Kristjan Komlosi
2020-07-14 10:01:13 +02:00
parent a71d8565c4
commit 1c4949020b
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ function graphSpectralData (obj, dom) {
function fillTableData (obj) {
// fill the obj data into HTML tables
Object.keys(obj[0])
.forEach((element) => { $('#' + element).text(obj[0][element]); });
.forEach((element) => { $('#' + element + '_value').text(obj[0][element]); });
$('#lx').text(obj[1]);
$('#uva').text(obj[2][0]);
$('#uvb').text(obj[2][1]);

View File

@@ -56,7 +56,7 @@
<td>
{{wld[band]}}
</td>
<td>
<td id="{{band}}_value">
{{irr}}
</td>
</tr>