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:
12345678910111213141516171819
$(function() {
$('.color-by-value').each(function(_, el) {
varaddr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
varcolor;
if (obj.value) {
color = 'red';
}
else {
color = 'Green';
}
$(el).css('color', color);
});
}
});
});
for me blink not working for latest Mozilla (v.103.0) Chrome and MS Edge are OK. Is it possible to start work blink function for Mozilla? I use it because with Mozilla is possible to see video stream from cams. Or .blink is obsolete function for Mozilla and no variants?
(01.08.2022, 13:05)admin Wrote: Works for me in Firefox 103. It uses CSS animation for blinking. This is a standard feature supported by all modern browsers.
Hi Guys,
In the last two weeks, the function worked fine, but I just find out that it doesn't work anymore as long as the object is read-only,
If I disable the read-only function it will start working again.
nb: I didn't change anything form the CSS and JS code
to toggle a css class. For value 1 i would like to set css class f.e. class_for_1 with parameter filter: drop-shadow (x1, y1, b1, c1), if value is 0 class should be changed to class_for_0 with parameter filter: drop-shadow (x2, y2, b2, c2). It's working only for value=1. Please help.
I use this script for visu an icon to blink when 1 and not be visable when 0. works well except from that my android 12 10" touch screen that runs the visu on Fully Kiosk Browser is crashing when the scripts reslut is 1, that is not happening when script result is 0.
Is this somthing with the script? Or maybe something that Fully Kiosk Browser cannot handle