PageSourceSearch

https://imory.co.kr/js/common.js?ver=1676956892

js imory.co.kr collected 2026-10-02 00:21:57 UTC 14,304 bytes, 456 lines download raw bytes

1var Class = {
2  create: function() {
3    return function() {
4      this.initialize.apply(this, arguments);
5    }
6  }
7}
8
9/*** 문자열 치환 ***/
10function replaceAll(str, searchStr, replaceStr) {
11    return str.split(searchStr).join(replaceStr);
12}
13
14function $(o){ return document.getElementById(o); }
15
16/*** 이벤트 추가 ***/
17function bindEvent(element, event, callback){
18	if (element.addEventListener) element.addEventListener(event, callback, false); 
19	else if (element.attachEvent) element.attachEvent("on" + event, callback);
20}
21
22function getInnerText(o){
23  return o.textContent ? o.textContent : o.innerText;
24}
25
26function evalJSON(str){
27	return eval('(' + str + ')');
28}
29
30
31//####################################
32// .net 4.0 설치여부 확인			20150608		chunter
33function checkFrameWork(runtimeVersion)
34{
35	if (runtimeVersion == "")	runtimeVersion = "4.0.0";
36	var checkClient = false;
37		
38	if (HasRuntimeVersion(runtimeVersion, false) || (checkClient && HasRuntimeVersion(runtimeVersion, checkClient)))
39  	{
40  		//프레임 워크가 설치되어 있다.    
41    	//BootstrapperSection.style.display = "none";
42    	return true;
43  	} else
44	  	return false;  
45}
46
47
48function HasRuntimeVersion(v, c)
49{
50  	var va = GetVersion(v);
51  	var i;
52
53	var browser = checkBrowser();
54	if (browser.isIE)
55	{	  
56	  	var a = navigator.userAgent.match(/\.NET CLR [0-9.]+/g);
57	  
58	  	if(va[0]==4)
59	    	a = navigator.userAgent.match(/\.NET[0-9.]+E/g);
60	  	if (c)
61	  	{
62	    	a = navigator.userAgent.match(/\.NET Client [0-9.]+/g);
63	    	if (va[0]==4)
64	       	a = navigator.userAgent.match(/\.NET[0-9.]+C/g);
65	  	}
66	  
67	  	if (a != null)
68			for (i = 0; i < a.length; ++i)
69	      	if (CompareVersions(va, GetVersion(a[i])) <= 0)
70					return true;
71	  	return false;
72	} else {
73		return true;
74	}
75}
76function GetVersion(v)
77{
78  var a = v.match(/([0-9]+)\.([0-9]+)\.([0-9]+)/i);
79  if(a==null)
80     a = v.match(/([0-9]+)\.([0-9]+)/i);
81  return a.slice(1);
82}
83function CompareVersions(v1, v2)
84{
85   if(v1.length>v2.length)
86   {
87      v2[v2.length]=0;
88   }  
89   else if(v1.length<v2.length)
90   {
91      v1[v1.length]=0;
92   }
93
94  for (i = 0; i < v1.length; ++i)
95  {
96    var n1 = new Number(v1[i]);
97    var n2 = new Number(v2[i]);
98    if (n1 < n2)
99      return -1;
100    if (n1 > n2)
101      return 1;
102  }
103  return 0;
104}
105//####################################
106
107
108//클릭원스 어플 실행(유치원 시즌2) / 15.04.06 / kjm
109function uploadAppExecuteClickOnce(domain, param, storage_date_notice, storage_size_notice) 
110{
111	//스토리지 사용기간에 따른 메세지창
112	if (storage_date_notice == "Y")
113		alert(tls("웹하드 사용기간이 만료되었습니다. 본사에 문의 하세요."));
114	//스토리지 사용량에 따른 메세지
115	else if (storage_size_notice == "Y")
116		alert(tls("웹하드 사용량이 초과되었습니다. 본사에 문의 하세요."));
117	else
118	{
119		//net fw 4.0 설치여부 체크한다.			20150609		chunter		
120		if (checkFrameWork('4.0.0'))
121		{
122			if (jsLocale == 'zh_CN')
123			{
124				location.href="http://download.bluepoto.com/clickonce_kids/Oasis_Kids_cha.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
125			}
126			else
127			{
128				//location.href="http://podmanage.bluepod.kr/ilark/pretty/Oasis_Kids.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
129				location.href="http://studio.ilark.co.kr/clickonce_kids/Oasis_Kids.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
130		 		//SetActiveLoaderInit("Oasis_CustomizeOrder.exe http://studio.ilark.co.kr/user/application_run.aspx" + param);
131		 	}
132		} else {
133			//설치 체크하는 applicatino 으로 링크를 바꾼다.		20150609		chunter
134			//location.href="http://studio.ilark.co.kr/clickonce_launcher/Oasis_kids_launcher.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
135			//설치 안내창 띄우기.
136			popup('/service/pop_netfw_install_help.php','660px', '570px', 'yes', 'yes','install_help');
137		}
138		//location.href="http://studio.ilark.co.kr/clickonce_launcher/Oasis_kids_launcher.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
139	 }
140}
141
142
143//클릭원스 어플 실행(2016개발) / 16.08.02 / kjm
144function uploadAppExecuteClickOnce_s2(domain, param, storage_date_notice, storage_size_notice) 
145{
146	//스토리지 사용기간에 따른 메세지창
147	if (storage_date_notice == "Y")
148		alert(tls("웹하드 사용기간이 만료되었습니다. 본사에 문의 하세요."));
149	//스토리지 사용량에 따른 메세지
150	else if (storage_size_notice == "Y")
151		alert(tls("웹하드 사용량이 초과되었습니다. 본사에 문의 하세요."));
152	else
153	{
154		//net fw 4.0 설치여부 체크한다.			20150609		chunter		
155		if (checkFrameWork('4.0.0'))
156		{
157			if (jsLocale == 'zh_CN')
158			{
159				location.href="http://download.bluepoto.com/clickonce_kids/Oasis_Kids_cha.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
160			}
161			else
162			{
163				//location.href="http://podmanage.bluepod.kr/ilark/pretty/Oasis_Kids.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
164				location.href="http://studio.ilark.co.kr/clickonce_v2/Oasis_kids_New.application?param1=http://" + domain + "/_pretty/app_s2_config.php&" + param;
165		 		//SetActiveLoaderInit("Oasis_CustomizeOrder.exe http://studio.ilark.co.kr/user/application_run.aspx" + param);
166		 	}
167		} else {
168			//설치 체크하는 applicatino 으로 링크를 바꾼다.		20150609		chunter
169			//location.href="http://studio.ilark.co.kr/clickonce_launcher/Oasis_kids_launcher.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
170			//설치 안내창 띄우기.
171			popup('/service/pop_netfw_install_help.php','660px', '570px', 'yes', 'yes','install_help');
172		}
173		//location.href="http://studio.ilark.co.kr/clickonce_launcher/Oasis_kids_launcher.application?param1=http://" + domain + "/_pretty/app_config.php&" + param;
174	 }
175}
176
177
178//exe 분류 (유치원 시즌2) / 15.10.28		chunter
179function uploadAppExecuteExe(param, storage_date_notice, storage_size_notice, failCb) 
180{
181	//스토리지 사용기간에 따른 메세지창
182	if (storage_date_notice == "Y")
183		alert(tls("웹하드 사용기간이 만료되었습니다. 본사에 문의 하세요."));
184	//스토리지 사용량에 따른 메세지
185	else if (storage_size_notice == "Y")
186		alert(tls("웹하드 사용량이 초과되었습니다. 본사에 문의 하세요."));
187	else {
188		$.ajax({
189			type : "POST",
190			url : "indb.php",
191			data : param,
192
193			success : function(html) {
194				checkExeAppInstall(html, failCb);
195
196			/*
197			try{
198				form = document.sendurl;
199				form.action = html;
200				form.target = "hiddenIfrm";
201				form.submit();
202			} catch (e) {
203				alert('adfa');
204			}
205			*/
206			//window.location = html;
207			}
208		});
209	}
210}
211
212/*** 플래시 보정 ***/
213function embed(src,width,height,vars){
214	/*
215	document.write('\
216	<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="'+width+'" HEIGHT="'+height+'">\
217	<PARAM NAME=movie VALUE="'+src+'">\
218	<PARAM NAME=quality VALUE=high>\
219	<PARAM NAME=wmode VALUE=transparent>\
220	<PARAM NAME=bgcolor VALUE=#FFFFFF>\
221	<PARAM NAME=allowScriptAccess VALUE="always">\
222	<param name=flashvars value="' + vars + '">\
223	<EMBED src="'+src+'" quality=high bgcolor=#FFFFFF wmode=transparent allowScriptAccess=always WIDTH="'+width+'" HEIGHT="'+height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" flashvars="' + vars + '"></EMBED>\
224	</OBJECT>\
225	');
226	*/
227	document.write('\
228	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" class="F1280898684667534794_undefined" style="position: relative ! important;" id="'+src+'" align="middle" height="'+height+'" width="'+width+'">\
229	<param name="movie" value="'+src+'" />\
230	<param name="quality" value="high" />\
231	<param name="bgColor" value="#FFFFFF" />\
232	<param name="allowScriptAccess" value="always" />\
233	<param name="wmode" value="transparent" />\
234	<param name="menu" value="false" />\
235	<param name="flashVars" value="'+vars+'" />\
236	<EMBED src="'+src+'" quality=high bgcolor=#FFFFFF wmode=transparent allowScriptAccess=always WIDTH="'+width+'" HEIGHT="'+height+'" TYPE="application/x-shockwave-flash" PLUGINSPAGE="https://www.macromedia.com/go/getflashplayer" flashvars="' + vars + '"></EMBED>\
237	</object>\
238	');
239}
240
241/*** 콤마 출력 ***/
242function comma(x){
243	var temp = "", co = 3;
244	var x = String(uncomma(x));
245	var num_len = x.length;
246	while (num_len>0){
247		num_len = num_len - co;
248		if (num_len<0){
249			co = num_len + co;
250			num_len = 0;
251		}
252		temp = ","+x.substr(num_len,co)+temp;
253	}
254	return temp.substr(1);
255}
256
257/*** 콤마 미출력 ***/
258function uncomma(x){
259	var reg = /(,)*/g;
260	x = parseInt(String(x).replace(reg,""),10);
261	return (isNaN(x)) ? 0 : x;
262}
263
264/*** 오브젝트 위치 ***/
265function get_objectTop(obj) {
266	if (obj.offsetParent==document.body || obj==document.body) return obj.offsetTop;
267	else return obj.offsetTop + get_objectTop(obj.offsetParent);
268}
269
270function get_objectLeft(obj) {
271	if (obj.offsetParent==document.body) return obj.offsetLeft;
272	else return obj.offsetLeft + get_objectLeft(obj.offsetParent);
273}
274
275function vLayer(obj,mode) {
276	if (typeof(obj)!="object") obj = _ID(obj);
277	if (typeof(obj)=="undefined" || obj==null) return;
278	if (!mode) obj.style.display = (obj.style.display!="block") ? "block" : "none";
279	else obj.style.display = mode;
280}
281
282function _ID(id) {
283	return document.getElementById(id);
284}
285
286function chkBox(El) {
287	var chk;
288	$j("[name="+El+"]").each(function(){
289		if ($j(this).attr("checked")==true) chk = 1;
290	});
291	
292	$j("[name="+El+"]").each(function(){
293		if($j(this).attr("disabled")==false){
294			if (chk) $j(this).attr("checked",false);
295			else $j(this).attr("checked",true);
296		}
297	});
298}
299
300function chkBox_kids(El) {
301	var chk;
302	$j("[name="+El+"]").each(function(){
303		if ($j(this).attr("checked")==true) chk = 1;
304	});
305	
306	$j("[name="+El+"]").each(function(){
307		if($j(this).attr("disabled")==false){
308			if (chk) $j(this).attr("checked",false);
309			else $j(this).attr("checked",true);
310		}
311	});
312}
313
314//rev값이 1이면 해제만 2이면 선택만 / 15.06.29 / kjm
315function chkBox_pretty(El, rev) {
316	var chk;
317	$j("[name="+El+"]").each(function(){
318		if ($j(this).attr("checked")==true) chk = 1;
319	});
320	
321	$j("[name="+El+"]").each(function(){
322		if($j(this).attr("disabled")==false){
323			if (rev == 1) $j(this).attr("checked",false);
324			else $j(this).attr("checked",true);
325		}
326	});
327}
328
329function resizeHeight(obj) {
330	var frbody = obj.contentWindow.document.body;
331	var height = frbody.scrollHeight + ( frbody.offsetHeight - frbody.clientHeight + 30);
332	//$j(obj).css("height",height);
333	$j(obj).height(height);
334}
335
336//SNS 로그인 연동 / 2017.02.23 / kdk	
337function fnSnsLoginPop(snsCode) {
338	//var gsWin = window.open('about:blank','snsLoginOpen','width=500,height=500');
339
340	//$j("input[name=sns_code]").val(snsCode);
341	//$j("#login").attr("action","/_auth/connectSns.php");
342	//$j("#login").attr("method","post");	
343	//$j("#login").attr("target","snsLoginOpen");
344	//$j("#login").submit();
345	
346	var url = "/_oauth/connectSns.php?sns_code="+snsCode;
347	//alert(url);
348	popupLayer(url,"","","",1);	
349}
350
351//화면 불투명 마스크 처리 & 문구 출력
352function wrapWindowByMask() {
353	//화면의 높이와 너비를 구한다.
354	var maskHeight = $j(document).height();
355	//var maskWidth = $j(document).width();
356	var maskWidth = window.document.body.clientWidth;
357
358  	var mask = "<div id='mask' style='position:absolute; z-index:9000; background-color:#000000; display:none; left:0; top:0;'></div>";
359  	var loadingImg = '';
360
361  	loadingImg += "<div id='loadingImg' style='position:absolute; left:42%; top:160%; display:none; z-index:10000;'>";
362  	loadingImg += "</div>";
363
364  	//화면에 레이어 추가 
365  	$j('body').append(mask);
366  	$j('body').append(loadingImg);
367
368  	//마스크의 높이와 너비를 화면 것으로 만들어 전체 화면을 채운다.
369  	$j('#mask').css({
370		'width' : maskWidth,
371		'height': maskHeight,
372		'opacity' : '0.3'
373  	});
374
375  	//마스크 표시
376  	$j('#mask').show();
377
378  	//로딩중 이미지 표시
379  	$j('#loadingImg').show();
380}
381
382function set_goods_like(goodsno, element){
383	$j.ajax({
384		type : "POST",
385		url : "/goods/indb.php",
386		data : "mode=goods_like&goodsno="+goodsno+"&element="+element,
387		success : function(data) {
388			if(data == "not_mid"){
389				alert("로그인을 해주시기 바랍니다.");
390				$j('.btn_wish').removeClass("on");
391			} else {
392				if(data == "reload")
393					window.location.reload();
394				else if (element == "view"){
395					$j('#top_like').text(data);
396					$j('#big_like').text(data);
397					$j('#mem_like').text(data);
398				}
399			}
400		}
401	});
402}
403
404function form_encode_submit(obj){	
405   if(form_chk(obj))
406   {
407   	  if(typeof(obj.mid) != "undefined"){
408   	  	 obj.mid_en.value = Base64.encode(obj.mid.value);
409      	 obj.mid.value = '';
410   	  }
411      if(typeof(obj.password) != "undefined"){
412         obj.password_en.value = Base64.encode(obj.password.value);
413         obj.password.value = '';
414      }
415      if(typeof(obj.password2) != "undefined"){
416         obj.password2_en.value = Base64.encode(obj.password2.value);
417         obj.password2.value = '';
418      }
419      if(typeof(obj.old_password) != "undefined"){
420      	 obj.old_password_en.value = Base64.encode(obj.old_password.value);
421      	 obj.old_password.value = '';
422      }
423      if(typeof(obj.email) != "undefined"){
424      	 obj.email_en.value = Base64.encode(obj.email.value);
425      	 obj.email.value = '';
426      }
427      return true;
428   }
429   else return false;
430}
431
432function move_goods_view(goodsno, catno){
433	var add_catno = "";
434	if(typeof(catno) != "undefined") add_catno = "&catno="+catno;
435	window.location.href = "/goods/view.php?goodsno="+goodsno+add_catno;
436}
437
438function editTitle(storageid,id,mode){
439	var storageid = storageid;
440	var title = document.getElementById(id).value;
441
442	if(!title){
443		alert(tls("내용이 없습니다."));
444		return;
445	}
446
447	var word = "";	
448	if(mode == "modify") word = tls("수정");
449	else word = tls("추가");
450
451	if(confirm(tls("편집타이틀을")+' '+word+tls("하시겠습니까?")) == true){
452		location.href = "?mode=edittitle&storageid="+storageid+"&title="+title;
453	} else {
454		return;
455	}
456}

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.