change element IDs for irradiance values and table rows
This commit is contained in:
@@ -36,7 +36,7 @@ function graphSpectralData (obj, dom) {
|
|||||||
function fillTableData (obj) {
|
function fillTableData (obj) {
|
||||||
// fill the obj data into HTML tables
|
// fill the obj data into HTML tables
|
||||||
Object.keys(obj[0])
|
Object.keys(obj[0])
|
||||||
.forEach((element) => { $('#' + element).text(obj[0][element]); });
|
.forEach((element) => { $('#' + element + '_value').text(obj[0][element]); });
|
||||||
$('#lx').text(obj[1]);
|
$('#lx').text(obj[1]);
|
||||||
$('#uva').text(obj[2][0]);
|
$('#uva').text(obj[2][0]);
|
||||||
$('#uvb').text(obj[2][1]);
|
$('#uvb').text(obj[2][1]);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<td>
|
<td>
|
||||||
{{wld[band]}}
|
{{wld[band]}}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td id="{{band}}_value">
|
||||||
{{irr}}
|
{{irr}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user