07.03.2024, 19:51
(This post was last modified: 07.03.2024, 19:54 by Erwin van der Zwart.)
Something like this should do the trick, give your button a custom class (mycustomclass in this sample)
Code:
$(function(){
if (typeof grp != 'undefined') {
grp.listen('1/5/1', function(object, state) {
if (state == 'value') {
if (object.value == true) {
$(".mycustomclass .value").css({"font-family":"Arial, Helvetic, Sans-Serif", "font-size":"300%", "color":"#c0ba2c"});
} else {
$(".mycustomclass .value").css({"font-family":"Fantasy", "font-size":"200%", "color":"#c35e1e"});
}
}
}, true);
}
});