PageSourceSearch

https://gwangyang.go.kr/ease_src/js/captchaboard.js

js gwangyang.go.kr collected 2026-10-02 07:32:20 UTC 1,698 bytes, 67 lines download raw bytes

1function getContextPath() {
2    return window.location.pathname.substring(0, window.location.pathname.indexOf("/",2));
3}
4
5//자동입력방지문자 새로고침
6function captchaRefresh(){
7	$("#captchaImg").removeAttr("src").attr("src",getContextPath()+"/simpleCaptcha.png"+'?number='+Math.random()*1000);
8}
9//자동방지문구 음성듣기
10function audio(){
11	var rand = Math.random();
12	var uAgent = navigator.userAgent;
13	var soundUrl = getContextPath()+'/captchaAudio.es?rand='+rand;
14	if(uAgent.indexOf('Trident')>-1 || uAgent.indexOf('MISE')>-1) {
15		/*IE 경우 */
16		audioPlayer(soundUrl);
17	} else if(!!document.createElement('audio').canPlayType){
18		/*Chrome 경우 */
19		try {
20			new Audio(soundUrl).play();
21		} catch (e) {
22			audioPlayer(soundUrl);
23		}
24	} else {
25		window.open(soundUrl,'','width=1,height=1');
26	}
27}
28
29//자동방지문구 새로고침
30function getImage(){
31	$("#captchaImg").removeAttr("src").attr("src",getContextPath()+"/captchaImg.es"+'?number='+Math.random()*1000);
32}
33
34//자동방지문구 음성
35function audioPlayer(objUrl){
36	$('#ccaudio').html('<bgsound src="' +objUrl +'">');
37}
38
39//자동방지문구 값 체크
40function chkAnswer(){
41	$.ajax({
42		url : getContextPath()+"/chkAnswer.es", 
43		type : "GET",
44		cache : false,
45		dataType : "json",
46		data : {
47			answer : $('#captchaStr').val()
48		},
49		async : false,
50		success : function(data){
51			if(data == 200) {
52				sw = true; 
53			}else{
54				getImage();
55				$('#captchaStr').val('');
56				sw = false; 
57			}
58		},
59		error : function(request, status, error) {
60			alert('에러');
61			getImage();
62			$('#captchaStr').val('');
63			sw = false; 
64		}
65	});
66	return sw;
67}

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.