Posts: 394
	Threads: 84
	Joined: Jun 2017
	
Reputation: 
9
	 
	
	
		I need help, my visualization not working correctly. I started to use layouts, and something not OK for me.. 
@admin, can you please check my visu? I can send my project and questions , but PM not working any more.. 
BR,
Alexander
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 5283
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
	
	
		Can you please describe your problem?
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 394
	Threads: 84
	Joined: Jun 2017
	
Reputation: 
9
	 
	
	
		Hi Daniel,
So questions:
1. my visu not opening from start page as I want, but opens from other page. Setting main page like default not helping.
2. Blink text function for alarm not working for more than one group.
3. At creation visualization page I can see text and group object, but at visualization only group object. Text not seen (under image??)
Better to see it, first time I start use layouts.
BR,
Alex
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 5283
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
	
	
		You probably have no elements on the start page. elements on layouts do not count.
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 394
	Threads: 84
	Joined: Jun 2017
	
Reputation: 
9
	 
	
		
		
		05.08.2022, 15:41 
(This post was last modified: 05.08.2022, 15:53 by AlexLV.)
		
	 
	
		Hi,
I use this variant:
$(function() {
  $('.color-by-value53').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);
      });
    }
  });
});
When value is changing, colors are changing also, but not blinking..
Once I see it worked than not working anymore..
Also question - for different groups I just change class name here and at visu, is it correct:
$('.color-by-value53')    ?? Can I use other class name after dots, what is the rules?
I also tried your variant, just added your part to custom JS and added class blinker to group object at visu, anyway not working..
Alex
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		You don't need to make multiple copies of this script. Single instance can handle any number of objects.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 8410
	Threads: 45
	Joined: Jun 2015
	
Reputation: 
481
	 
	
	
		Yes, the same class name can be used for all objects that should change color and blink. Check that your custom CSS has correct entries for blink animation.