27.04.2022, 09:42
Enable "Visualization pin code" in User access settings. Add this to Custom JavaScript. Inactivity timeout is 60 seconds, adjust as needed.
Code:
$(function() {
var timeout = 60 * 1000;
var oldfn = $.stopEvent;
function ontimeout() {
window.location = '/scada-vis/pin?return=index';
}
$.stopEvent = function(event) {
clearTimeout(timer);
timer = setTimeout(ontimeout, timeout);
return oldfn(event);
};
timer = setTimeout(ontimeout, timeout);
});