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.

Visualization, Pin code after wakeup
#2
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);
});
Reply


Messages In This Thread
RE: Visualization, Pin code after wakeup - by admin - 27.04.2022, 09:42

Forum Jump: