1document.addEventListener('DOMContentLoaded', function() { 2 const flag1 = document.querySelector('.custom_option4_css td span'); 3 const flag2 = document.querySelector('.custom_option5_css td span'); 4 const nameTarget = document.querySelector('.name'); 5 6 if (nameTarget) { 7 const combinedContainer = document.createElement('div'); 8 combinedContainer.className = 'combined_flag_area'; 9 combinedContainer.style.marginTop = '0px'; 10 11 let htmlContent = ''; 12 if (flag1) htmlContent += flag1.innerHTML; 13 if (flag2) htmlContent += flag2.innerHTML; 14 15 combinedContainer.innerHTML = htmlContent; 16 nameTarget.after(combinedContainer); 17 18 const row1 = document.querySelector('.custom_option4_css'); 19 const row2 = document.querySelector('.custom_option5_css'); 20 if (row1) row1.style.display = 'none'; 21 if (row2) row2.style.display = 'none'; 22 } 23}); 24 25$(document).ready(function(){ 26 var optionValue = $('.custom_option9_css td span').text().trim(); 27 if(optionValue !== "") { 28 $('#span_product_price_text').addClass('add_name'); 29 console.log("ì¸í í ê°ê²©ì´ ì¡´ì¬íì¬ í´ëì¤ê° ì¶ê°ëììµëë¤."); 30 } 31 }); 32$(document).ready(function() { 33 34// 1. ì¤ì ë¡ì§ì ìííë í¨ì ì ì 35function checkAndAddClass() { 36 $('.spec').each(function(){ 37 var $spec = $(this); 38 39 // ì´ë¯¸ ì²ë¦¬ë í목ì ê±´ëë°ê¸° (ì¤ë³µ ì¤í ë°©ì§) 40 if($spec.data('processed')) return; 41 42 var $optionP = $spec.find('.custom_option9 p'); 43 44 // p íê·¸ê° ì¡´ì¬íê³ í ì¤í¸ê° ìì ëë§ ì¤í 45 if ($optionP.length > 0) { 46 var text = $.trim($optionP.text()); 47 48 // ì«ì(0-9)ê° íëë¼ë í¬í¨ëì´ ìëì§ ì ê·ì ì²´í¬ 49 if (/\d/.test(text)) { 50 $spec.find('.price_copy').addClass('option_add'); 51 } 52 } 53 54 // ì²ë¦¬ ìë£ íì 55 $spec.data('processed', true); 56 }); 57} 58 59// 2. ìµì´ íì´ì§ ë¡ë ì 1í ì¤í 60checkAndAddClass(); 61 62// 3. MutationObserverë¡ ëì ë¡ë©(ë보기, íì´ì§ ì´ë ë±) ê°ì§ 63var observer = new MutationObserver(function(mutations) { 64 // ë³íê° ê°ì§ëë©´ ë¡ì§ ì¬ì¤í 65 checkAndAddClass(); 66}); 67 68// body íê·¸ ë´ì ë³í를 ê°ì (ìí 목ë¡ì´ body ì´ëê°ì ì¶ê°ëë¯ë¡) 69observer.observe(document.body, { 70 childList: true, 71 subtree: true 72}); 73}); 74 75document.addEventListener("DOMContentLoaded", function() { 76 var maxCheck = 50; 77 var checkCount = 0; 78 79 var adminTimer = setInterval(function() { 80 checkCount++; 81 82 var wrapper = document.querySelector('.dj__admin_check'); 83 var nameEl = wrapper ? wrapper.querySelector('.xans-member-var-name') : null; 84 85 if (nameEl && nameEl.textContent.trim() !== "") { 86 87 var userName = nameEl.textContent.trim(); 88 89 if (userName.includes('ê´ë¦¬ì')) { 90 console.log("ê´ë¦¬ì íì¸ë¨! (" + userName + ")"); 91 92 var adminElements = document.querySelectorAll('.admin-only'); 93 adminElements.forEach(function(el) { 94 el.style.display = 'block'; 95 el.style.setProperty('display', 'block', 'important'); 96 }); 97 } 98 99 clearInterval(adminTimer); 100 } 101 102 if (checkCount >= maxCheck) { 103 clearInterval(adminTimer); 104 } 105 106 }, 100); 107}); 108 109 110 111 112 113 114 115 116document.querySelectorAll('p').forEach(p => { 117 if (p.innerHTML.trim() === '<br>') { 118 p.style.setProperty('line-height', '1', 'important'); 119 } 120}); 121 122 123$(document).ready(function() { 124 // ìì´íë ìì ì í 125 var iframe = $('iframe')[0]; // 첫 ë²ì§¸ iframeì ì í, ì¬ë¬ ê°ì¼ ê²½ì° [index]ë¡ ì§ì ê°ë¥ 126 127 // ìì´íë ì 문ìì ì ê·¼ 128 var iframeDocument = iframe.contentDocument || iframe.contentWindow.document; 129 130 // ì¤íì¼ íê·¸ ì¶ê° 131 var style = iframeDocument.createElement('style'); 132 style.innerHTML = 'body, body * { font-size: 14px !important; }'; 133 134 // ìì´íë ìì <head>ì ì¤íì¼ì ì¶ê° 135 iframeDocument.head.appendChild(style); 136}); 137 138 139 140 141/** 142 * ìì§ì´ë ë°°ë Jquery Plug-in 143 * @author cafe24 144 */ 145 146(function($){ 147 148 $.fn.floatBanner = function(options) { 149 options = $.extend({}, $.fn.floatBanner.defaults , options); 150 151 return this.each(function() { 152 var aPosition = $(this).position(); 153 var jbOffset = $(this).offset(); 154 var node = this; 155 156 $(window).scroll(function() { 157 var _top = $(document).scrollTop(); 158 _top = (aPosition.top < _top) ? _top : aPosition.top; 159 160 setTimeout(function () { 161 var newinit = $(document).scrollTop(); 162 163 if ( newinit >
163 jbOffset.top ) { 164 _top -= jbOffset.top; 165 var container_height = $("#wrap").height(); 166 var quick_height = $(node).height(); 167 var cul = container_height - quick_height; 168 if(_top > cul){ 169 _top = cul; 170 } 171 }else { 172 _top = 0; 173 } 174 175 $(node).stop().animate({top: _top}, options.animate); 176 }, options.delay); 177 }); 178 }); 179 }; 180 181 $.fn.floatBanner.defaults = { 182 'animate' : 500, 183 'delay' : 500 184 }; 185 186})(jQuery); 187 188/** 189 * 문ì 구ëí ìì 190 */ 191$(document).ready(function(){ 192 $('#banner:visible, #quick:visible').floatBanner(); 193 194 //placeholder 195 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 196 var placeholderName = $(this).parents().attr('title'); 197 $(this).attr("placeholder", placeholderName); 198 }); 199 /* placeholder ie8, ie9 */ 200 $.fn.extend({ 201 placeholder : function() { 202 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 203 if (hasPlaceholderSupport() === true) { 204 return this; 205 } 206 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 207 return this.each(function(){ 208 var findThis = $(this); 209 var sPlaceholder = findThis.attr('placeholder'); 210 if ( ! sPlaceholder) { 211 return; 212 } 213 findThis.wrap('<label class="ePlaceholder" />'); 214 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 215 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 216 this.onpropertychange = function(e){ 217 e = event || e; 218 if (e.propertyName == 'value') { 219 $(this).trigger('focusout'); 220 } 221 }; 222 //ê³µíµ class 223 var agent = navigator.userAgent.toLowerCase(); 224 if (agent.indexOf("msie") != -1) { 225 $(".ePlaceholder").css({"position":"relative"}); 226 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 227 $(".ePlaceholder label").css({"padding":"0"}); 228 } 229 }); 230 } 231 }); 232 233 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 234 235 //í´ë¦íë©´ placeholder ì¨ê¹ 236 $('body').delegate('.ePlaceholder span', 'click', function(){ 237 $(this).hide(); 238 }); 239 240 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 241 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 242 $(this).prev('span').hide(); 243 }); 244 245 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 246 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 247 if (this.value) { 248 $(this).prev('span').hide(); 249 } else { 250 $(this).prev('span').show(); 251 } 252 }); 253 254 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 255 function hasPlaceholderSupport() { 256 if ('placeholder' in document.createElement('input')) { 257 return true; 258 } else { 259 return false; 260 } 261 } 262}); 263 264/** 265 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 266 */ 267$(window).load(function() { 268 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 269 var $img = new Image(); 270 $img.onerror = function () { 271 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 272 } 273 $img.src = this.src; 274 }); 275}); 276 277 278 279/* ë©ë´ ê³ ì */ 280 281 $(document).ready(function(){ 282 $(window).bind('scroll', function() { 283 var djHeight = $( window ).height() - 5; 284 if ($(window).scrollTop() > 50) { 285 $('#header .top_3').addClass('top_3_fixed'); 286 } 287 else { 288 $('#header .top_3').removeClass('top_3_fixed'); 289 } 290 }); 291 }); 292 293 294 295 $(document).ready(function(){ 296 $(window).bind('scroll', function() { 297 var djHeight = $( window ).height() - 5; 298 if ($(window).scrollTop() > 50) { 299 $('.xans-product-detail .infoArea').addClass('infoArea_fixed'); 300 } 301 else { 302 $('.xans-product-detail .infoArea').removeClass('infoArea_fixed'); 303 } 304 }); 305 }); 306 307 308 309/**
310 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 311 */ 312$(window).load(function() { 313 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 314 var $img = new Image(); 315 $img.onerror = function () { 316 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 317 } 318 $img.src = this.src; 319 }); 320}); 321 322 323 324 325//window popup script 326function winPop(url) { 327 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 328} 329/** 330 * document.location.href split 331 * return array Param 332 */ 333function getQueryString(sKey) 334{ 335 var sQueryString = document.location.search.substring(1); 336 var aParam = {}; 337 338 if (sQueryString) { 339 var aFields = sQueryString.split("&"); 340 var aField = []; 341 for (var i=0; i<aFields.length; i++) { 342 aField = aFields[i].split('='); 343 aParam[aField[0]] = aField[1]; 344 } 345 } 346 347 aParam.page = aParam.page ? aParam.page : 1; 348 return sKey ? aParam[sKey] : aParam; 349}; 350 351$(document).ready(function(){ 352 // tab 353 $.eTab = function(ul){ 354 $(ul).find('a').click(function(){ 355 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 356 _target = $(this).attr('href'), 357 _siblings = '.' + $(_target).attr('class'); 358 $(_target).show().siblings(_siblings).hide(); 359 return false 360 }); 361 } 362 if ( window.call_eTab ) { 363 call_eTab(); 364 }; 365}); 366(function($){ 367$.fn.extend({ 368 center: function() { 369 this.each(function() { 370 var 371 $this = $(this), 372 $w = $(window); 373 $this.css({ 374 position: "absolute", 375 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 376 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 377 }); 378 }); 379 return this; 380 } 381}); 382$(function() { 383 var $container = function(){/* 384<div id="modalContainer"> 385 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 386</div>'); 387*/}.toString().slice(14,-3); 388 $('body') 389 .append($('<div id="modalBackpanel"></div>')) 390 .append($($container)); 391 function closeModal () { 392 $('#modalContainer').hide(); 393 $('#modalBackpanel').hide(); 394 } 395 $('#modalBackpanel').click(closeModal); 396 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 397 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 398 $('#modalContent').attr('src', $url); 399 $('#modalContent').bind("load",function(){ 400 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 401 }); 402 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 403 $('#modalContainer').center().show(); 404 } 405}); 406})(jQuery); 407$(document).ready(function(){ 408 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 409 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 410 var bShippingCountryProc = false; 411 412 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 413 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 414 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 415 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 416 } else { 417 $('.thumb .xans-layout-multishoplistitem').hide(); 418 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 419 if (typeof(aShippingCountryCode) != 'undefined' && aS
419hippingCountryCode != null && aShippingCountryCode.length > 2) { 420 var sShippingCountryValue = aShippingCountryCode[2]; 421 } 422 423 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 424 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 425 426 if (aHrefCountryValue.length == 2) { 427 var sShippingCountryValue = aHrefCountryValue[1]; 428 } 429 430 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 431 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 432 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 433 434 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 435 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 436 } 437 } 438 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 439 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 440 var bShippingCountryProc = true; 441 442 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 443 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 444 var expires = new Date(); 445 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 446 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 447 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 448 $("#f_country").val(sShippingCountryValue).change();; 449 } 450 } 451 } 452 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 453 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 454 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 455 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 456 } else { 457 $('.thumb .xans-layout-multishoplistitem').hide(); 458 } 459 460 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 461 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 462 $(".xans-layout-multishopshipping").hide(); 463 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 464 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 465 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 466 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 467 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 468 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 469 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 470 $(".xans-layout-multishopshipping").show(); 471 } 472 } 473 474 $(".xans-layout-multishopshipping .close").bind("click", function() { 475 $(".xans-layout-multishopshipping").hide(); 476 }); 477 478 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 479 var expires = new Date(); 480 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 481 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 482 483 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
483ì ëê¹ 484 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 485 486 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 487 }); 488 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 489 $(".xans-layout-multishopshipping").show(); 490 }); 491 } 492});
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.