1let warningTimeout = 3600000; 2let warningTimerID = null; 3let logoutUrl = window.location.protocol + "//" + window.location.host + "/open-recruitments/login/"; 4 5function startTimer() { 6 // Only start timer on certain sections 7 if (window.location.pathname.includes("/admin") || window.location.pathname.includes("submit-your-application") || window.location.pathname.includes("submit-interim-application")) { 8 // window.setTimeout returns an ID that can be used to start and stop the timer 9 warningTimerID = window.setTimeout(idleLogout, warningTimeout); 10 } 11} 12 13function resetTimer() { 14 if (warningTimerID != null) window.clearTimeout(warningTimerID); 15 startTimer(); 16} 17 18function idleLogout() { 19 window.location = getLogoutUrl(); 20} 21 22function getLogoutUrl() { 23 var baseUrl = window.location.protocol + "//" + window.location.host; 24 if (window.location.pathname.includes("/admin")) { 25 return baseUrl + "/admin/?timeout"; 26 } 27 if (window.location.pathname.includes("submit-interim-application")) { 28 return baseUrl + "/interim-staffing/login/?timeout"; 29 } 30 else { 31 return baseUrl + "/open-recruitments/login/?timeout"; 32 } 33} 34 35// Reset timer when ajax call is made 36$(document).ajaxComplete(function () { 37 resetTimer(); 38}); 39 40$(function () { 41 startTimer(); 42}); 43
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.