1(function () { 2 'use strict'; 3 4 var STORAGE_KEY = 'client_ip'; 5 var IP_SHARED_TOKEN = 'C5P7SrbO3M72ZbwfFy7zX8pWvh1l0eug5lsSRDcLjJUaeAdbaZeB5teqZcfK53xO'; 6 var ENDPOINT = 'https://www.momentummedia.com.au/client_ip.php'; 7 8 var cached = localStorage.getItem(STORAGE_KEY); 9 if (cached) { 10 window.CLIENT_IP = cached; 11 return; 12 } 13 14 window.CLIENT_IP = null; 15 16 fetch(ENDPOINT, { 17 method: 'POST', 18 headers: { 19 'X-IP-Token': IP_SHARED_TOKEN, 20 'Content-Type': 'application/json' 21 }, 22 cache: 'no-store', 23 body: '{}' 24 }) 25 .then(function (res) { 26 if (!res.ok) throw new Error(res.status); 27 return res.json(); 28 }) 29 .then(function (data) { 30 var ip = (data && data.ip) || null; 31 window.CLIENT_IP = ip; 32 if (ip) { 33 localStorage.setItem(STORAGE_KEY, ip); 34 } 35 }) 36 .catch(function () {}); 37})();
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.