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.