1let oi_check_value 2const oicheckReady = (callback) => { 3 if (document.readyState !== 'loading') { 4 callback() 5 } else { 6 document.addEventListener('DOMContentLoaded', callback) 7 } 8} 9function setOiValue() { 10 var jqXHR = jQuery.ajax({ 11 url: '/xhr/oicheck/', 12 method: 'GET', 13 }) 14 jqXHR.done(function (resp, status, xhr) { 15 if (resp.data.hasOwnProperty('oi_check_value')) { 16 oi_check_value = resp.data.oi_check_value 17 } 18 }) 19 jqXHR.fail(function (xhr, status, error) { 20 // Do Nothing 21 }) 22} 23function oiInterval() { 24 if (new Date().getTime() - oiStartInterval.getTime() >= 216e5) { 25 // 216e5 = 6 hours 26 oiStartInterval = new Date() 27 setOiValue() 28 } 29} 30let oiStartInterval = new Date() 31oicheckReady(() => { 32 setOiValue() 33 setInterval(oiInterval, 1e3) 34})
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.