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 whether you accept or reject these cookies being set.

Circleslider change Slider color
#1
Hi everyone!

I'm new in the forum so I dont know if this question has been made before. 

I have to change the color of the circleslider (which I use for the temperature of a room) when a GA change it's value between "true" or false"
I've tried to do this with CSS but I couldn't, therefore I tried to do this with JS, nevertheless I don't know how access to the color of the circleslider.

Someone has any idea? 

Thanks!
Reply
#2
See this post: https://forum.logicmachine.net/showthrea...0#pid12060
Reply
#3
Or you can do it like that with a bit object

Additional class 'slilder'
JS

Code:
$(function() {
 if (typeof grp != 'object') {
   return;
 }

 grp.listen('1/1/1', function(object, state) {
   $('.slider').toggleClass('change-slider-colour', object.value == true);
 });
});
CSS
Code:
.change-slider-colour {
 filter: hue-rotate(50deg);
Reply


Forum Jump: