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.

User Access
#5
Another solution is to put a masking element above the whole visualization page when object value is true.
Custom JavaScript:
Code:
$(function() {
  if (typeof grp != 'object') {
    return;
  }

  var mask = $('<div>')
    .css({
      'position': 'absolute',
      'top': 0,
      'bottom': 0,
      'left': 0,
      'right': 0,
      'background-color': '#000',
      'z-index': 99999,
    })
    .addClass('hide')
    .appendTo('body');

  grp.listen('1/1/1', function(object) {
    mask.toggleClass('hide', object.value != true);
  });
});
Reply


Messages In This Thread
User Access - by sjfp - 23.06.2018, 15:03
RE: User Access - by Erwin van der Zwart - 23.06.2018, 21:10
RE: User Access - by sjfp - 23.06.2018, 21:20
RE: User Access - by Erwin van der Zwart - 24.06.2018, 07:34
RE: User Access - by admin - 25.06.2018, 09:41
RE: User Access - by sjfp - 25.06.2018, 17:57

Forum Jump: