PageSourceSearch

https://pondmakers.com/plugin/kcaptcha/kcaptcha.js

js pondmakers.com collected 2026-10-02 00:07:50 UTC 3,473 bytes, 107 lines download raw bytes

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.