PageSourceSearch

https://web.rosknroll.fi/rosknroll/js/shared/timeout.js?timestamp=20260519-1138

js rosknroll.fi collected 2026-09-26 03:01:04 UTC 691 bytes, 31 lines download raw bytes

1var Timeout = (function() {
2	var timeoutHandle = null;
3	var timeoutCallback = null;
4	var timeoutInMs;
5
6	var timeoutObject = {
7		initialize: function(timeoutInMinutes, onTimeout) {
8			timeoutInMs = timeoutInMinutes * 60 * 1000;
9			timeoutCallback = onTimeout;
10
11			timeoutObject.resetTimeout();
12
13			// on every ajax-call, reset the timeout.
14			$(document).ajaxSend(function() {
15				timeoutObject.resetTimeout();
16			});
17		},
18
19		resetTimeout: function() {
20			if(timeoutHandle !== null) {
21				clearTimeout(timeoutHandle);
22			}
23
24			if(timeoutCallback !== null) {
25				timeoutHandle = setTimeout(timeoutCallback, timeoutInMs);
26			}
27		}
28	};
29
30	return timeoutObject;
31})();

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.