PageSourceSearch

https://ppsok.kr/wp-content/plugins/mangboard/plugins/widgets/application_form_m2/js/main.js?ver=211

js ppsok.kr collected 2026-10-08 08:21:41 UTC 1,972 bytes, 46 lines download raw bytes

1var application_form_index	= 1;
2function checkApplicationFormInput(index){
3	application_form_index		= index;
4	name	= '.mb-application-form'+index;	
5	if(jQuery(name+" input[name=user_name]").val()==""){
6		showAlertPopup({"message":"고객명을 입력해 주세요"},function(){ jQuery(name+" input[name=user_name]").focus(); });
7	}else if(jQuery(name+" input[name=phone]").val()==""){
8		showAlertPopup({"message":"핸드폰을 입력해 주세요"},function(){ jQuery(name+" input[name=phone]").focus(); });
9	}else if(!jQuery(name+" input[name=widget-user-pp]").is(":checked")){
10		showAlertPopup({"code":"1201","message":"개인정보 수집동의에 동의해 주세요"});
11	}else{
12		if(jQuery(name+" input[name=title]").length>0) jQuery(name+" input[name=title]").val( jQuery(name+" input[name=title]").val() +' : '+ jQuery(name+" input[name=user_name]").val());
13		var data			= jQuery(name).serialize();	
14		sendDataRequest(mb_urls["board_api"], data, sendApplicationFormHandler);
15	}
16}
17function sendApplicationFormHandler(response, state){
18	if(response.state == "success"){
19		name	= '.mb-application-form'+application_form_index;
20		jQuery(name+" input[name=user_name]").val('');
21		jQuery(name+" input[name=phone]").val('');
22		showAlertPopup({"code":"1201","message":"충전신청이 완료되었습니다."},function(){moveURL("reload");});
23	}else{
24		showAlertPopup(response);
25	}
26}
27jQuery(document).ready(function() {
28	jQuery(".mbi-application-phone").keyup (function () {
29		var key = event.charCode || event.keyCode || 0;
30		var value	= jQuery(this).val();		
31		value		= value.replace(/[^0-9-]/g,"");
32		if(value.length>2){
33			if(value.indexOf('010')==0){
34				if(key!=8 && (value.length==3 || value.length==8)) value += '-';
35				if(value.indexOf('-')==-1){
36					if(value.length>10){
37						value		= value.substr(0, 3)+'-'+value.substr(3, 4)+'-'+value.substr(7,4);
38					}
39				}else{
40					value	= value.replace("--", "-");
41				}
42			}
43		}
44		jQuery(this).val(value);
45    });
46});

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.