1var site_url = "https://"+ location.host; 2 3function Translation(value){ 4 var target = value; 5 var source = document.getElementById("trans_lang").value; 6 var test = $("#wrap").children(); 7 var aa = $("#wrap").html(); 8 $.ajax({ 9 type: "POST", 10 url: "https://www.googleapis.com/language/translate/v2?key=AIzaSyBELIbQos_JJwoDSdu_HZpIMM5-XwbAXAM", 11 data: "&target="+target+"&source="+source+"&q="+aa+"&model=base", 12 success: function(r){ 13 document.getElementById("trans_lang").value=target; 14 15 //$("#wrap").html(r.data.translations[0].translatedText).trigger("create"); 16 //$.getScript(site_url+"/js/vendor/jquery-1.8.3.min.js"); 17 document.getElementById("wrap").childNodes.innerHTML = r.data.translations[0].translatedText; 18 //$("#wrap").trigger("create"); 19 }, 20 error: function() { 21 //alert("í¸ì¶ì ì¤í¨íìµëë¤."); 22 23 } 24 }); 25}
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.