25.06.2018, 09:41
Another solution is to put a masking element above the whole visualization page when object value is true.
Custom JavaScript:
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);
});
});