Re: NEW frontpage.html - request comments
Posted: Wednesday 28 January 2015 21:10
jan_nl, in the past (...) I used the following code to change the background color of a cell, or the font color when a certain level was reached. This doesn't work anymore. Can you help me fix it again, using your code ?
Code: Select all
// set the background color of the DIV when a certain limit has been reached
if(item.idx == '1' && vdata > 50){
alarmcss=';background-color:#FF0000;';
}
if(item.idx == '5' && vdata > 40){
alarmcss=';background-color:#FF0000;';
}
if(item.idx == '31' && vdata < 0){ // it's freezing outside
alarmcss=';background-color:#0000FF;';
}