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.

Font Text
#3
Here's a working example:
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.
Reply


Messages In This Thread
Font Text - by Amelie - 07.03.2024, 18:40
RE: Font Text - by Erwin van der Zwart - 07.03.2024, 19:51
RE: Font Text - by admin - 08.03.2024, 07:30
RE: Font Text - by Amelie - 11.03.2024, 15:13

Forum Jump: