1$.countryLocalizeSelect = jQuery.fn.countryLocalizeSelect = function (authKey) { 2 var $elems = this; 3 4 var country = null; 5 if (! authKey){ 6 console.warn("No auth key provided. please sign up for a free IP Find account at https://ipfind.co"); 7 } 8 9 $.ajax({ 10 dataType: "json", 11 url: 'https://ipfind.co/me?auth=' + authKey, 12 success: function(data){ 13 if (data.country){ 14 $elems.each(function(){ 15 var $el = $(this); 16 $el.val(data.country); 17 }); 18 } 19 }, 20 error : function (error){ 21 var resp = error.responseText; 22 if (resp){ 23 var errorObj = JSON.parse(resp); 24 if (errorObj && errorObj.error){ 25 console.error("Could not localise select: ", errorObj.error); 26 return; 27 } 28 } 29 30 console.error("Could not localise select: ", resp); 31 32 } 33 }); 34 35 return this; 36};
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.