Hello.What I have to change for text blinking ,if I want:
object value 0 = blink
object value 1 = no blink
The code below works opposite!!
object value 0 = blink
object value 1 = no blink
The code below works opposite!!
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).toggleClass('blink', obj.value);
});
}
});
});