1(function spellcheck() { 2 function gs() { // get selection 3 var t = ""; 4 if (window.getSelection) { 5 t = window.getSelection().toString(); 6 } else if (document.selection && document.selection.type != "Control") { 7 t = document.selection.createRange().text; 8 } 9 return t; 10 } 11 12 function se(t) { // send error 13 if (t.length < 3) { 14 alert("ÐÑ Ð½Ðµ вÑбÑали ÑекÑÑ"); 15 } else if (t.length > 350) { 16 alert("СлиÑком много ÑекÑÑа, вÑбеÑиÑе менÑÑе"); 17 } else { 18 var message = prompt("ÐожалÑйÑÑа, ÑкажиÑе в Ñем оÑибка"); 19 if (message !== null) { 20 if (message.length === 0) { 21 alert("ÐожалÑйÑÑа, введиÑе ÑообÑение"); 22 se(gs()); 23 } else { 24 $.ajax({ 25 url: "/spellcheck/spellcheck.php", 26 type: "POST", 27 data: { 28 url: location.href, 29 error: t, 30 message: message 31 }, 32 dataType: "json" 33 }).done(function (data) { 34 if (data.result === "ok") { 35 alert(data.message); 36 } else { 37 alert(data.error); 38 } 39 }).fail(function () { 40 alert("ÐÑоизоÑла оÑибка"); 41 }); 42 } 43 } 44 } 45 } 46 47 jQuery(document).keydown(function (e) { 48 if (e.keyCode == 13 && e.ctrlKey) { 49 se(gs()); 50 } 51 }); 52})();
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.