29.06.2022, 07:14
Hi,
I am using the Java code below to change the color of the object when it's 1 (1 = Alarm, 0 = No Alarm)
However, Is it possible to make the text blink when it's equal to 1?
If yes, how could I do that?
Thankfully in advance
e to change the color of the
I am using the Java code below to change the color of the object when it's 1 (1 = Alarm, 0 = No Alarm)
However, Is it possible to make the text blink when it's equal to 1?
If yes, how could I do that?
Thankfully in advance
Code:
$(function() {
$('.color-by-value').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var color;
if (obj.value) {
color = 'red';
}
else {
color = 'Green';
}
$(el).css('color', color);
});
}
});
});