1"use strict"; 2 3require(["jquery", "jquery.idletimeout", "jquery.idletimer"], function ($) { 4 var timeout = { 5 init: function init() { 6 this.cache(); 7 this.bindEvents(); 8 }, 9 cache: function cache() { 10 this.containerId = '#idletimeout'; 11 this.resumeBtnId = '#idletimeout-resume'; 12 this.logoutBtnId = '#idletimeout-logout'; 13 this.countdownId = '#idletimeout-counter'; 14 this.$container = $(this.containerId); 15 this.keepAlivePath = this.$container.find(this.resumeBtnId).data('keepalive-path'); 16 }, 17 bindEvents: function bindEvents() { 18 var self = this; 19 if (self.$container.length) { 20 $.idleTimeout(self.containerId, self.resumeBtnId, { 21 idleAfter: 1140, 22 pollingInterval: 1500, 23 keepAliveURL: $("#idletimeout").find($("#idletimeout-resume")).data('keepalive-path'), 24 serverResponseEquals: 'OK', 25 warningLength: 60, 26 sessionKeepAliveTimer: false, 27 onTimeout: function onTimeout() { 28 location.href = $("#idletimeout").find($("#idletimeout-logout")).attr('href'); 29 }, 30 onIdle: function onIdle() { 31 $("#idletimeout").fadeIn(); 32 }, 33 onCountdown: function onCountdown(counter) { 34 $("#idletimeout").find($("#idletimeout-counter")).html(counter); 35 }, 36 onResume: function onResume() { 37 $.get($("#idletimeout").find($("#idletimeout-resume")).data('keepalive-path')); 38 $("#idletimeout").fadeOut(); 39 } 40 }); 41 } 42 } 43 }; 44 timeout.init(); 45}); 46//# sourceMappingURL=timeout.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.