PageSourceSearch

https://ipmonster.net/Form/_guest/basic/js/common.js?1790259884

js ipmonster.net collected 2026-09-24 14:25:09 UTC 13,249 bytes, 468 lines download raw bytes

1$(function(){
2///////////////////////이미지맵
3$('img[usemap]').rwdImageMaps();
4/////////////////////////// 다운로드 경고창
5/*$('.down').click(function(){
6	alert("다운로드 준비중입니다.")
7});
8/////////////////////////// 1:1상담 경고창
9$('.oneone').click(function(){
10	alert("작성자만 확인 가능합니다.")
11});*/
12////////////////////////////메인 금액 선택
13/*var selectbox =$(".main_service02");
14 selectbox.find('.main_service_select').change(function() {
15	 $(this).find("option:selected").each(function() {
16		  $(".main_service_price").find("span").text($(this).val());
17	 });
18});*/
19var sel_box = $('.main_service02 .main_service_select select');
20$(sel_box).change(function(){
21	var val = $(this).val();
22	$(this).parent('.main_service_select').siblings('.main_service_price').find('span').text(val);
23});
24
25
26
27$('.main_visual_bg').particleground({
28	dotColor: '#1c16ff',
29	particleRadius: 8,
30	lineColor: '#1c16ff',
31	proximity: 110,
32	density: 10000,
33});
34
35
36
37
38function slick_s() {
39	new Swiper('.main_slide', {
40		pagination: { // 페이징 설정
41			el: '.swiper-pagination',
42			clickable: true, // 페이징을 클릭하면 해당 영역으로 이동, 필요시 지정해 줘야 기능 작동
43		},
44		autoplay: {
45			delay: 2500,
46			disableOnInteraction: false,
47		},
48		navigation: {
49			nextEl: '.swiper-button-next',
50			prevEl: '.swiper-button-prev',
51		},
52		loop: false,
53		autoplay: {
54			delay: 3000,
55		},
56		slidesPerView: 1,
57
58	});
59}slick_s();
60
61$(window).resize(function(){
62	//var w_w = $(window).width();
63	slick_s();
64});
65////////////////////////// 서비스 슬릭
66$(".service_notice_slide").slick({
67	dots:false,
68	speed:500,
69	vertical: true,
70	slidesToShow: 1,
71	slidesToScroll: 1,
72	autoplay:true,
73	autoplaySpeed: 2000,
74	arrows:false,
75});
76///////////////////////////// 아이피 탭메뉴
77$(".content03_sub01 .content03_tab>ul>li").eq(0).addClass("on");
78$(".content03_sub01 .content03_guide>div>div").eq(0).addClass("on");
79
80$(".content03_sub01 .content03_tab>ul>li").click(function(){ 
81	$(this).addClass("on").siblings().removeClass("on");
82	$(".content03_sub01 .content03_guide>div>div").eq($(this).index()).addClass("on").siblings().removeClass("on")
83});
84////////////////////////////메인 금액 선택
85/*var sel_box = $('.service_left_sub .service_left_select select');
86$(sel_box).change(function(){
87	var val = $(this).val();
88	$(this).parent('.service_left_select').siblings('.service_left_price').find('span').text(val);
89});*/	
90////////////////////////////결제하기 금액 선택
91var sel_box = $('.content04_sub_01 .content04_select select');
92$(sel_box).change(function(){
93	var val = $(this).val();
94	$(this).parent('.content04_select').siblings('.content04_price').find('span').text(val);
95});	
96
97
98$(".content04_02_how .content_04_howtobuy>div").click(function(){ 
99	if($(this).is(".cash")==true) {
100		$(".content04_02_how tr:nth-child(n + 2)").show();
101	}
102	else {
103		$(".content04_02_how tr:nth-child(n + 2)").hide();
104	}
105});
106///////////////////////////// 페이지 넘기기
107
108$(".numbox div").click(function(){ 
109	$(this).addClass("on").siblings().removeClass("on");
110});
111
112///////////////////////////// 자주묻는 질문(cs_02)
113//탭메뉴
114
115$(".cs_02 ul li").eq(0).addClass("on");
116$(".cs_02 .faq .faq_sub").eq(0).addClass("on");
117
118$(".cs_02 ul li").click(function(){ 
119	$(this).addClass("on").siblings().removeClass("on");
120	$(".cs_02 .faq .faq_sub").eq($(this).index()).addClass("on").siblings().removeClass("on")
121});
122//answer slide
123$(".faq_q").click(function(){ 
124	$(this).toggleClass("on").siblings(".faq_a").slideToggle();
125});
126
127if($(".faq_q").hasClass("on")) {
128	$(".faq_q.on").siblings(".faq_a").show();
129}
130
131////////////////////// 1:1상담내역 파일 성형
132var file_input_container = $('.js-input-file');
133    
134if (file_input_container[0]) {
135
136	file_input_container.each(function () {
137
138		var that = $(this);
139
140		var fileInput = that.find(".input-file");
141		var info = that.find(".input-file__info");
142
143		fileInput.on("change", function () {
144
145			var fileName;
146			fileName = $(this).val();
147
148			if (fileName.substring(3,11) == 'fakepath') {
149				fileName = fileName.substring(12);
150			}
151			if(fileName == "") {
152				info.text("No file chosen");
153			} else {
154				info.text(fileName);
155				$('.mypg_write_file_close').show();
156				//console.log(fileName);
157			}
158
159		})
160
161	});
162
163}
164$(".totop").click(function(e){
165		e.preventDefault
166        $("html,body").animate({scrollTop:0},500);
167});
168
169$(".mypg_write_file_close").click(function(){
170	$(this).hide().siblings(".input-file__info").text('');
171	$(this).closest('.mypg_write_file_right').siblings('.mypg_write_file_left').find('input[type="file"]').val('');
172});
173
174////////////////모달창
175//log
176/*
177$(".log_btn").click(function(){
178	if($(window).width()>991){
179		$(".modal_log_bg").addClass("on");
180		$(".modal_log_content").addClass("on");
181	}else {
182		location.href = "/log.siso";
183	}
184});
185$(".modal_log_close").click(function(){
186	$(".modal_log_bg").removeClass("on");
187	$(".modal_log_content").removeClass("on");
188});*/
189//agree01
190$(".agreebtn_01").click(function(){
191	$(".modal_signup_agree01_bg").addClass("on");
192	$(".modal_signup_agree01_content").addClass("on");
193});
194$(".modal_signup_agree01_close").click(function(){
195	$(".modal_signup_agree01_bg").removeClass("on");
196	$(".modal_signup_agree01_content").removeClass("on");
197});
198//agree02
199$(".agreebtn_02").click(function(){
200	$(".modal_signup_agree02_bg").addClass("on");
201	$(".modal_signup_agree02_content").addClass("on");
202});
203$(".modal_signup_agree02_close").click(function(){
204	$(".modal_signup_agree02_bg").removeClass("on");
205	$(".modal_signup_agree02_content").removeClass("on");
206});
207//agree03
208$(".agreebtn_03").click(function(){
209	$(".modal_signup_agree03_bg").addClass("on");
210	$(".modal_signup_agree03_content").addClass("on");
211});
212$(".modal_signup_agree03_close").click(function(){
213	$(".modal_signup_agree03_bg").removeClass("on");
214	$(".modal_signup_agree03_content").removeClass("on");
215});
216//agree04
217$(".agreebtn_04").click(function(){
218	$(".modal_signup_agree04_bg").addClass("on");
219	$(".modal_signup_agree04_content").addClass("on");
220});
221$(".modal_signup_agree04_close").click(function(){
222	$(".modal_signup_agree04_bg").removeClass("on");
223	$(".modal_signup_agree04_content").removeClass("on");
224});
225//agree05
226$(".agreebtn_05").click(function(){
227	$(".modal_signup_agree05_bg").addClass("on");
228	$(".modal_signup_agree05_content").addClass("on");
229});
230$(".modal_signup_agree05_close").click(function(){
231	$(".modal_signup_agree05_bg").removeClass("on");
232	$(".modal_signup_agree05_content").removeClass("on");
233});
234//이용약관
235$(".use_btn").click(function(){
236	$(".modal_use_bg").addClass("on");
237	$(".modal_use_content").addClass("on");
238});
239$(".modal_use_close").click(function(){
240	$(".modal_use_bg").removeClass("on");
241	$(".modal_use_content").removeClass("on");
242});
243//개인정보처리방침
244$(".privacy_btn").click(function(){
245	$(".modal_privacy_bg").addClass("on");
246	$(".modal_privacy_content").addClass("on");
247});
248$(".modal_privacy_close").click(function(){
249	$(".modal_privacy_bg").removeClass("on");
250	$(".modal_privacy_content").removeClass("on");
251});
252
253
254
255
256/////////////
257
258$(".content04_select").change(function(){
259	$(this).closest(".content04_sub").find("input").prop('checked', true);
260});
261
262////////자료없음 줄 맞춤
263var th_len = $("table").find("th").length;
264
265$(".td_none").attr("colspan",th_len);
266
267
268/////////////////////////////mobile
269//////sidenav
270$(".hamburger").click(function(){
271	$(".sidenav").addClass("on");
272});
273$(".close, .sidenav_bg").click(function(){
274	$(".sidenav").removeClass("on");
275});
276$(".sidenav_menu>ul>li").click(function(){
277	$(this).toggleClass("on").siblings().removeClass("on");
278	$(this).find("ul").slideToggle();
279});
280
281/* var pageUrl = window.location.pathname;
282	console.log(pageUrl);
283	 if(pageUrl.substr(0,10) == '/content01'){
284		 $('.nav_slide01').slideDown();
285		 $('.nav_slide01').parent('li').addClass("on").siblings().removeClass("on");
286	 }
287	else if(pageUrl.substr(0,10) == '/content02'){
288		 $('.nav_slide02').slideDown();
289		 $('.nav_slide02').parent('li').addClass("on").siblings().removeClass("on");
290	 }
291	 else if(pageUrl.substr(0,10) == '/content03'){
292		 $('.nav_slide03').slideDown();
293		 $('.nav_slide03').parent('li').addClass("on").siblings().removeClass("on");
294	 }
295	 else if(pageUrl.substr(0,3) == '/cs'){
296		 $('.nav_slide04').slideDown();
297		 $('.nav_slide04').parent('li').addClass("on").siblings().removeClass("on");
298	 }else {
299		$(".sidenav_menu>ul>li>ul").slideUp();
300		$(".sidenav_menu>ul>li").removeClass("on");
301	 }
302 */
303////// menu
304$(window).scroll(function(){
305	if($(window).scrollTop()>$("#index").offset().top){
306	$(".top_nav_mobile").addClass("on")
307	}else{
308	$(".top_nav_mobile").removeClass("on")
309	}
310});
311
312/*
313$(".table_check input[name='chkbox']").change(function(){
314	var table_chk = $(".table_check input[name='chkbox']")
315	var total_chk = $("input[id='check_total']");
316	var sub_chk = $(".normal");
317	
318	if($(total_chk).is(":checked") == true) {
319		$(this).parents(".table_check").find('input').prop("checked", true);
320	}else {
321		$(this).parents(".table_check").find('input').prop("checked", false);
322	}
323});*/
324var table_chk = $(".table_check input[name='chkbox']")
325var total_chk = $(".table_check input[id='check_total']");
326var sub_chk = $(".table_check .normal");
327
328//전체박스 선택
329$(total_chk).change(function(){
330	if($(this).is(":checked") == true) {
331		$(this).parents(".table_check").find('input').prop("checked", true);
332	}else {
333		$(this).parents(".table_check").find('input').prop("checked", false);
334	}
335});
336//개별체크박스
337$(sub_chk).change(function(){
338	var is_checked = true;
339
340    $(sub_chk).each(function(){
341        is_checked = is_checked && $(this).is(":checked");
342    });
343
344    $(total_chk).prop("checked", is_checked);
345});
346
347$("input[name='account_type']").change(function(){
348	if($(this).attr('id') == 'cardpay' || $(this).attr('id') == 'banksend') {
349		$(".tex_do").hide();
350		$(".noaccount_box").hide();
351		$(".con_info").hide();
352	}else {
353		$(".tex_do").show();
354		$(".noaccount_box").show();
355		$(".con_info").show();
356	}
357});
358
359$("input[name='tex_do']").change(function(){
360	if($(this).attr('id') == 'tex_ok') {
361		$(".texdo_hidden").show();
362	}else {
363		$(".texdo_hidden").hide();
364	}
365});
366
367	$(function(){
368		$(".download").click(function(){
369			mobile_down(event);
370		});
371	});
372
373});
374
375
376
377
378
379function mobile_down(event) {
380	//Mobile여부를 구분하기 위함
381	var uAgent = navigator.userAgent.toLowerCase(); // 아래는 모바일 장치들의 모바일 페이지 접속을위한 스크립트
382	var mobilePhones = new Array('iphone', 'ipod', 'ipad', 'android', 'blackberry', 'windows ce','nokia', 'webos', 'opera mini', 'sonyericsson', 'opera mobi', 'iemobile');
383	for (var i = 0; i < mobilePhones.length; i++){
384		if (uAgent.indexOf(mobilePhones[i]) != -1){
385			alert("PC에서만 다운로드 가능합니다.");
386			event.preventDefault();
387			return false;
388		} else {
389
390		}
391	};
392}
393
394
395///////////////콤마 찍기
396function AddComma(num)
397{
398	var regexp = /\B(?=(\d{3})+(?!\d))/g;
399	return num.toString().replace(regexp, ',');
400}
401function removeComma(str)
402{
403	n = parseInt(str.replace(/,/g,""));
404	return n;
405}
406function numberWithCommas(x) {
407	  x = x.replace(/[^0-9]/g,'');   // 입력값이 숫자가 아니면 공백
408	  x = x.replace(/,/g,'');          // ,값 공백처리
409	  $('input[name="so_use_point"]').val(x.replace(/\B(?=(\d{3})+(?!\d))/g, ",")); // 정규식을 이용해서 3자리 마다 , 추가 
410}
411
412/////////////////////이메일
413function SetEmailTail(emailValue) {
414	  var email = document.all("a_email")    // 사용자 입력
415	  var emailTail = document.all("b_email") // Select box
416	  
417	  if ( emailValue == "notSelected" )
418	   return;
419	  else if ( emailValue == "etc" ) {
420	   emailTail.readOnly = false;
421	   emailTail.value = "";
422	   emailTail.focus();
423	  } else {
424	   emailTail.readOnly = true;
425	   emailTail.value = emailValue;
426	  }
427 }
428 function validateForm() { //form에 온서브밋이 있을경우 없으면 버튼 아이디 클릭해서 이용하시길 - onsubmit="return validateForm()"
429	var mail1 = $('#a_email').val();
430	var mail2 = $('#b_email').val();
431	var real_mail = mail1 +'@' + mail2;	
432	$("#m_id").val(real_mail);
433	return false;
434 }
435 
436/*
437 function fwrite_submit(f){
438
439
440		if (!is_checked("chk[]")) {
441			alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");
442			return false;
443		}
444
445		if (!f.ip_name.value) {
446			alert("인증아이피를 입력해주세요.");
447			f.ip_name.focus();
448			return false;
449		}
450
451		f.id.value = "ip_change";
452
453		f.action = "./view.php";
454
455}*/
456
457function ip_change() {
458	var ip_val = $("#ip_name").val();
459	if($(".table_check .normal").is(":checked") == false) {
460		alert("아이피변경 하실 항목을 하나 이상 선택하세요.");
461		return false;
462	}
463	if (ip_val == '') {
464			alert("인증아이피를 입력해주세요.");
465			$("#ip_name").focus();
466			return false;
467	}
468}

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.