1var notify1; 2var notify2; 3var timeout; 4var countdownTimer; 5 6function notifyUserAboutSoonTimeout(event) { 7 PF('sessionSoonExpireDialog').show(); 8 countdownTimerFunction(); 9 countdownTimer = setInterval(countdownTimerFunction, 1000); 10} 11function countdownTimerFunction() { 12 var remainingTime = parseInt((timeout - new Date().getTime()) / 1000); 13 document.getElementById("dialog-countdown").innerHTML = remainingTime; 14} 15function notifyUserAboutTimeout(event) { 16 clearInterval(countdownTimer); 17 PF('sessionSoonExpireDialog').hide(); 18 PF('sessionExpiredDialog').show(); 19} 20function initTimeout(timeoutSeconds) { 21 if(timeoutSeconds < 0) { 22 return; 23 } 24 clearTimeout(notify1); 25 clearTimeout(notify2); 26 maxInactiveIntervalInMilliseconds = timeoutSeconds * 1000; 27 timeout = new Date().getTime() + maxInactiveIntervalInMilliseconds; 28 notify1 = setTimeout("notifyUserAboutSoonTimeout()", 29 maxInactiveIntervalInMilliseconds - 60000); 30 notify2 = setTimeout("notifyUserAboutTimeout()", 31 maxInactiveIntervalInMilliseconds); 32}
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.