1jQuery(document).ready(function($){ 2 const today = new Date(); 3 const day = today.getDate().toString().padStart(2, '0'); 4 const month = (today.getMonth() + 1).toString().padStart(2, '0'); 5 const year = today.getFullYear().toString().substr(-2); 6 const currentLocalStorageVersion = `8.${day}.${month}.${year}`; 7 8 if (!window.localStorage.getItem('econtCityList') 9 || window.localStorage.getItem('econtCityList').length < 10 10 || !window.localStorage.getItem('localStorageVersion') 11 || window.localStorage.getItem('localStorageVersion') != currentLocalStorageVersion 12 ) { 13 $.ajax({ 14 type: "POST", 15 url: window.location.origin + "/ajax.php?v=" + Math.floor(Math.random() * 100000), 16 data: {action: "getFullCityList"}, 17 dataType: 'json', 18 success: function(data) { 19 window.localStorage.setItem('econtCityList', JSON.stringify(data)); 20 window.localStorage.setItem('localStorageVersion', currentLocalStorageVersion); 21 }, 22 error: function(err) {} 23 }); 24 } 25 26 if (!window.localStorage.getItem('econtOfficesList') 27 || window.localStorage.getItem('econtOfficesList').length < 1000 28 || !window.localStorage.getItem('localStorageVersion') 29 || window.localStorage.getItem('localStorageVersion') != currentLocalStorageVersion 30 ) { 31 $.ajax({ 32 type: "POST", 33 url: window.location.origin + "/ajax.php?v=" + Math.floor(Math.random() * 100000), 34 data: {action: "getOffices"}, 35 dataType: 'json', 36 success: function(data) { 37 window.localStorage.setItem('econtOfficesList', JSON.stringify(data)); 38 window.localStorage.setItem('localStorageVersion', currentLocalStorageVersion); 39 }, 40 error: function(err) {} 41 }); 42 } 43 44 if (!window.localStorage.getItem('speedyCityList') 45 || window.localStorage.getItem('speedyCityList').length < 10 46 || !window.localStorage.getItem('localStorageVersion') 47 || window.localStorage.getItem('localStorageVersion') != currentLocalStorageVersion 48 ) { 49 $.ajax({ 50 type: "POST", 51 url: window.location.origin + "/ajax.php?v=" + Math.floor(Math.random() * 100000), 52 data: {action: "getFullCityListSpeedy"}, 53 dataType: 'json', 54 success: function(data) { 55 window.localStorage.setItem('speedyCityList', JSON.stringify(data)); 56 window.localStorage.setItem('localStorageVersion', currentLocalStorageVersion); 57 }, 58 error: function(err) {} 59 }); 60 } 61 62 if (!window.localStorage.getItem('speedyOfficesList') 63 || window.localStorage.getItem('speedyOfficesList').length < 10 64 || !window.localStorage.getItem('localStorageVersion') 65 || window.localStorage.getItem('localStorageVersion') != currentLocalStorageVersion 66 ) { 67 $.ajax({ 68 type: "POST", 69 url: window.location.origin + "/ajax.php?v=" + Math.floor(Math.random() * 100000), 70 data: {action: "getOfficesSpeedy"}, 71 dataType: 'json', 72 success: function(data) { 73 window.localStorage.setItem('speedyOfficesList', JSON.stringify(data)); 74 window.localStorage.setItem('localStorageVersion', currentLocalStorageVersion); 75 }, 76 error: function(err) {} 77 }); 78 } 79});
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.