lavkach3
1var UIIdleTimeout = (function () {2return {3init: function () {4var o;5$("body").append(""),6$.idleTimeout("#idle-timeout-dialog", ".modal-content button:last", {7idleAfter: 5,8timeout: 3e4,9pollingInterval: 5,10keepAliveURL: "/keep-alive",11serverResponseEquals: "OK",12onTimeout: function () {13window.location = "authentication-two-steps.html";14},15onIdle: function () {16$("#idle-timeout-dialog").modal("show"),17(o = $("#idle-timeout-counter")),18$("#idle-timeout-dialog-keepalive").on("click", function () {19$("#idle-timeout-dialog").modal("hide");20});21},22onCountdown: function (e) {23o.html(e);24},25});26},27};28})();29jQuery(function () {30UIIdleTimeout.init();31});32