1/** 2 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 3 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 4 */ 5 6$(document).ready(function(){ 7 8 var methods = { 9 aCategory : [], 10 aSubCategory : {}, 11 12 get: function() 13 { 14 $.ajax({ 15 url : '/exec/front/Product/SubCategory', 16 dataType: 'json', 17 success: function(aData) { 18 19 if (aData == null || aData == 'undefined') return; 20 for (var i=0; i<aData.length; i++) 21 { 22 var sParentCateNo = aData[i].parent_cate_no; 23 24 if (!methods.aSubCategory[sParentCateNo]) { 25 methods.aSubCategory[sParentCateNo] = []; 26 } 27 28 methods.aSubCategory[sParentCateNo].push( aData[i] ); 29 } 30 } 31 }); 32 }, 33 34 getParam: function(sUrl, sKey) { 35 36 var aUrl = sUrl.split('?'); 37 var sQueryString = aUrl[1]; 38 var aParam = {}; 39 40 if (sQueryString) { 41 var aFields = sQueryString.split("&"); 42 var aField = []; 43 for (var i=0; i<aFields.length; i++) { 44 aField = aFields[i].split('='); 45 aParam[aField[0]] = aField[1]; 46 } 47 } 48 return sKey ? aParam[sKey] : aParam; 49 }, 50 51 getParamSeo: function(sUrl) { 52 var aUrl = sUrl.split('/'); 53 return aUrl[3] ? aUrl[3] : null; 54 }, 55 56 show: function(overNode, iCateNo) { 57 58 if (methods.aSubCategory[iCateNo].length == 0) { 59 return; 60 } 61 62 var aHtml = []; 63 aHtml.push('<ul>'); 64 $(methods.aSubCategory[iCateNo]).each(function() { 65 //aHtml.push('<li><a href="'+this.link_product_list+'">'+this.name+'</a></li>'); 66 aHtml.push('<li><a href="/'+this.design_page_url+this.param+'">'+this.name+'</a></li>'); 67 }); 68 aHtml.push('</ul>'); 69 70 71 var offset = $(overNode).offset(); 72 $('<div class="sub-category"></div>') 73 .appendTo(overNode) 74 .html(aHtml.join('')) 75 .find('li').mouseover(function(e) { 76 $(this).addClass('over'); 77 }).mouseout(function(e) { 78 $(this).removeClass('over'); 79 }); 80 }, 81 82 close: function() { 83 $('.sub-category').remove(); 84 } 85 }; 86 87 methods.get(); 88 89 90 $('.xans-layout-category li').mouseenter(function(e) { 91 var $this = $(this).addClass('on'), 92 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 93 94 if (!iCateNo) { 95 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 96 } 97 98 if (!iCateNo) { 99 return; 100 } 101 102 methods.show($this, iCateNo); 103 }).mouseleave(function(e) { 104 $(this).removeClass('on'); 105 106 methods.close(); 107 }); 108}); 109$(function(){ 110 if($(".menuCategory > li").length==0){ 111 $(".menuCategory").hide(); 112 }; 113}); 114/** 115 * ìì§ì´ë ë°°ë Jquery Plug-in 116 * @author cafe24 117 */ 118 119(function($){ 120 121 $.fn.floatBanner = function(options) { 122 options = $.extend({}, $.fn.floatBanner.defaults , options); 123 124 return this.each(function() { 125 var aPosition = $(this).position(); 126 var jbOffset = $(this).offset(); 127 var node = this; 128 129 $(window).scroll(function() { 130 var _top = $(document).scrollTop(); 131 _top = (aPosition.top < _top) ? _top : aPosition.top; 132 133 setTimeout(function () { 134 var newinit = $(document).scrollTop(); 135 136 if ( newinit > jbOffset.top ) { 137 _top -= jbOffset.top; 138 var container_height = $("#wrap").height(); 139 var quick_height = $(node).height(); 140 var cul = container_height - quick_height; 141 if(_top > cul){ 142 _top = cul; 143 } 144 }else { 145 _top = 0; 146 } 147 148 $(node).stop().animate({top: _top}, options.animate); 149 }, options.delay); 150 }); 151 }); 152 }; 153 154 $.fn.floatBanner.defaults = { 155 'animate' : 500, 156 'delay' : 500 157 }; 158 159})(jQuery); 160 161/** 162 * 문ì 구ëí ìì 163 */ 164$(document).ready(function(){ 165 $('#banner:visible, #quick:visible').floatBanner(); 166 167 //placeholder 168 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 169 var placeholderName = $(this).parents().attr('title'); 170 $(this).attr("placeholder", placeholderName); 171 }); 172 /* placeholder ie8, ie9 */ 173 $.fn.extend({ 174 placeholder : function() { 175 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 176 if (hasPlaceholderSupport() === true) { 177 return this; 178 } 179 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 180 return this.each(function(){ 181 var findThis = $(this); 182 var sPlaceholder = findThis.attr('placeholder'); 183 if ( ! sPlaceholder) { 184 return; 185 } 186 findThis.wrap('<label class="ePlaceholder" />'); 187 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 188 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 189 this.onpropertychange = function(e){ 190 e = event || e; 191 if (e.propertyName == 'value') { 192 $(this).trigger('focusout'); 193 } 194 }; 195 //ê³µíµ class 196 var agent = navigator.userAgent.toLowerCase(); 197 if (agent.indexOf("msie") != -1) { 198 $(".ePlaceholder").css({"position":"relative"}); 199 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 200 $(".ePlaceholder label").css({"padding":"0"}); 201 } 202 }); 203 } 204 }); 205 206 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 207 208 //í´ë¦íë©´ placeholder ì¨ê¹ 209 $('body').delegate('.ePlaceholder span', 'click', function(){ 210 $(this).hide(); 211 }); 212 213 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 214 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 215 $(this).prev('span').hide(); 216 }); 217 218 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 219 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 220 if (this.value) { 221 $(this).prev('span').hide(); 222 } else { 223 $(this).prev('span').show(); 224 } 225 }); 226 227 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 228 function hasPlaceholderSupport() { 229 if ('placeholder' in document.createElement('input')) { 230 return true; 231 } else { 232 return false;
233 } 234 } 235}); 236 237/** 238 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 239 */ 240$(window).load(function() { 241 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 242 var $img = new Image(); 243 $img.onerror = function () { 244 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 245 } 246 $img.src = this.src; 247 }); 248}); 249//window popup script 250function winPop(url) { 251 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 252} 253/** 254 * document.location.href split 255 * return array Param 256 */ 257function getQueryString(sKey) 258{ 259 var sQueryString = document.location.search.substring(1); 260 var aParam = {}; 261 262 if (sQueryString) { 263 var aFields = sQueryString.split("&"); 264 var aField = []; 265 for (var i=0; i<aFields.length; i++) { 266 aField = aFields[i].split('='); 267 aParam[aField[0]] = aField[1]; 268 } 269 } 270 271 aParam.page = aParam.page ? aParam.page : 1; 272 return sKey ? aParam[sKey] : aParam; 273}; 274 275$(document).ready(function(){ 276 // tab 277 $.eTab = function(ul){ 278 $(ul).find('a').click(function(){ 279 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 280 _target = $(this).attr('href'), 281 _siblings = '.' + $(_target).attr('class'); 282 $(_target).show().siblings(_siblings).hide(); 283 return false 284 }); 285 } 286 if ( window.call_eTab ) { 287 call_eTab(); 288 }; 289}); 290(function($){ 291$.fn.extend({ 292 center: function() { 293 this.each(function() { 294 var 295 $this = $(this), 296 $w = $(window); 297 $this.css({ 298 position: "absolute", 299 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 300 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 301 }); 302 }); 303 return this; 304 } 305}); 306$(function() { 307 var $container = function(){/* 308<div id="modalContainer"> 309 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 310</div>'); 311*/}.toString().slice(14,-3); 312 $('body') 313 .append($('<div id="modalBackpanel"></div>')) 314 .append($($container)); 315 function closeModal () { 316 $('#modalContainer').hide(); 317 $('#modalBackpanel').hide(); 318 } 319 $('#modalBackpanel').click(closeModal); 320 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 321 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 322 $('#modalContent').attr('src', $url); 323 $('#modalContent').bind("load",function(){ 324 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 325 }); 326 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 327 $('#modalContainer').center().show(); 328 } 329}); 330})(jQuery); 331$(document).ready(function(){ 332 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 333 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 334 var bShippingCountryProc = false; 335 336 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 337 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 338 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 339 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 340 } else { 341 $('.thumb .xans-layout-multishoplistitem').hide(); 342 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 343 if (typeof(aShippingCountryCode) != 'undefined' && aS
343hippingCountryCode != null && aShippingCountryCode.length > 2) { 344 var sShippingCountryValue = aShippingCountryCode[2]; 345 } 346 347 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 348 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 349 350 if (aHrefCountryValue.length == 2) { 351 var sShippingCountryValue = aHrefCountryValue[1]; 352 } 353 354 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 355 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 356 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 357 358 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 359 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 360 } 361 } 362 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 363 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 364 var bShippingCountryProc = true; 365 366 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 367 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 368 var expires = new Date(); 369 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 370 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 371 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 372 $("#f_country").val(sShippingCountryValue).change();; 373 } 374 } 375 } 376 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 377 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 378 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 379 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 380 } else { 381 $('.thumb .xans-layout-multishoplistitem').hide(); 382 } 383 384 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 385 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 386 $(".xans-layout-multishopshipping").hide(); 387 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 388 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 389 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 390 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 391 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 392 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 393 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 394 $(".xans-layout-multishopshipping").show(); 395 } 396 } 397 398 $(".xans-layout-multishopshipping .close").bind("click", function() { 399 $(".xans-layout-multishopshipping").hide(); 400 }); 401 402 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 403 var expires = new Date(); 404 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 405 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 406 407 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
407ì ëê¹ 408 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 409 410 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 411 }); 412 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 413 $(".xans-layout-multishopshipping").show(); 414 }); 415 } 416});
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.