1$(function(){ 2 var mp3_url = ""; 3 4 $(document).on( "click", "#captcha_reload", function(){ 5 $.ajax({ 6 type: 'POST', 7 url: g5_captcha_url+'/kcaptcha_session.php', 8 cache: false, 9 async: false, 10 success: function(text) { 11 $('#captcha_img').attr('src', g5_captcha_url+'/kcaptcha_image.php?t=' + (new Date).getTime()); 12 } 13 }); 14 15 $.ajax({ 16 type: 'POST', 17 url: g5_captcha_url+'/kcaptcha_mp3.php', 18 cache: false, 19 async: false, 20 success: function(url) { 21 if (url) { 22 mp3_url = url + "?t="+new Date().getTime(); 23 $("#captcha_audio").attr("src", mp3_url); 24 } 25 } 26 }); 27 }); 28 29 $(document).on( "click", "#captcha_mp3", function(){ 30 $("body").css("cursor", "wait"); 31 32 $.ajax({ 33 type: 'POST', 34 url: g5_captcha_url+'/kcaptcha_mp3.php', 35 cache: false, 36 async: false, 37 success: function(url) { 38 if (url) { 39 mp3_url = url + "?t="+new Date().getTime(); 40 } 41 } 42 }); 43 44 var html5use = false; 45 var html5audio = document.createElement("audio"); 46 if (html5audio.canPlayType && html5audio.canPlayType("audio/mpeg")) { 47 var wav = new Audio(mp3_url); 48 wav.id = "mp3_audio"; 49 wav.autoplay = true; 50 wav.controls = false; 51 wav.autobuffer = false; 52 wav.loop = false; 53 54 if ($("#mp3_audio").length) $("#mp3_audio").remove(); 55 $("#captcha_mp3").after(wav); 56 57 html5use = true; 58 } 59 60 if (!html5use) { 61 var object = '<object id="mp3_object" classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" height="0" width="0" style="width:0; height:0;">'; 62 object += '<param name="AutoStart" value="1" />'; 63 object += '<param name="Volume" value="0" />'; 64 object += '<param name="PlayCount" value="1" />'; 65 object += '<param name="FileName" value="' + mp3_url + '" />'; 66 object += '<embed id="mp3_embed" src="' + mp3_url + '" autoplay="true" hidden="true" volume="100" type="audio/x-wav" style="display:inline;" />'; 67 object += '</object>'; 68 if ($("#mp3_object").length) 69 $("#mp3_object").remove(); 70 $("#captcha_mp3").after(object); 71 } 72 73 $("body").css("cursor", "default"); 74 return false; 75 76 }).css('cursor', 'pointer'); 77 78 $("#captcha_reload").trigger("click"); 79}); 80 81// ì¶ë ¥ë ìº¡ì± ì´ë¯¸ì§ì í¤ê°ê³¼ ì ë ¥í í¤ê°ì´ ê°ìì§ ë¹êµíë¤. 82function chk_captcha() 83{ 84 var captcha_result = false;
85 var captcha_key = document.getElementById('captcha_key'); 86 $.ajax({ 87 type: 'POST', 88 url: g5_captcha_url+'/kcaptcha_result.php', 89 data: { 90 'captcha_key': captcha_key.value 91 }, 92 cache: false, 93 async: false, 94 success: function(text) { 95 captcha_result = text; 96 } 97 }); 98 99 if (!captcha_result) { 100 alert('ìëë±ë¡ë°©ì§ ì ë ¥ ê¸ìê° íë ¸ê±°ë ì ë ¥ íìê° ëììµëë¤.\n\nìë¡ê³ 침ì í´ë¦íì¬ ë¤ì ì ë ¥í´ ì£¼ììì¤.'); 101 captcha_key.select(); 102 captcha_key.focus(); 103 return false; 104 } 105 106 return true; 107}
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.