This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Make the text blink when the value is 1
#15
Code:
$(function() {
  $('.color-by-door-opacity').each(function(_, el) {
    var addr = $(el).data('object');
    if (addr) {
      grp.listen(addr, function(obj) {
        var color;
        var opacityValue;

        if (obj.value) {
          color = '#f44236';
          opacityValue = 1; // Synlig
        }
        else  {
          color = 'transparent'; // Istället för att ändra färgen till grön, gör vi den genomskinlig
          opacityValue = 0; // Osynlig
        }

        $(el).css({'color': color, 'opacity': opacityValue}).toggleClass('blink', obj.value);
      });
    }
  });
});
Hi.

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
Reply


Messages In This Thread
RE: Make the text blink when the value is 1 - by victor.back - 03.09.2023, 09:15

Forum Jump: