1$(function(){ 2 // í ì¸ì¨ íì 3 discountRate(); 4}); 5/** 6 * ìì§ì´ë ë°°ë Jquery Plug-in 7 * @author cafe24 8 */ 9 10(function($){ 11 12 $.fn.floatBanner = function(options) { 13 options = $.extend({}, $.fn.floatBanner.defaults , options); 14 15 return this.each(function() { 16 var aPosition = $(this).position(); 17 var jbOffset = $(this).offset(); 18 var node = this; 19 20 $(window).scroll(function() { 21 var _top = $(document).scrollTop(); 22 _top = (aPosition.top < _top) ? _top : aPosition.top; 23 24 setTimeout(function () { 25 var newinit = $(document).scrollTop(); 26 27 if ( newinit > jbOffset.top ) { 28 _top -= jbOffset.top; 29 var container_height = $("#wrap").height(); 30 var quick_height = $(node).height(); 31 var cul = container_height - quick_height; 32 if(_top > cul){ 33 _top = cul; 34 } 35 }else { 36 _top = 0; 37 } 38 39 $(node).stop().animate({top: _top}, options.animate); 40 }, options.delay); 41 }); 42 }); 43 }; 44 45 $.fn.floatBanner.defaults = { 46 'animate' : 500, 47 'delay' : 500 48 }; 49 50})(jQuery); 51 52/** 53 * 문ì 구ëí ìì 54 */ 55$(document).ready(function(){ 56 $('#banner:visible, #quick:visible').floatBanner(); 57 58 //placeholder 59 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 60 var placeholderName = $(this).parents().attr('title'); 61 $(this).attr("placeholder", placeholderName); 62 }); 63 /* placeholder ie8, ie9 */ 64 $.fn.extend({ 65 placeholder : function() { 66 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 67 if (hasPlaceholderSupport() === true) { 68 return this; 69 } 70 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 71 return this.each(function(){ 72 var findThis = $(this); 73 var sPlaceholder = findThis.attr('placeholder'); 74 if ( ! sPlaceholder) { 75 return; 76 } 77 findThis.wrap('<label class="ePlaceholder" />'); 78 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 79 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 80 this.onpropertychange = function(e){ 81 e = event || e; 82 if (e.propertyName == 'value') { 83 $(this).trigger('focusout'); 84 } 85 }; 86 //ê³µíµ class 87 var agent = navigator.userAgent.toLowerCase(); 88 if (agent.indexOf("msie") != -1) { 89 $(".ePlaceholder").css({"position":"relative"}); 90 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 91 $(".ePlaceholder label").css({"padding":"0"}); 92 } 93 }); 94 } 95 }); 96 97 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 98 99 //í´ë¦íë©´ placeholder ì¨ê¹ 100 $('body').delegate('.ePlaceholder span', 'click', function(){ 101 $(this).hide(); 102 }); 103 104 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 105 $('body').delegate('.ePlaceholder :input', 'focusin', function(){ 106 $(this).prev('span').hide(); 107 }); 108 109 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 110 $('body').delegate('.ePlaceholder :input', 'focusout', function(){ 111 if (this.value) { 112 $(this).prev('span').hide(); 113 } else { 114 $(this).prev('span').show(); 115 } 116 }); 117 118 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 119 function hasPlaceholderSupport() { 120 if ('placeholder' in document.createElement('input')) { 121 return true; 122 } else { 123 return false;
124 } 125 } 126}); 127 128/** 129 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 130 */ 131$(window).load(function() { 132 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 133 var $img = new Image(); 134 $img.onerror = function () { 135 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 136 } 137 $img.src = this.src; 138 }); 139}); 140 141/** 142 * tooltip 143 */ 144$('.eTooltip').each(function(i){ 145 $(this).find('.btnClose').attr('tabIndex','-1'); 146}); 147//tooltip input focus 148$('.eTooltip').find('input').focus(function() { 149 var targetName = returnTagetName(this); 150 targetName.siblings('.ec-base-tooltip').show(); 151}); 152$('.eTooltip').find('input').focusout(function() { 153 var targetName = returnTagetName(this); 154 targetName.siblings('.ec-base-tooltip').hide(); 155}); 156function returnTagetName(_this){ 157 var ePlacename = $(_this).parent().attr("class"); 158 var targetName; 159 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 160 targetName = $(_this).parents(); 161 }else{ 162 targetName = $(_this); 163 } 164 return targetName; 165} 166 167/** 168 * eTab 169 */ 170 $("body").delegate(".eTab a", "click", function(e){ 171 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 172 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 173 _target = $(this).attr("href"), 174 _siblings = $(_target).attr("class"), 175 _arr = _siblings.split(" "), 176 _classSiblings = "."+_arr[0]; 177 178 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 179 $(_target).show().siblings(_classSiblings).hide(); 180 181 182 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 183 e.preventDefault(); 184}); 185 186 187 188//window popup script 189function winPop(url) { 190 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 191} 192/** 193 * document.location.href split 194 * return array Param 195 */ 196function getQueryString(sKey) 197{ 198 var sQueryString = document.location.search.substring(1); 199 var aParam = {}; 200 201 if (sQueryString) { 202 var aFields = sQueryString.split("&"); 203 var aField = []; 204 for (var i=0; i<aFields.length; i++) { 205 aField = aFields[i].split('='); 206 aParam[aField[0]] = aField[1]; 207 } 208 } 209 210 aParam.page = aParam.page ? aParam.page : 1; 211 return sKey ? aParam[sKey] : aParam; 212}; 213 214$(document).ready(function(){ 215 // tab 216 $.eTab = function(ul){ 217 $(ul).find('a').click(function(){ 218 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 219 _target = $(this).attr('href'), 220 _siblings = '.' + $(_target).attr('class'); 221 $(_target).show().siblings(_siblings).hide(); 222 return false 223 }); 224 } 225 if ( window.call_eTab ) { 226 call_eTab(); 227 }; 228}); 229(function($){ 230$.fn.extend({ 231 center: function() { 232 this.each(function() { 233 var 234 $this = $(this), 235 $w = $(window); 236 $this.css({ 237 position: "absolute", 238 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 239 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 240 }); 241 }); 242 return this; 243 } 244}); 245$(function() { 246 var $container = function(){/* 247<div id="modalContainer"> 248 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 249</div>'); 250*/}.toString().slice(14,-3); 251 $('body') 252 .append($('<div id="modalBackpanel"></div>')) 253 .append($($container)); 254 function closeModal () { 255 $('#modalContainer').hide(); 256 $('#modalBackpanel').hide(); 257 } 258 $('#modalBackpanel').click(closeModal); 259 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 260 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 261 $('#modalContent').attr('src', $url); 262 $('#modalContent').bind("load",function(){ 263 $(".header .close",this.contentWindow.document.body).bind("click", closeModal); 264 }); 265 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 266 $('#modalContainer').center().show(); 267 } 268}); 269})(jQuery); 270$(document).ready(function(){ 271 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 272 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 273 var bShippingCountryProc = false;
274 275 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 276 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 277 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 278 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 279 } else { 280 $('.thumb .xans-layout-multishoplistitem').hide(); 281 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 282 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 283 var sShippingCountryValue = aShippingCountryCode[2]; 284 } 285 286 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 287 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 288 289 if (aHrefCountryValue.length == 2) { 290 var sShippingCountryValue = aHrefCountryValue[1]; 291 } 292 293 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 294 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 295 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 296 297 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 298 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 299 } 300 } 301 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 302 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 303 var bShippingCountryProc = true; 304 305 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 306 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 307 var expires = new Date(); 308 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 309 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 310 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 311 $("#f_country").val(sShippingCountryValue).change();; 312 } 313 } 314 } 315 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 316 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 317 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 318 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 319 } else { 320 $('.thumb .xans-layout-multishoplistitem').hide(); 321 } 322 323 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 324 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 325 $(".xans-layout-multishopshipping").hide(); 326 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 327 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 328 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 329 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 330 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 331 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 332 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 333 $(".xans-layout-multishopshipping").show(); 334 } 335 } 336 337 $(".xans-layout-multishopshipping .close").bind("click", function() { 338 $(".xans-layout-multishopshipping").hide(); 339 }); 340 341 $(".xans-layout-multishopshipping .ec-base-button a").bind("click", function() { 342 var expires = new Date(); 343 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 344 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 345 346 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
vendor: 4,732 bytes, lines 346-470
346ì ëê¹ 347 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 348 349 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 350 }); 351 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").bind("click", function() { 352 $(".xans-layout-multishopshipping").show(); 353 }); 354 } 355}); 356/* 357 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ 358 * 359 * Uses the built in easing capabilities added In jQuery 1.1 360 * to offer multiple easing options 361 * 362 * TERMS OF USE - jQuery Easing 363 * 364 * Open source under the BSD License. 365 * 366 * Copyright 짤 2008 George McGinley Smith 367 * All rights reserved. 368 * 369 * Redistribution and use in source and binary forms, with or without modification, 370 * are permitted provided that the following conditions are met: 371 * 372 * Redistributions of source code must retain the above copyright notice, this list of 373 * conditions and the following disclaimer. 374 * Redistributions in binary form must reproduce the above copyright notice, this list 375 * of conditions and the following disclaimer in the documentation and/or other materials 376 * provided with the distribution. 377 * 378 * Neither the name of the author nor the names of contributors may be used to endorse 379 * or promote products derived from this software without specific prior written permission. 380 * 381 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 382 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 383 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 384 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 385 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 386 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 387 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 388 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 389 * OF THE POSSIBILITY OF SUCH DAMAGE. 390 * 391*/ 392 393// t: current time, b: begInnIng value, c: change In value, d: duration 394jQuery.easing['jswing'] = jQuery.easing['swing']; 395 396jQuery.extend( jQuery.easing, 397{ 398 def: 'easeOutQuad', 399 swing: function (x, t, b, c, d) { 400 //alert(jQuery.easing.default); 401 return jQuery.easing[jQuery.easing.def](x, t, b, c, d); 402 }, 403 easeInQuad: function (x, t, b, c, d) { 404 return c*(t/=d)*t + b; 405 }, 406 easeOutQuad: function (x, t, b, c, d) { 407 return -c *(t/=d)*(t-2) + b; 408 }, 409 easeInOutQuad: function (x, t, b, c, d) { 410 if ((t/=d/2) < 1) return c/2*t*t + b; 411 return -c/2 * ((--t)*(t-2) - 1) + b; 412 }, 413 easeInCubic: function (x, t, b, c, d) { 414 return c*(t/=d)*t*t + b; 415 }, 416 easeOutCubic: function (x, t, b, c, d) { 417 return c*((t=t/d-1)*t*t + 1) + b; 418 }, 419 easeInOutCubic: function (x, t, b, c, d) { 420 if ((t/=d/2) < 1) return c/2*t*t*t + b; 421 return c/2*((t-=2)*t*t + 2) + b; 422 }, 423 easeInQuart: function (x, t, b, c, d) { 424 return c*(t/=d)*t*t*t + b; 425 }, 426 easeOutQuart: function (x, t, b, c, d) { 427 return -c * ((t=t/d-1)*t*t*t - 1) + b; 428 }, 429 easeInOutQuart: function (x, t, b, c, d) { 430 if ((t/=d/2) < 1) return c/2*t*t*t*t + b; 431 return -c/2 * ((t-=2)*t*t*t - 2) + b; 432 }, 433 easeInQuint: function (x, t, b, c, d) { 434 return c*(t/=d)*t*t*t*t + b; 435 }, 436 easeOutQuint: function (x, t, b, c, d) { 437 return c*((t=t/d-1)*t*t*t*t + 1) + b; 438 }, 439 easeInOutQuint: function (x, t, b, c, d) { 440 if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; 441 return c/2*((t-=2)*t*t*t*t + 2) + b; 442 }, 443 easeInSine: function (x, t, b, c, d) { 444 return -c * Math.cos(t/d * (Math.PI/2)) + c + b; 445 }, 446 easeOutSine: function (x, t, b, c, d) { 447 return c * Math.sin(t/d * (Math.PI/2)) + b; 448 }, 449 easeInOutSine: function (x, t, b, c, d) { 450 return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; 451 }, 452 easeInExpo: function (x, t, b, c, d) { 453 return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; 454 }, 455 easeOutExpo: function (x, t, b, c, d) { 456 return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; 457 }, 458 easeInOutExpo: function (x, t, b, c, d) { 459 if (t==0) return b; 460 if (t==d) return b+c; 461 if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; 462 return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; 463 }, 464 easeInCirc: function (x, t, b, c, d) { 465 return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; 466 }, 467 easeOutCirc: function (x, t, b, c, d) { 468 return c * Math.sqrt(1 - (t=t/d-1)*t) + b; 469 }, 470 easeInOutCirc: function (x, t, b, c, d) {
vendor: 5,405 bytes, lines 471-569
471 if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; 472 return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; 473 }, 474 easeInElastic: function (x, t, b, c, d) { 475 var s=1.70158;var p=0;var a=c; 476 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 477 if (a < Math.abs(c)) { a=c; var s=p/4; } 478 else var s = p/(2*Math.PI) * Math.asin (c/a); 479 return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 480 }, 481 easeOutElastic: function (x, t, b, c, d) { 482 var s=1.70158;var p=0;var a=c; 483 if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; 484 if (a < Math.abs(c)) { a=c; var s=p/4; } 485 else var s = p/(2*Math.PI) * Math.asin (c/a); 486 return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; 487 }, 488 easeInOutElastic: function (x, t, b, c, d) { 489 var s=1.70158;var p=0;var a=c; 490 if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); 491 if (a < Math.abs(c)) { a=c; var s=p/4; } 492 else var s = p/(2*Math.PI) * Math.asin (c/a); 493 if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; 494 return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; 495 }, 496 easeInBack: function (x, t, b, c, d, s) { 497 if (s == undefined) s = 1.70158; 498 return c*(t/=d)*t*((s+1)*t - s) + b; 499 }, 500 easeOutBack: function (x, t, b, c, d, s) { 501 if (s == undefined) s = 1.70158; 502 return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; 503 }, 504 easeInOutBack: function (x, t, b, c, d, s) { 505 if (s == undefined) s = 1.70158; 506 if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 507 return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 508 }, 509 easeInBounce: function (x, t, b, c, d) { 510 return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; 511 }, 512 easeOutBounce: function (x, t, b, c, d) { 513 if ((t/=d) < (1/2.75)) { 514 return c*(7.5625*t*t) + b; 515 } else if (t < (2/2.75)) { 516 return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; 517 } else if (t < (2.5/2.75)) { 518 return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; 519 } else { 520 return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; 521 } 522 }, 523 easeInOutBounce: function (x, t, b, c, d) { 524 if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; 525 return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; 526 } 527}); 528 529/* 530 * 531 * TERMS OF USE - EASING EQUATIONS 532 * 533 * Open source under the BSD License. 534 * 535 * Copyright 짤 2001 Robert Penner 536 * All rights reserved. 537 * 538 * Redistribution and use in source and binary forms, with or without modification, 539 * are permitted provided that the following conditions are met: 540 * 541 * Redistributions of source code must retain the above copyright notice, this list of 542 * conditions and the following disclaimer. 543 * Redistributions in binary form must reproduce the above copyright notice, this list 544 * of conditions and the following disclaimer in the documentation and/or other materials 545 * provided with the distribution. 546 * 547 * Neither the name of the author nor the names of contributors may be used to endorse 548 * or promote products derived from this software without specific prior written permission. 549 * 550 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 551 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 552 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 553 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 554 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 555 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 556 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 557 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 558 * OF THE POSSIBILITY OF SUCH DAMAGE. 559 * 560 */ 561/** 562* ì¹´í ê³ ë¦¬ìëìì± 563* ì ì : ì¹í¼ë¸ë¦(http://webpublic.co.kr) 564* ë²ì : 2.4 565* ìµì¢ ì ë°ì´í¸ : 2018.06.08 566* ëìì¸í¼ë¸ë¦ìì ê°ë°ë íë¬ê·¸ì¸ì¼ë¡ ë¬´ë¨ ë³µì /ì¬ì© íì¤ ì ììµëë¤ 567* 주ìì ê±° ì íë¬ê·¸ì¸ì ì¬ì©íì¤ ì ììµëë¤. 568*/ 569var _0x615b=["\x23\x63\x61\x74\x65\x67\x6F\x72\x79","\x2E\x63\x61\x74\x65\x2D\x6C\x69\x73\x74","\x65\x78\x74\x65\x6E\x64","\x69\x73\x4D\x61\x6B\x65\x43\x61\x74\x65\x4D\x65\x6E\x75","\x63\x61\x74\x65\x4D\x65\x6E\x75\x54\x61\x72\x67\x65\x74","\x69\x73\x4D\x61\x6B\x65\x41\x6C\x6C\x43\x61\x74\x65","\x61\x6C\x6C\x43\x61\x74\x65\x54\x61\x72\x67\x65\x74","\x2F\x65\x78\x65\x63\x2F\x66\x72\x6F\x6E\x74\x2F\x50\x72\x6F\x64\x75\x63\x74\x2F\x53\x75\x62\x43\x61\x74\x65\x67\x6F\x72\x79","\x6A\x73\x6F\x6E","\x6A\x64\x61\x74\x61","\x61\x6A\x61\x78","\x69\x6E\x69\x74","\x70\x72\x6F\x74\x6F\x74\x79\x70\x65","\x6D\x61\x6B\x65\x43\x61\x74\x65\x4D\x65\x6E\x75\x48\x74\x6D\x6C","\x6D\x61\x6B\x65\x41\x6C\x6C\x43\x61\x74\x65\x48\x74\x6D\x6C","\x68\x69\x64\x65\x5F\x63\x61\x74\x65\x5F\x6E\x6F","\x64\x61\x74\x61\x2D\x70\x61\x72\x61\x6D","\x61\x74\x74\x72","\x63\x61\x74\x65\x5F\x6E\x6F","\x67\x65\x74\x51\x75\x65\x72\x79\x53\x74\x72\x69\x6E\x67\x55\x72\x6C","\x6D\x61\x6B\x65\x43\x61\x74\x65\x4D\x65\x6E\x75\x43\x68\x69\x6C\x64\x4C\x69\x73\x74","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x27\x63\x6F\x6E\x74\x73\x27\x3E","\x3C\x2F\x64\x69\x76\x3E","\x61\x70\x70\x65\x6E\x64","\x2E\x62\x6F\x78","\x66\x69\x6E\x64","\x6
5695\x61\x63\x68","\x64\x6C","\x64\x61\x74\x61\x2D\x6D\x61\x6E\x75\x61\x6C","\x6F\x6E","\x72\x65\x6D\x6F\x76\x65","\x2E\x73\x75\x62\x2D\x63\x61\x74\x65\x67\x6F\x72\x79","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x73\x75\x62\x2D\x6C\x65\x66\x74\x22\x3E","\x70\x72\x65\x70\x65\x6E\x64","\x6C\x69","\x63\x68\x69\x6C\x64\x72\x65\x6E","","\x69\x73\x43\x68\x69\x6C\x64\x72\x65\x6E\x43\x61\x74\x65","\x3C\x75\x6C\x20\x63\x6C\x61\x73\x73\x3D\x27\x73\x75\x62\x30\x32\x20\x73\x75\x62\x30\x32\x5F","\x27\x3E","\x70\x61\x72\x65\x6E\x74\x5F\x63\x61\x74\x65\x5F\x6E\x6F","\x61\x72\x72\x6F\x77","\x3C\x6C\x69\x20\x63\x6C\x61\x73\x73\x3D\x22\x63\x61\x74\x65\x5F\x6E\x6F\x5F","\x20","\x22\x3E\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x2F","\x64\x65\x73\x69\x67\x6E\x5F\x70\x61\x67\x65\x5F\x75\x72\x6C","\x3F\x63\x61\x74\x65\x5F\x6E\x6F\x3D","\x22\x3E","\x6E\x61\x6D\x65","\x3C\x2F\x61\x3E","\x3C\x75\x6C\x20\x63\x6C\x61\x73\x73\x3D\x27\x73\x75\x62\x30\x33\x20\x73\x75\x62\x30\x33\x5F","\x3C\x75\x6C\x20\x63\x6C\x61\x73\x73\x3D\x27\x73\x75\x62\x30\x34\x20\x73\x75\x62\x30\x34\x5F","\x3C\x2F\x61\x3E\x3C\x2F\x6C\x69\x3E","\x3C\x2F\x75\x6C\x3E","\x3C\x2F\x6C\x69\x3E","\x3F","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x26","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x3D","\x70\x61\x67\x65"];var _self=null;var makeCateList=function(_0xaf5ex3){_self= this;var _0xaf5ex4={isMakeCateMenu:true,cateMenuTarget:_0x615b[0],isMakeAllCate:true,allCateTarget:_0x615b[1]};var _0xaf5ex5=jQuery[_0x615b[2]](_0xaf5ex4,_0xaf5ex3);this[_0x615b[3]]= _0xaf5ex5[_0x615b[3]];this[_0x615b[4]]= _0xaf5ex5[_0x615b[4]];this[_0x615b[5]]= _0xaf5ex5[_0x615b[5]];this[_0x615b[6]]= _0xaf5ex5[_0x615b[6]];$[_0x615b[10]]({url:_0x615b[7],cache:false,dataType:_0x615b[8],timeout:10000,async:false,beforeSend:function(){},error:function(_0xaf5ex6,_0xaf5ex7,_0xaf5ex8){return},success:function(_0xaf5ex9){_self[_0x615b[9]]= _0xaf5ex9}});this[_0x615b[11]]()};makeCateList[_0x615b[12]][_0x615b[11]]= function(){if(_self[_0x615b[3]]){this[_0x615b[13]]()};if(_self[_0x615b[5]]){this[_0x615b[14]]()}};makeCateList[_0x615b[12]][_0x615b[14]]= function(){var _0xaf5exa=this[_0x615b[9]];var _0xaf5exb=this[_0x615b[15]];var _0xaf5exc;$(this[_0x615b[6]])[_0x615b[25]](_0x615b[27])[_0x615b[26]](function(_0xaf5exd){var _0xaf5exe=$(this);var _0xaf5exf=_self[_0x615b[19]](_0xaf5exe[_0x615b[17]](_0x615b[16]),_0x615b[18]);if(!_0xaf5exf){return};_0xaf5exc= _self[_0x615b[20]](_0xaf5exf);if(!_0xaf5exc){return};var _0xaf5ex10=_0x615b[21]+ _0xaf5exc+ _0x615b[22];_0xaf5exe[_0x615b[25]](_0x615b[24])[_0x615b[23]](_0xaf5ex10)})};makeCateList[_0x615b[12]][_0x615b[13]]= function(){var _0xaf5exa=this[_0x615b[9]];var _0xaf5exb=this[_0x615b[15]];var _0xaf5exc;$(this[_0x615b[4]])[_0x615b[35]](_0x615b[34])[_0x615b[26]](function(_0xaf5exd){var _0xaf5exe=$(this);var _0xaf5exf=_self[_0x615b[19]](_0xaf5exe[_0x615b[17]](_0x615b[16]),_0x615b[18]);if(!_0xaf5exf){return};_0xaf5exc= _self[_0x615b[20]](_0xaf5exf);var _0xaf5ex11=_0xaf5exe[_0x615b[17]](_0x615b[28]);if(!_0xaf5exc&& _0xaf5ex11!= _0x615b[29]){_0xaf5exe[_0x615b[25]](_0x615b[31])[_0x615b[30]]();return};_0xaf5exe[_0x615b[25]](_0x615b[31])[_0x615b[33]](_0x615b[32]+ _0xaf5exc+ _0x615b[22])})};makeCateList[_0x615b[12]][_0x615b[20]]= function(_0xaf5ex12){var _0xaf5ex13=_0x615b[36];var _0xaf5exa=_self[_0x615b[9]];if(_self[_0x615b[37]](_0xaf5ex12)){_0xaf5ex13+= _0x615b[38]+ _0xaf5ex12+ _0x615b[39];$(_0xaf5exa)[_0x615b[26]](function(_0xaf5ex14){if(_0xaf5exa[_0xaf5ex14][_0x615b[40]]== _0xaf5ex12){var _0xaf5ex15=false;var _0xaf5ex16=_0x615b[36];if(_self[_0x615b[37]](_0xaf5exa[_0xaf5ex14][_0x615b[18]])){_0xaf5ex15= true;_0xaf5ex16= _0x615b[41]};_0xaf5ex13+= _0x615b[42]+ _0xaf5exa[_0xaf5ex14][_0x615b[18]]+ _0x615b[43]+ _0xaf5ex16+ _0x615b[44]+ _0xaf5exa[_0xaf5ex14][_0x615b[45]]+ _0x615b[46]+ _0xaf5exa[_0xaf5ex14][_0x615b[18]]+ _0x615b[47]+ _0xaf5exa[_0xaf5ex14][_0x615b[48]]+ _0x615b[49];if(_0xaf5ex15){_0xaf5ex13+= _0x615b[50]+ _0xaf5exa[_0xaf5ex14][_0x615b[18]]+ _0x615b[39];$(_0xaf5exa)[_0x615b[26]](function(_0xaf5ex17){if(_0xaf5exa[_0xaf5ex17][_0x615b[40]]== _0xaf5exa[_0xaf5ex14][_0x615b[18]]){var _0xaf5ex18=false;var _0xaf5ex19=_0x615b[36];if(_self[_0x615b[37]](_0xaf5exa[_0xaf5ex17][_0x615b[18]])){_0xaf5ex18= true;_0xaf5ex19= _0x615b[41]};_0xaf5ex13+= _0x615b[42]+ _0xaf5exa[_0xaf5ex17][_0x615b[18]]+ _0x615b[43]+ _0xaf5ex19+ _0x615b[44]+ _0xaf5exa[_0xaf5ex14][_0x615b[45]]+ _0x615b[46]+ _0xaf5exa[_0xaf5ex17][_0x615b[18]]+ _0x615b[47]+ _0xaf5exa[_0xaf5ex17][_0x615b[48]]+ _0x615b[49];if(_0xaf5ex18){_0xaf5ex13+= _0x615b[51]+ _0xaf5exa[_0xaf5ex17][_0x615b[18]]+ _0x615b[39];$(_0xaf5exa)[_0x615b[26]](function(_0xaf5ex1a){if(_0xaf5exa[_0xaf5ex1a][_0x615b[40]]== _0xaf5exa[_0xaf5ex17][_0x615b[18]]){_0xaf5ex13+= _0x615b[42]+ _0xaf5exa[_0xaf5ex1a][_0x615b[18]]+ _0x615b[44]+ _0xaf5exa[_0xaf5ex14][_0x615b[45]]+ _0x615b[46]+ _0xaf5exa[_0xaf5ex1a][_0x615b[18]]+ _0x615b[47]+ _0xaf5exa[_0xaf5ex1a][_0x615b[48]]+ _0x615b[52]}});_0xaf5ex13+= _0x615b[53]};_0xaf5ex13+= _0x615b[54]}});_0xaf5ex13+= _0x615b[53]};_0xaf5ex13+= _0x615b[54]}});_0xaf5ex13+= _0x615b[53];return _0xaf5ex13}};makeCateList[_0x615b[12]][_0x615b[37]]= function(_0xaf5ex1b){var _0xaf5exa=_self[_0x615b[9]];var _0xaf5ex1c=false;$(_0xaf5exa)[_0x615b[26]](function(_0xaf5ex14){if(_0xaf5exa[_0xaf5ex14][_0x615b[40]]== _0xaf5ex1b){_0xaf5ex1c= true}});return _0xaf5ex1c};makeCateList[_0x615b[12]][_0x615b[19]]= function(_0xaf5ex1d,_0xaf5ex1e){if(!_0xaf5ex1d){return};var _0xaf5ex1f=_0xaf5ex1d[_0x615b[57]](_0xaf5ex1d[_0x615b[56]](_0x615b[55])+ 1);var _0xaf5ex20={};if(_0xaf5ex1f){var _0xaf5ex21=_0xaf5ex1f[_0x615b[59]](_0x615b[58]);var _0xaf5ex22=[];for(var _0xaf5ex14=0;_0xaf5ex14< _0xaf5ex21[_0x615b[60]];_0xaf5ex14++){_0xaf5ex22= _0xaf5ex21[_0xaf5ex14][_0x615b[59]](_0x615b[61]);_0xaf5ex20[_0xaf5ex22[0]]= _0xaf5ex22[1]}};_0xaf5ex20[_0x615b[62]]= _0xaf5ex20[_0x615b[62]]?_0xaf5ex20[_0x615b[62]]:1;return _0xaf5ex1e?_0xaf5ex20[_0xaf5ex1e]:_0xaf5ex20}; 570var wpMakeCate = new makeCateList({cateMenuTarget:'#category > ul', isMakeAllCate : false}); 571 572 573 if (!String.prototype.includes) { 574 String.prototype.includes = function(search, start) { 575 'use strict'; 576 577 if (search instanceof RegExp) { 578 throw TypeError('first argument must not be a RegExp'); 579 } 580 if (start === undefined) { start = 0; } 581 return this.indexOf(search, start) !== -1; 582 }; 583 } 584/** 585 * WEBPULIC COMMON SCRIPT 586*/ 587 588$(window).scroll(function(){ 589 var scrollTop = parseInt($(this).scrollTop()); 590 591 if (!$('#prdDetail').length > 0) 592 { 593 var innerTop = $('#header .cate-wrap').offset().top; 594 if (scrollTop > innerTop){ 595 if (!$('#header').hasClass('fixed')) { 596 $('#header').addClass('fixed'); 597 var logoWidth = $('#header .cate-wrap .logo-img img').width(); 598 $('#header .cate-wrap .logo-img').css('marginRight',50); 599 $('#header .cate-wrap .logo-img').animate({ 600 width:logoWidth, 601 }, 300, 602 function(){ 603 $('#header .cate-wrap .logo-img').css('visibility','visible').animate({ 604 opacity:1, 605 }, 600); 606 }); 607 } 608 }else{ 609 if ($('#header').hasClass('fixed')) { 610 $('#header').removeClass('fixed'); 611 $('#header .cate-wrap .logo-img').stop().css({ 612 width : 0, 613 marginRight : 0, 614 opacity:0, 615 visibility:'hidden', 616 }); 617 } 618 } 619 } 620}); 621 622$(document).ready(function(){ 623 624 copyright(); 625 626 // ê²ìì°½ ìëìì± ë기 627 $('#keyword').attr('autocomplete','off'); 628 629 // 리뷰 그리ë ì¤ì 630 if (isReviewGridPage()){ 631 if (readCookie('gridTypePC')){ 632 $('.gridType dd').each(function(){ 633 $(this).removeClass('selected'); 634 }); 635 $('.gridType dd').each(function(){ 636 if ($(this).hasClass('g'+readCookie('gridTypePC'))){ 637 $(this).addClass('selected'); 638 } 639 }); 640 641 var target = $('.gridType').data('target'); 642 var grids = ['grid0', 'grid1', 'grid2', 'grid3', 'grid4'];
643 $(target).removeClass(grids.join(' ')); 644 $(target).addClass('grid'+readCookie('gridTypePC')); 645 } 646 } 647 648 // ì¹´í ê³ ë¦¬ ê²½ë¡ ì¬ì¤ì 649 $('.cate-override a').each(function(){ 650 var _self = $(this); 651 var cateNo = getQueryStringUrl('cate_no',$(this).attr('href')); 652 653 if (cateNo){ 654 $.each(setLink,function(i,v){ 655 if (parseInt(cateNo) == parseInt(i)){ 656 _self.attr('href',v); 657 } 658 }); 659 } 660 }); 661 662 // 리뷰 ê²½ë¡ ì¬ì¤ì 663 $('.boardlink a').each(function(){ 664 var href = $(this).attr('href'); 665 if (href.indexOf('?') > -1){ 666 if (getQueryStringUrl('board_no',href) == '4'){ 667 $(this).attr('href', href.replace('/product/', '/review/')); 668 } 669 }else{ 670 671 } 672 }) 673}); 674 675/************************************************************************************************************/ 676 677function copyright() { 678 if($("body").size) { 679 if($("body").attr("id") == "popup") { return ; } 680 style = 'padding:5px 10px; font-family:Verdana; font-size:11px; background:#eee; color: #555; border-radius:5px;font-style:italic'; 681 console.log('%c ** DESIGNED BY WEBPUBLIC (https://webpublic.co.kr) **', style); 682 } 683} 684 685function getQueryStringUrl(paramName, url) { 686 if (url){ 687 var sURL = url; 688 }else{ 689 var sURL = window.document.URL.toString(); 690 } 691 692 if (sURL.indexOf("?") > 0) 693 { 694 var arrParams = sURL.split("?"); 695 var arrURLParams = arrParams[1].split("&"); 696 var arrParamNames = new Array(arrURLParams.length); 697 var arrParamValues = new Array(arrURLParams.length); 698 var i = 0; 699 700 for (i=0;i<arrURLParams.length;i++) 701 { 702 var sParam = arrURLParams[i].split("="); 703 arrParamNames[i] = sParam[0]; 704 if (sParam[1] != "") 705 arrParamValues[i] = unescape(sParam[1]); 706 else 707 arrParamValues[i] = "No Value"; 708 } 709 710 for (i=0;i<arrURLParams.length;i++) 711 { 712 if(arrParamNames[i] == paramName){ 713 return arrParamValues[i]; 714 } 715 } 716 717 return null; 718 } 719}; 720 721function createCookie(name, value, days) { 722 var expires; 723 724 if (days) { 725 var date = new Date(); 726 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 727 expires = "; expires=" + date.toGMTString(); 728 } else { 729 expires = ""; 730 } 731 document.cookie = escape(name) + "=" + escape(value) + expires + "; path=/"; 732} 733 734function readCookie(name) { 735 var nameEQ = escape(name) + "="; 736 var ca = document.cookie.split(';'); 737 for (var i = 0; i < ca.length; i++) { 738 var c = ca[i]; 739 while (c.charAt(0) === ' ') c = c.substring(1, c.length); 740 if (c.indexOf(nameEQ) === 0) return unescape(c.substring(nameEQ.length, c.length)); 741 } 742 return null; 743} 744 745function eraseCookie(name) { 746 createCookie(name, "", -1); 747} 748 749// í ì¸ì¨ 750var discountRate = function(t, name){ 751 if (!t) t = ''; 752 if (!name) name = '.discount_rate'; 753 $(t + ' .custom').each(function(){ 754 var price = $(this).text().replace(/[^0-9]/g,''); 755 price = parseFloat(price); 756 757 if (price > 0) $(this).show(); 758 }); 759 760 $(t + ' ' + name).each(function(){ 761 var custom_price = parseInt($(this).attr('data-prod-custom').replace(/[^0-9]/g,'')); 762 var prod_price = parseInt($(this).attr('data-prod-price').replace(/[^0-9]/g,'')); 763 764 var rate = 0; 765 if (!isNaN(custom_price) && !isNaN(prod_price)) { 766 rate = Math.round((custom_price - prod_price) / custom_price * 100); 767 } 768 $(this).text(rate + ''); 769 770 var $ds = $(this); 771 772 $(this).parent().find('.spec li').each(function(){ 773 if ( $(this).find('.title span').text().trim() == 'í매ê°' ){ 774 $(this).append($ds); 775 } 776 }); 777 if (rate <= 0 || isNaN(rate)){ 778 $(this).hide(); 779 }else{ 780 $(this).show(); 781 } 782 }); 783} 784 785function pageScroll(d){ 786 if($('html, body').is(':animated')){return}; 787 788 if (d == 'up') { 789 $('html, body').stop().animate({scrollTop:0}, 'slow'); 790 } else if (d == 'down') { 791 var btmTop = $(document).height() - $(window).height(); 792 $('html, body').stop().animate({scrollTop:btmTop}, 'slow'); 793 } 794} 795// select wrapping 796//$('select').wrap('<div class="selectbox"></div>'); 797 798 799// ìì¸íì´ì§, ë¦¬ë·°ëª©ë¡ ì²´í¬ 800function isReviewGridPage(){ 801 if ($('meta[name="path_role"]').attr('content') == 'PRODUCT_DETAIL' 802 || location.pathname.indexOf('/review/list') > -1){ 803 return true; 804 }else{ 805 return false; 806 } 807} 808 809 810jQuery11(document).on('click','.gridType dd a',function(){ 811 var li = $(this).parent(); 812 var item = li.siblings(); 813 var target = $(this).closest('dl').data('target'); 814 815 if (target){ 816 if ($(target).length == 0) return; 817 }else{ 818 return; 819 } 820 821 $(item).each(function(){ 822 $(this).removeClass('selected'); 823 }); 824 825 li.addClass('selected'); 826 827 var $prdList = $(target); 828 var grids = ['grid0', 'grid1', 'grid2', 'grid3', 'grid4']; 829
830 $prdList.removeClass(grids.join(' ')); 831 832 if (li.hasClass('g0')){ 833 $prdList.addClass(grids[0]); 834 if (isReviewGridPage()) createCookie('gridTypePC', 0); 835 } 836 837 if (li.hasClass('g1')){ 838 $prdList.addClass(grids[1]); 839 if (isReviewGridPage()) createCookie('gridTypePC', 1); 840 } 841 842 if (li.hasClass('g2')){ 843 $prdList.addClass(grids[2]); 844 if (isReviewGridPage()) createCookie('gridTypePC', 2); 845 } 846 847 if (li.hasClass('g3')){ 848 $prdList.addClass(grids[3]); 849 if (isReviewGridPage()) createCookie('gridTypePC', 3); 850 } 851 852 if (li.hasClass('g4')){ 853 $prdList.addClass(grids[4]); 854 if (isReviewGridPage()) createCookie('gridTypePC', 4); 855 } 856}); 857 858 859/** 860* ìë¨ ë°°ë íë¬ê·¸ì¸ 861* ì ì : ì¹í¼ë¸ë¦(http://webpublic.co.kr) 862* ë²ì : 2.0 863* ìµì¢ ì ë°ì´í¸ : 2020.10.20 864* ëìì¸í¼ë¸ë¦ìì ê°ë°ë íë¬ê·¸ì¸ì¼ë¡ ë¬´ë¨ ë³µì /ì¬ì© íì¤ ì ììµëë¤ 865* 주ìì ê±° ì íë¬ê·¸ì¸ì ì¬ì©íì¤ ì ììµëë¤. 866*/ 867$(document).ready(function(){ 868 var tbanner = new Swiper('#tbanner',{ 869 direction: 'vertical', 870 speed: 500, 871 autoplay : { 872 delay:4500, 873 disableOnInteraction: false, 874 }, 875 loop:true, 876 grabCursor: true, 877 }); 878}); 879 880$(document).ready(function(){ 881 // ì¬ì´ë ë²í¼ ì¤í¬ë¡¤ì ë°©í¥ì ë°ë¥¸ show / hide 882 var hideLimit = 150; 883 884 $(window).scroll(function(){ 885 hasScrolled(); 886 }); 887 888 function hasScrolled() { 889 var st = $(window).scrollTop(); 890 if (st > hideLimit){ 891 $('.side_bnr_wrap').addClass('active'); 892 } else { 893 $('.side_bnr_wrap').removeClass('active'); 894 } 895 } 896 897 hasScrolled(); 898}); 899 900 901 902$(document).ready(function(){ 903 setTimeout(function(){ 904 $('#wrapper').removeClass('loading').css({ 905 visibility:'visible', 906 opacity:1, 907 }); 908 $('.mul13').addClass('inactive'); 909 },400); 910 911 jQuery11(document).on('transitionend','.mul13',function(){ 912 jQuery11(this).remove(); 913 }); 914});
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.