1jQuery(document).ready(function($) { 2 EasyAzonPro_Localize_Links.process(); 3}); 4 5EasyAzonPro_Localize_Links.process = function() { 6 var localizables = []; 7 8 jQuery('a[data-localize="y"]').each(function(index, link) { 9 var $link = jQuery(link); 10 11 localizables.push($link.data()); 12 }); 13 14 if(localizables.length) { 15 jQuery.post( 16 EasyAzonPro_Localize_Links.ajaxUrl, 17 { 18 action: EasyAzonPro_Localize_Links.ajaxAction, 19 localizables: localizables 20 }, 21 function(data, status) { 22 var index, replacement; 23 24 if(data && data.length) { 25 for(index = 0; index < data.length; index++) { 26 replacement = data[index]; 27 28 jQuery(replacement.selector).attr('href', replacement.url).attr('data-localized', 'y'); 29 } 30 } 31 }, 32 'json' 33 ); 34 } 35};
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.