08.03.2024, 07:30
Here's a working example:
32/1/2 is the groups address that sets the size. size is the Additional class of the element where font size should be changed dynamically.
Code:
$(function() {
if (window.grp) {
grp.listen('32/1/2', function(object, state) {
var size = Math.max(12, object.value);
$('.size').css('font-size', size + 'px');
});
}
});
32/1/2 is the groups address that sets the size. size is the Additional class of the element where font size should be changed dynamically.