1$(function(){ 2 if($(".menuCategory > li").length==0){ 3 $(".menuCategory").hide(); 4 }; 5}); 6/** 7 * ì¡°ê±´ë³ ê²ì ê¸°ë¥ ì¤í¬ë¦½í¸ 8 */ 9$(function() 10{ 11 var sParentElement = 'select.SecondSelect'; 12 $('select.FirstSelect').on('change', function() 13 { 14 var iGroupNo = $(this).find('option:selected').val(); 15 if (iGroupNo > 0) { 16 $.ajax({ 17 url : '/product/provider/selectsearch.xml?GroupNo=' + iGroupNo, 18 dataType : 'text', 19 success : function(data){ 20 if ( window.DOMParser ) { 21 tmp = new DOMParser(); 22 xml = tmp.parseFromString( data , "text/xml" ); 23 } else { 24 xml = new ActiveXObject( "Microsoft.XMLDOM" ); 25 xml.async = "false"; 26 xml.loadXML( data ); 27 } 28 29 $(sParentElement).html(''); 30 getOptionElement('','-ì¸ë¶í목ì í-').appendTo(sParentElement); 31 var nodes = $(xml).find('searchkey'); 32 for ( var x = 0 ; x < nodes.length ; x++) { 33 getOptionElement($(nodes[x]).find('search_value').text(),$(nodes[x]).find('search_value').text()).appendTo(sParentElement); 34 } 35 } 36 }); 37 } 38 }); 39 $('a.SelectSearch').on('click', function() 40 { 41 var sGroup = $('select.FirstSelect').val(); 42 var sItem = $('select.SecondSelect').val(); 43 if (!sGroup) { 44 alert('ì¡°ê±´ì ì íí´ ì£¼ì¸ì.'); 45 return false; 46 } 47 if (!sItem) { 48 alert('ì¸ë¶ í목ì ì íí´ ì£¼ì¸ì.'); 49 return false; 50 } 51 location.href = document.location.href.split('?')[0].split(document.domain)[1] + '?' + sSSUrl + '&sGroup=' + sGroup + '&sItem=' + sItem; 52 }); 53 54 function getOptionElement(sVal, sTitle) 55 { 56 return $("<option value='" + sVal + "'>" + sTitle + "</option>"); 57 } 58}); 59/** 60 * ìì§ì´ë ë°°ë Jquery Plug-in 61 * @author cafe24 62 */ 63 64(function($){ 65 66 $.fn.floatBanner = function(options) { 67 options = $.extend({}, $.fn.floatBanner.defaults , options); 68 69 return this.each(function() { 70 var aPosition = $(this).position(); 71 var jbOffset = $(this).offset(); 72 var node = this; 73 74 $(window).on('scroll', function() { 75 var _top = $(document).scrollTop(); 76 _top = (aPosition.top < _top) ? _top : aPosition.top; 77 78 setTimeout(function () { 79 var newinit = $(document).scrollTop(); 80 81 if ( newinit > jbOffset.top ) { 82 _top -= jbOffset.top; 83 var container_height = $("#wrap").height(); 84 var quick_height = $(node).height(); 85 var cul = container_height - quick_height; 86 if(_top > cul){ 87 _top = cul; 88 } 89 } else { 90 _top = 0; 91 } 92 93 $(node).stop().animate({top: _top}, options.animate); 94 }, options.delay); 95 }); 96 }); 97 }; 98 99 $.fn.floatBanner.defaults = { 100 'animate' : 500, 101 'delay' : 500 102 }; 103 104})(jQuery); 105 106/** 107 * 문ì 구ëí ìì 108 */ 109$(function(){ 110 $('#banner:visible, #quick:visible').floatBanner(); 111 112 //placeholder 113 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 114 var placeholderName = $(this).parents().attr('title'); 115 $(this).attr("placeholder", placeholderName); 116 }); 117 /* placeholder ie8, ie9 */ 118 $.fn.extend({ 119 placeholder : function() { 120 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 121 if (hasPlaceholderSupport() === true) { 122 return this; 123 } 124 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 125 return this.each(function(){ 126 var findThis = $(this); 127 var sPlaceholder = findThis.attr('placeholder'); 128 if ( ! sPlaceholder) { 129 return; 130 } 131 findThis.wrap('<label class="ePlaceholder" />'); 132 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 133 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 134 this.onpropertychange = function(e){ 135 e = event || e; 136 if (e.propertyName == 'value') { 137 $(this).trigger('focusout'); 138 } 139 }; 140 //ê³µíµ class 141 var agent = navigator.userAgent.toLowerCase(); 142 if (agent.indexOf("msie") != -1) { 143 $(".ePlaceholder").css({"position":"relative"}); 144 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 145 $(".ePlaceholder label").css({"padding":"0"}); 146 } 147 }); 148 } 149 }); 150 151 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 152 153 //í´ë¦íë©´ placeholder ì¨ê¹ 154 $('body').on('click', '.ePlaceholder span', function(){ 155 $(this).hide(); 156 }); 157 158 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 159 $('body').on('focusin', '.ePlaceholder :input', function(){ 160 $(this).prev('span').hide(); 161 }); 162 163 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 164 $('body').on('focusout', '.ePlaceholder :input', function(){ 165 if (this.value) { 166 $(this).prev('span').hide(); 167 } else { 168 $(this).prev('span').show(); 169 } 170 }); 171 172 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 173 function hasPlaceholderSupport() { 174 if ('placeholder' in document.createElement('input')) { 175 return true; 176 } else { 177 return false;
178 } 179 } 180}); 181 182/** 183 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 184 */ 185$(window).on('load', function() { 186 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 187 var $img = new Image(); 188 $img.onerror = function () { 189 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 190 } 191 $img.src = this.src; 192 }); 193}); 194 195/** 196 * tooltip 197 */ 198$('.eTooltip').each(function(i){ 199 $(this).find('.btnClose').attr('tabIndex','-1'); 200}); 201//tooltip input focus 202$('.eTooltip').find('input').on('focus', function() { 203 var targetName = returnTagetName(this); 204 targetName.siblings('.ec-base-tooltip').show(); 205}); 206$('.eTooltip').find('input').on('focusout', function() { 207 var targetName = returnTagetName(this); 208 targetName.siblings('.ec-base-tooltip').hide(); 209}); 210function returnTagetName(_this){ 211 var ePlacename = $(_this).parent().attr("class"); 212 var targetName; 213 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 214 targetName = $(_this).parents(); 215 }else{ 216 targetName = $(_this); 217 } 218 return targetName; 219} 220 221/** 222 * eTab 223 */ 224$("body").on("click", ".eTab a", function(e){ 225 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 226 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 227 _target = $(this).attr("href"), 228 _siblings = $(_target).attr("class"), 229 _arr = _siblings.split(" "), 230 _classSiblings = "."+_arr[0]; 231 232 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 233 $(_target).show().siblings(_classSiblings).hide(); 234 235 236 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 237 e.preventDefault(); 238}); 239 240 241 242'use strict'; 243 244/** 245 * Copyright Marc J. Schmidt. See the LICENSE file at the top-level 246 * directory of this distribution and at 247 * https://github.com/marcj/css-element-queries/blob/master/LICENSE. 248 */ 249(function (root, factory) { 250 if (typeof define === "function" && define.amd) { 251 define(factory); 252 } else if (typeof exports === "object") { 253 module.exports = factory(); 254 } else { 255 root.ResizeSensor = factory(); 256 } 257}(typeof window !== 'undefined' ? window : this, function () { 258 259 // Make sure it does not throw in a SSR (Server Side Rendering) situation 260 if (typeof window === "undefined") { 261 return null; 262 } 263 // https://github.com/Semantic-Org/Semantic-UI/issues/3855 264 // https://github.com/marcj/css-element-queries/issues/257 265 var globalWindow = typeof window != 'undefined' && window.Math == Math 266 ? window 267 : typeof self != 'undefined' && self.Math == Math 268 ? self 269 : Function('return this')(); 270 // Only used for the dirty checking, so the event callback count is limited to max 1 call per fps per sensor. 271 // In combination with the event based resize sensor this saves cpu time, because the sensor is too fast and 272 // would generate too many unnecessary events. 273 var requestAnimationFrame = globalWindow.requestAnimationFrame || 274 globalWindow.mozRequestAnimationFrame || 275 globalWindow.webkitRequestAnimationFrame || 276 function (fn) { 277 return globalWindow.setTimeout(fn, 20); 278 }; 279 280 /** 281 * Iterate over each of the provided element(s). 282 * 283 * @param {HTMLElement|HTMLElement[]} elements 284 * @param {Function} callback 285 */ 286 function forEachElement(elements, callback){ 287 var elementsType = Object.prototype.toString.call(elements); 288 var isCollectionTyped = ('[object Array]' === elementsType 289 || ('[object NodeList]' === elementsType) 290 || ('[object HTMLCollection]' === elementsType) 291 || ('[object Object]' === elementsType) 292 || ('undefined' !== typeof jQuery && elements instanceof jQuery) //jquery 293 || ('undefined' !== typeof Elements && elements instanceof Elements) //mootools 294 ); 295 var i = 0, j = elements.length; 296 if (isCollectionTyped) { 297 for (; i < j; i++) { 298 callback(elements[i]); 299 } 300 } else { 301 callback(elements); 302 } 303 } 304 305 /** 306 * Get element size 307 * @param {HTMLElement} element 308 * @returns {Object} {width, height} 309 */ 310 function getElementSize(element) { 311 if (!element.getBoundingClientRect) { 312 return { 313 width: element.offsetWidth, 314 height: element.offsetHeight 315 } 316 } 317 318 var rect = element.getBoundingClientRect(); 319 return { 320 width: Math.round(rect.width), 321 height: Math.round(rect.height) 322 } 323 } 324 325 /** 326 * Apply CSS styles to element. 327 * 328 * @param {HTMLElement} element 329 * @param {Object} style 330 */ 331 function setStyle(element, style) { 332 Object.keys(style).forEach(function(key) { 333 element.style[key] = style[key]; 334 }); 335 } 336 337 /** 338 * Class for dimension change detection. 339 * 340 * @param {Element|Element[]|Elements|jQuery} element 341 * @param {Function} callback 342 * 343 * @constructor 344 */ 345 var ResizeSensor = function(element, callback) { 346 /** 347 * 348 * @constructor 349 */ 350 function EventQueue() { 351 var q = []; 352 this.add = function(ev) { 353 q.push(ev); 354 }; 355 356 var i, j; 357 this.call = function(sizeInfo) { 358 for (i = 0, j = q.length; i < j; i++) { 359 q[i].call(this, sizeInfo); 360 } 361 }; 362 363 this.remove = function(ev) { 364 var newQueue = []; 365 for(i = 0, j = q.length; i < j; i++) { 366 if(q[i] !== ev) newQueue.push(q[i]); 367 } 368 q = newQueue; 369 }; 370 371 this.length = function() { 372 return q.length; 373 } 374 } 375 376 /** 377 * 378 * @param {HTMLElement} element 379 * @param {Function} resized 380 */ 381 function attachResizeEvent(element, resized) { 382 if (!element) return; 383 if (element.resizedAttached) { 384 element.resizedAttached.add(resized); 385 return; 386 } 387 388 element.resizedAttached = new EventQueue(); 389 element.resizedAttached.add(resized); 390 391 element.resizeSensor = document.createElement('div'); 392 element.resizeSensor.dir = 'ltr'; 393 element.resizeSensor.className = 'resize-sensor'; 394 395 var style = { 396 pointerEvents: 'none', 397 position: 'absolute', 398 left: '0px', 399 top: '0px', 400 right: '0px', 401 bottom: '0px', 402 overflow: 'hidden', 403 zIndex: '-1', 404 visibility: 'hidden', 405 maxWidth: '100%' 406 }; 407 var styleChild = { 408 position: 'absolute', 409 left: '0px', 410 top: '0px', 411 transition: '0s', 412 }; 413 414 setStyle(element.resizeSensor, style); 415 416 var expand = document.createElement('div'); 417 expand.className = 'resize-sensor-expand'; 418 setStyle(expand, style); 419 420 var expandChild = document.createElement('div'); 421 setStyle(expandChild, styleChild); 422 expand.appendChild(expandChild); 423 424 var shrink = document.createElement('div'); 425 shrink.className = 'resize-sensor-shrink'; 426 setStyle(shrink, style); 427 428 var shrinkChild = document.createElement('div'); 429 setStyle(shrinkChild, styleChild); 430 setStyle(shrinkChild, { width: '200%', height: '200%' }); 431 shrink.appendChild(shrinkChild); 432 433 element.resizeSensor.appendChild(expand); 434 element.resizeSensor.appendChild(shrink); 435 element.appendChild(element.resizeSensor); 436 437 var computedStyle = window.getComputedStyle(element); 438 var position = computedStyle ? computedStyle.getPropertyValue('position') : null; 439 if ('absolute' !== position && 'relative' !== position && 'fixed' !== position) { 440 element.style.position = 'relative'; 441 } 442 443 var dirty, rafId; 444 var size = getElementSize(element); 445 var lastWidth = 0; 446 var lastHeight = 0; 447 var initialHiddenCheck = true; 448 var lastAnimationFrame = 0; 449 450 var resetExpandShrink = function () { 451 var width = element.offsetWidth; 452 var height = element.offsetHeight; 453 454 expandChild.style.width = (width + 10) + 'px'; 455 expandChild.style.height = (height + 10) + 'px'; 456 457 expand.scrollLeft = width + 10; 458 expand.scrollTop = height + 10; 459 460 shrink.scrollLeft = width + 10; 461 shrink.scrollTop = height + 10; 462 }; 463 464 var reset = function() { 465 // Check if element is hidden 466 if (initialHiddenCheck) { 467 var invisible = element.offsetWidth === 0 && element.offsetHeight === 0; 468 if (invisible) { 469 // Check in next frame 470 if (!lastAnimationFrame){ 471 lastAnimationFrame = requestAnimationFrame(function(){ 472 lastAnimationFrame = 0; 473 474 reset(); 475 }); 476 } 477 478 return; 479 } else { 480 // Stop checking 481 initialHiddenCheck = false;
482 } 483 } 484 485 resetExpandShrink(); 486 }; 487 element.resizeSensor.resetSensor = reset; 488 489 var onResized = function() { 490 rafId = 0; 491 492 if (!dirty) return; 493 494 lastWidth = size.width; 495 lastHeight = size.height; 496 497 if (element.resizedAttached) { 498 element.resizedAttached.call(size); 499 } 500 }; 501 502 var onScroll = function() { 503 size = getElementSize(element); 504 dirty = size.width !== lastWidth || size.height !== lastHeight; 505 506 if (dirty && !rafId) { 507 rafId = requestAnimationFrame(onResized); 508 } 509 510 reset(); 511 }; 512 513 var addEvent = function(el, name, cb) { 514 if (el.attachEvent) { 515 el.attachEvent('on' + name, cb); 516 } else { 517 el.addEventListener(name, cb); 518 } 519 }; 520 521 addEvent(expand, 'scroll', onScroll); 522 addEvent(shrink, 'scroll', onScroll); 523 524 // Fix for custom Elements 525 requestAnimationFrame(reset); 526 } 527 528 forEachElement(element, function(elem){ 529 attachResizeEvent(elem, callback); 530 }); 531 532 this.detach = function(ev) { 533 ResizeSensor.detach(element, ev); 534 }; 535 536 this.reset = function() { 537 element.resizeSensor.resetSensor(); 538 }; 539 }; 540 541 ResizeSensor.reset = function(element) { 542 forEachElement(element, function(elem){ 543 elem.resizeSensor.resetSensor(); 544 }); 545 }; 546 547 ResizeSensor.detach = function(element, ev) { 548 forEachElement(element, function(elem){ 549 if (!elem) return; 550 if(elem.resizedAttached && typeof ev === "function"){ 551 elem.resizedAttached.remove(ev); 552 if(elem.resizedAttached.length()) return; 553 } 554 if (elem.resizeSensor) { 555 if (elem.contains(elem.resizeSensor)) { 556 elem.removeChild(elem.resizeSensor); 557 } 558 delete elem.resizeSensor; 559 delete elem.resizedAttached; 560 } 561 }); 562 }; 563 564 if (typeof MutationObserver !== "undefined") { 565 var observer = new MutationObserver(function (mutations) { 566 for (var i in mutations) { 567 if (mutations.hasOwnProperty(i)) { 568 var items = mutations[i].addedNodes; 569 for (var j = 0; j < items.length; j++) { 570 if (items[j].resizeSensor) { 571 ResizeSensor.reset(items[j]); 572 } 573 } 574 } 575 } 576 }); 577 578 document.addEventListener("DOMContentLoaded", function (event) { 579 observer.observe(document.body, { 580 childList: true, 581 subtree: true, 582 }); 583 }); 584 } 585 586 return ResizeSensor; 587 588})); 589 590/* 591 Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net 592*/ 593(function(){var b,f;b=this.$||window.$;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k)); 594if(!g.length)throw"failed to find stick parent";v=m=!1;(h=null!=p?p&&a.closest(p):b("<div />"))&&h.css("position",a.css("position"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),d=parseInt(g.css("padding-bottom"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q, 595u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom"))),e<F&&(m=!1,c=q,null==p&&("left"!==r&&"right"!==r||a.insertAfter(h), 596h.detach()),b={position:"",width:"",top:""},a.css(b).removeClass(t).trigger("sticky_kit:unstick")),B&&(b=f.height(),u+q>b&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+"px"})))):e>F&&(m=!0,b={position:"fixed",top:c},b.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(b).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+c>
596C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}), 597a.css({position:"absolute",bottom:d,top:"auto"}).trigger("sticky_kit:bottom")},y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);b(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize", 598y),b(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,0)}};n=0;for(K=this.length;n<K;n++)d=this[n],J(b(d));return this}}).call(this); 599EC$(function($) { 600 var filter = "win16|win32|win64|mac|macintel"; 601 var device = "pc"; 602 if (navigator.platform) { 603 if (filter.indexOf(navigator.platform.toLowerCase()) < 0) { device = "mobile"; } 604 } 605 606 /** 607 * ìíìì¸, ìí íë보기(íì ) - ìë¹ìê° í ì¸íì */ 608 var oPriceInfoEl = $('#ec-product-price-info'); 609 if (oPriceInfoEl.length > 0) { 610 var salePriceEl = $('#span_product_price_text'); 611 percentageCul(oPriceInfoEl, salePriceEl); 612 } 613 614 /** 615 * ìí목ë¡/ë©ì¸ì§ì´ - ìë¹ìê° í ì¸íì*/ 616 var mainEl = $("#main"); 617 if (mainEl.length > 0) { 618 var productListEl = $('.xans-product-listmain, .xans-product-listrecommend, .xans-product-listnew, .xans-product-listnormal'); 619 for (var i = 0; i < productListEl.length; i++) { 620 var prdListEl = productListEl.eq(i).find('.prdList > li'); 621 for (var j = 0; j < prdListEl.length; j++) { 622 var priceEl = prdListEl.eq(j).find('.description'), 623 salePriceEl = priceEl.find('.xans-product > li').eq(1).find('span:eq(1)'); 624 625 if (device == "mobile") { 626 salePriceEl = priceEl.find('.spec >li.price'); 627 } 628 percentageCul(priceEl, salePriceEl); 629 } 630 } 631 } 632 633 634 635 function percentageCul(target, salePriceEl) { 636 var iCustomPrice = parseInt(target.attr('ec-data-custom').replace(",", "")); // ê²ìíì´ì§ìì ì¼í ìì - ì í 637 var iPrice = parseInt(target.attr('ec-data-price').replace(",", "")); // ê²ìíì´ì§ìì ì¼í ìì - ì í 638 var sDisplayAmount = 'p', // p:í ì¸ì¨, w:í ì¸ê¸ì¡ 639 iOfftoFixed = 0, // í ì¸ì¨ ììì ì릿ì 640 sSaleText = '', 641 regexp = /B(?=(d{3})+(?!d))/g; 642 643 if (iCustomPrice > 0 && iPrice > 0 && iPrice != iCustomPrice) { 644 if (sDisplayAmount == 'p') { 645 sSaleText = (((iCustomPrice - iPrice) / iCustomPrice) * 100).toFixed(iOfftoFixed) + '%'; 646 } else if (sDisplayAmount == 'w') { 647 sSaleText = parseInt(iCustomPrice - iPrice).toString().replace(regexp, ',') + 'ì OFF'; 648 } 649 salePriceEl.append("<div class='ec-sale-rate'>" + sSaleText + "</span>"); 650 } 651 } 652 // setTimeout(function(){ 653 // sale_percent(); 654 // }, 300); 655}); 656//window popup script 657function winPop(url) { 658 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 659} 660/** 661 * document.location.href split 662 * return array Param 663 */ 664function getQueryString(sKey) 665{ 666 var sQueryString = document.location.search.substring(1); 667 var aParam = {}; 668 669 if (sQueryString) { 670 var aFields = sQueryString.split("&"); 671 var aField = []; 672 for (var i=0; i<aFields.length; i++) { 673 aField = aFields[i].split('='); 674 aParam[aField[0]] = aField[1]; 675 } 676 } 677 678 aParam.page = aParam.page ? aParam.page : 1; 679 return sKey ? aParam[sKey] : aParam; 680}; 681 682$(function(){ 683 // tab 684 $.eTab = function(ul){ 685 $(ul).find('a').on('click', function(){ 686 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 687 _target = $(this).attr('href'), 688 _siblings = '.' + $(_target).attr('class'); 689 $(_target).show().siblings(_siblings).hide(); 690 return false 691 }); 692 } 693 if ( window.call_eTab ) { 694 call_eTab(); 695 }; 696}); 697!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exp
vendor: 6,931 bytes, line 697
697orts.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(1),a=(o(r),n(6)),u=o(a),c=n(7),f=o(c),s=n(8),d=o(s),l=n(9),p=o(l),m=n(10),b=o(m),v=n(11),y=o(v),g=n(14),h=o(g),w=[],k=!1,x=document.all&&!window.atob,j={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},O=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&(k=!0),k)return w=(0,y.default)(w,j),(0,b.default)(w,j.once),w},_=function(){w=(0,h.default)(),O()},S=function(){w.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})},z=function(e){return e===!0||"mobile"===e&&p.default.mobile()||"phone"===e&&p.default.phone()||"tablet"===e&&p.default.tablet()||"function"==typeof e&&e()===!0},A=function(e){return j=i(j,e),w=(0,h.default)(),z(j.disable)||x?S():(document.querySelector("body").setAttribute("data-aos-easing",j.easing),document.querySelector("body").setAttribute("data-aos-duration",j.duration),document.querySelector("body").setAttribute("data-aos-delay",j.delay),"DOMContentLoaded"===j.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?O(!0):"load"===j.startEvent?window.addEventListener(j.startEvent,function(){O(!0)}):document.addEventListener(j.startEvent,function(){O(!0)}),window.addEventListener("resize",(0,f.default)(O,j.debounceDelay,!0)),window.addEventListener("orientationchange",(0,f.default)(O,j.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,b.default)(w,j.once)},j.throttleDelay)),j.disableMutationObserver||(0,d.default)("[data-aos]",_),w)};e.exports={init:A,refresh:O,refreshHard:_}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=b,o=v;return b=v=void 0,k=t,g=e.apply(o,n)}function r(e){return k=e,h=setTimeout(s,t),_?o(e):g}function a(e){var n=e-w,o=e-k,i=t-n;return S?j(i,y-o):i}function c(e){var n=e-w,o=e-k;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=O();return c(e)?d(e):void(h=setTimeout(s,a(e)))}function d(e){return h=void 0,z&&b?o(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),k=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(O())}function m(){var e=O(),n=c(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),o(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,k=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(f);return t=u(t)||0,i(n)&&(_=!!n.leading,S="maxWait"in n,y=S?x(u(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e,t,o){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(f);return i(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}function i(e){var t="undefined"==typeof e?"undefined":c(e);return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==("undefined"==typeof e?"undefined":c(e))}function a(e){return"symbol"==("undefined"==typeof e?"undefined":c(e))||r(e)&&k.call(e)==d}function u(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=m.test(e);return n||b.test(e)?v(e.slice(2),n?2:8):p.test(e)?s:+e}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f="Expected a function",s=NaN,d="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,b=/^0o[0-7]+$/i,v=parseInt,y="object"==("undefined"==typeof t?"undefined":c(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,h=y||g||Function("return this")(),w=Object.prototype,k=w.toString,x=Math.max,j=Math.min,O=function(){return h.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function i(t){var n=b,o=v;return b=v=void 0,O=t,g=e.apply(o,n)}function r(e){return O=e,h=setTimeout(s,t),_?i(e):g}function u(e){var n=e-w,o=e-O,i=t-n;return S?x(i,y-o):i}function f(e){var n=e-w,o=e-O;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=j();return f(e)?d(e):void(h=setTimeout(s,u(e)))}function d(e){return h=void 0,z&&b?i(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),O=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(j())}function m(){var e=j(),n=f(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),i(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,O=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(c);return t=a(t)||0,o(n)&&(_=!!n.leading,S="maxWait"in n,y=S?k(a(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e){var t="undefined"==typeof e?"undefined":u(e);return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==("undefined"==typeof e?"undefined":u(e))}function r(e){return"symbol"==("undefined"==typeof e?"undefined":u(e))||i(e)&&w.call(e)==s}function a(e){if("number"==typeof e)return e;if(r(e))return f;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=p.test(e);return n||m.test(e)?b(e.slice(2),n?2:8):l.test(e)?f:+e}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="Expected a function",f=NaN,s="[object Symbol]",d=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt,v="object"==("undefined"==typeof t?"undefined":u(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,g=v||y||Function("return this")(),h=Object.prototype,w=h.toString,k=Math.max,x=Math.min,j=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t){var n=new r(o);a=t,n.observe(i.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function o(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes
697),o=t.concat(n).filter(function(e){return e.hasAttribute&&e.hasAttribute("data-aos")}).length;o&&a()})}Object.defineProperty(t,"__esModule",{value:!0});var i=window.document,r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,a=function(){};t.default=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,u=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
697sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,f=function(){function e(){n(this,e)}return i(e,[{key:"phone",value:function(){var e=o();return!(!r.test(e)&&!a.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=o();return!(!u.test(e)&&!c.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t.default=new f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n){var o=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):"undefined"!=typeof o&&("false"===o||!n&&"true"!==o)&&e.node.classList.remove("aos-animate")},o=function(e,t){var o=window.pageYOffset,i=window.innerHeight;e.forEach(function(e,r){n(e,i+o,t)})};t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=o(i),a=function(e,t){return e.forEach(function(e,n){e.node.classList.add("aos-init"),e.position=(0,r.default)(e.node,t.offset)}),e};t.default=a},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=o(i),a=function(e,t){var n=0,o=0,i=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(o=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,r.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=i/2;break;case"bottom-center":n+=i/2+e.offsetHeight;break;case"center-center":n+=i/2+e.offsetHeight/2;break;case"top-top":n+=i;break;case"bottom-top":n+=e.offsetHeight+i;break;case"center-top":n+=e.offsetHeight/2+i}return a.anchorPlacement||a.offset||isNaN(t)||(o=t),n+o};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,function(e){return{node:e}})};t.default=n}])}); 698(function($){ 699 $.fn.extend({ 700 center: function() { 701 this.each(function() { 702 var 703 $this = $(this), 704 $w = $(window); 705 $this.css({ 706 position: "absolute", 707 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 708 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 709 }); 710 }); 711 return this; 712 } 713 }); 714 $(function() { 715 var $container = function(){/* 716 <div id="modalContainer"> 717 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 718 </div>'); 719 */}.toString().slice(14,-3); 720 $('body') 721 .append($('<div id="modalBackpanel"></div>')) 722 .append($($container)); 723 function closeModal () { 724 $('#modalContainer').hide(); 725 $('#modalBackpanel').hide(); 726 } 727 $('#modalBackpanel').on('click',closeModal); 728 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 729 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 730 $('#modalContent').attr('src', $url); 731 $('#modalContent').on("load",function(){ 732 $(".header .close",this.contentWindow.document.body).on("click", closeModal); 733 }); 734 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 735 $('#modalContainer').center().show(); 736 } 737 }); 738})(jQuery); 739 740$(document).ready(function() { 741 var oldHeight = 0; 742 AOS.init({ 743 // Global settings: 744 disable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function 745 startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on 746 initClassName: 'aos-init', // class applied after initialization 747 animatedClassName: 'aos-animate', // class applied on animation 748 useClassNames: false, // if true, will add content of `data-aos` as classes on scroll 749 disableMutationObserver: false, // disables automatic mutations' detections (advanced) 750 debounceDelay: 50, // the delay on debounce used while resizing window (advanced) 751 throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced) 752 753 754 // Settings that can be overridden on per-element basis, by `data-aos-*` attributes: 755 offset: 180, // offset (in px) from the original trigger point 756 delay: 0, // values from 0 to 3000, with step 50ms 757 duration: 400, // values from 0 to 3000, with step 50ms 758 easing: 'ease', // default easing for AOS animations 759 once: false, // whether animation should happen only once - while scrolling down 760 mirror: false, // whether elements should animate out while scrolling past them 761 anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation 762 }); 763 AOS.refresh(); 764 setTimeout("AOS.refresh()", 1000); 765 setTimeout("AOS.refresh()", 2000); 766 767 for (var i = 0; i < $("#contents .listype .prdList > li").length; i++) { 768 var userPrice; 769 for (var j = 0; j < $("#contents .listype .prdList > li:eq("+i+") .spec > li").length; j++) { 770 771 var text = $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") .title > span").text(); 772 773 774 if(text == "ìë¹ìê°"){ 775 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("userPrice"); 776 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("userPrice"); 777 userPrice = $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") > span").text(); 778 }else if(text == "í매ê°"){ 779 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("basePrice"); 780 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("basePrice"); 781 if(userPrice == $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") > strong + span").text()){ 782 $("#contents .listype .prdList > li:eq("+i+")").addClass("samePrice"); 783 } 784 }else if(text == " í ì¸ê°" || text == "í ì¸í매ê°" || text == "ì¼ë°íì í ì¸ê°"){ 785 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("discountPrice"); 786 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("discountPrice"); 787 }else if(text == "ìµì í ì¸ê°"){ 788 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("totalPrice"); 789 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("totalPrice"); 790 }else if(text == "ë¸ëë"){ 791 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("brand"); 792 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("brand"); 793 }else if(text == "ìíìì"){ 794 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("color"); 795 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("color"); 796 }else if(text == "ì¬ì©í기"){ 797 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("review"); 798 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("review"); 799 }else if(text == "ìíìì½ì ë³´"){ 800 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("summary"); 801 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("summary"); 802 }else if(text == "í´ìíê·¸"){ 803 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("hashtag"); 804 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("hashtag"); 805 }else if(text == "ìíê°ëµì¤ëª "){ 806 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("description"); 807 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("description"); 808 } 809 } 810 } 811 812 $("#file1").on('change',function(){ 813 var fileName = $("#file1").val(); 814 fileName = fileName.replace(/^.*[\\\/]/, ''); 815 $(".upload-name1").val(fileName); 816 }); 817 $("#file2").on('change',function(){ 818 var fileName = $("#file2").val(); 819 fileName = fileName.replace(/^.*[\\\/]/, ''); 820 $(".upload-name2").val(fileName); 821 }); 822 $("#file3").on('change',function(){ 823 var fileName = $("#file3").val(); 824 fileName = fileName.replace(/^.*[\\\/]/, ''); 825 $(".upload-name3").val(fileName); 826 }); 827 $("#file4").on('change',function(){ 828 var fileName = $("#file4").val(); 829 fileName = fileName.replace(/^.*[\\\/]/, ''); 830 $(".upload-name4").val(fileName); 831 }); 832 833 // $("#contents .cs_productlist ul").addClass("cmp_slide"); 834 // $("#contents .cs_productlist ul").addClass("owl-carousel"); 835 836 // var productlist_slide = $('#contents .cs_productlist .cmp_slide'); 837 // productlist_slide.owlCarousel({ 838 // items: 4, 839 // loop: true, 840 // nav: false, 841 // center: false, 842 // mouseDrag:true, 843 // touchDrag:true, 844 // callbacks: true, 845 // autoplay:true, 846 // margin:0, 847 // autoplayTimeout:5000, 848 // autoplayHoverPause:false 849 // }); 850 851 var scTop = $(this).scrollTop(); 852 853 $( window ).resize(function() { 854 scTop = $(this).scrollTop(); 855 calHeight(); 856 AOS.refresh(); 857 setTimeout("AOS.refresh()", 1000); 858 calTop(scTop); 859 if($("#contents.c_sub .cs_detail").length){ 860 if(!($('#contents.c_sub .cs_detail .csd_box.t2').css('position') == 'fixed')){ 861 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 862 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 863 } 864 } 865 }); 866 867 $(window).scroll(function(){ 868 scTop = $(this).scrollTop(); 869 calTop(scTop); 870 if(scTop > 0){ 871 $("#aside").addClass("on"); 872 }else { 873 $("#aside").removeClass("on"); 874 } 875 if($("#contents.c_sub .cs_detail").length){ 876 if(oldHeight != $('#contents.c_sub .cs_detail .csd_box.t2').height()){ 877 $("#contents.c_sub .cs_detail .csd_box.t2").css("position","fixed"); 878 $("#contents.c_sub .cs_detail .csd_box.t2").css("bottom","0px"); 879 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 880 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 881 oldHeight = $('#contents.c_sub .cs_detail .csd_box.t2').height(); 882 } 883 } 884 885 }); 886 887 var arrived = false;
888 if($("#contents.c_sub .cs_detail").length){ 889 $("#contents.c_sub .cs_detail").addClass("preon"); 890 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 891 oldHeight = $('#contents.c_sub .cs_detail .csd_box.t2').height(); 892 new ResizeSensor(jQuery('#contents.c_sub .cs_detail .csd_box.t2'), function(){ 893 if(!($('#contents.c_sub .cs_detail .csd_box.t2').css('position') == 'fixed')){ 894 $("#contents.c_sub .cs_detail .csd_box.t2").css("position","fixed"); 895 $("#contents.c_sub .cs_detail .csd_box.t2").css("bottom","0px"); 896 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 897 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 898 } 899 }); 900 } 901 902 function calTop(scTop){ 903 if(scTop + Cheight > $("#footer").offset().top){ 904 $("#aside .scrolltop").addClass("blind"); 905 $("#footer .scrolltop").removeClass("blind"); 906 if($("#contents.c_sub .cs_detail").length){ 907 if(arrived){ 908 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 909 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 910 arrived = false; 911 } 912 } 913 }else { 914 $("#aside .scrolltop").removeClass("blind"); 915 $("#footer .scrolltop").addClass("blind"); 916 arrived = true; 917 } 918 } 919 920 $('.scrolltop').click(function() { 921 var offset =0; 922 $('html, body').animate({scrollTop : offset}, 1000,'swing'); 923 }); 924 925 926 $('html, body').on('mousewheel DOMMouseScroll', function(e) { 927 $('body,html').stop(false); 928 }); 929 930 var wonderlook_slide = $('.cm_wonderlook .cmw_slide'); 931 wonderlook_slide.owlCarousel({ 932 items: 3, 933 margin: 20, 934 loop: true, 935 nav: true, 936 callbacks: true, 937 autoplay:true, 938 autoplayTimeout:5000, 939 autoplayHoverPause:false 940 }); 941 $('.cm_wonderlook .n_prev').click(function() { 942 wonderlook_slide.trigger('prev.owl.carousel'); 943 }); 944 // Go to the previous item 945 $('.cm_wonderlook .n_next').click(function() { 946 wonderlook_slide.trigger('next.owl.carousel'); 947 }); 948 949 var cmb_silde = $('.cm_brand .cmb_slide'); 950 cmb_silde.owlCarousel({ 951 items: 1, 952 loop: false, 953 nav: true, 954 callbacks: true, 955 autoplay:false, 956 autoplayTimeout:5000, 957 autoplayHoverPause:false, 958 URLhashListener:true, 959 mouseDrag:false, 960 touchDrag:false, 961 startPosition: 'URLHash' 962 }); 963 964 $('.cm_brand .n_prev').click(function() { 965 cmb_silde.trigger('prev.owl.carousel'); 966 }); 967 // Go to the previous item 968 $('.cm_brand .n_next').click(function() { 969 cmb_silde.trigger('next.owl.carousel'); 970 }); 971 972 // cmb_silde.on('changed.owl.carousel', function (e) { 973 974 // classUrl = location.href.split("#")[1]; 975 // if (classUrl != "!" && classUrl != undefined && classUrl != "") { 976 // $('#contents.c_main .cm_brand .cmb_hash a').removeClass('on'); 977 // $('#contents.c_main .cm_brand .cmb_hash .'+classUrl).addClass('on'); 978 // } 979 // }); 980 981 // var classUrl = location.href.split("#")[1]; 982 // if (classUrl != "!" && classUrl != undefined && classUrl != "") { 983 // if(!classUrl.includes("type")){ 984 // $('#contents.c_main .cm_brand .cmb_hash a').removeClass('on'); 985 // $('#contents.c_main .cm_brand .cmb_hash .'+classUrl).addClass('on'); 986 // } 987 // } 988 989 var cmm_slide = $('.cm_newarrival .cmn_slide'); 990 cmm_slide.owlCarousel({ 991 items: 5, 992 loop: true, 993 nav: true, 994 center: false, 995 mouseDrag:true, 996 touchDrag:true, 997 callbacks: true, 998 autoplay:true, 999 margin:20, 1000 autoplayTimeout:5000, 1001 autoplayHoverPause:false 1002 }); 1003 1004 $('.cm_newarrival .n_prev').click(function() { 1005 cmm_slide.trigger('prev.owl.carousel'); 1006 }); 1007 // Go to the previous item 1008 $('.cm_newarrival .n_next').click(function() { 1009 cmm_slide.trigger('next.owl.carousel'); 1010 }); 1011 1012 var cms_slide = $('.cm_sale .cms_slide'); 1013 cms_slide.owlCarousel({ 1014 items: 5, 1015 loop: true, 1016 nav: true, 1017 center: false, 1018 mouseDrag:true, 1019 touchDrag:true, 1020 callbacks: true, 1021 autoplay:true, 1022 margin:20, 1023 autoplayTimeout:5000, 1024 autoplayHoverPause:false 1025 }); 1026 1027 $('.cm_sale .n_prev').click(function() { 1028 cms_slide.trigger('prev.owl.carousel'); 1029 }); 1030 // Go to the previous item 1031 $('.cm_sale .n_next').click(function() { 1032 cms_slide.trigger('next.owl.carousel'); 1033 }); 1034 1035 var csbw_slide = $('.csb_wonderbest .csbw_slide'); 1036 csbw_slide.owlCarousel({ 1037 items: 4, 1038 loop: true, 1039 nav: true, 1040 center: false,
1041 mouseDrag:true, 1042 touchDrag:true, 1043 callbacks: true, 1044 autoplay:true, 1045 margin:20, 1046 autoplayTimeout:5000, 1047 autoplayHoverPause:false 1048 }); 1049 1050 $('.csb_wonderbest .n_prev').click(function() { 1051 csbw_slide.trigger('prev.owl.carousel'); 1052 }); 1053 // Go to the previous item 1054 $('.csb_wonderbest .n_next').click(function() { 1055 csbw_slide.trigger('next.owl.carousel'); 1056 }); 1057 1058 $("#contents.c_sub .xans-product-normalmenu .function .cs_sort").click(function() { 1059 $("#contents.c_sub .xans-product-normalmenu .function .cs_sort").toggleClass("open"); 1060 }); 1061 1062 $("#header .h_shortcut .membercate > ul > li > .hs_searchbtn").click(function() { 1063 $("#searchBarForm").toggleClass("open"); 1064 }); 1065 1066 $("#searchBarForm .s_box .close").click(function() { 1067 $("#searchBarForm").removeClass("open"); 1068 }); 1069 1070 $("#searchBarForm .s_bg").click(function(){ 1071 $('#searchBarForm').toggleClass("open"); 1072 }); 1073 1074 $(".toggleArrow").click(function(){ 1075 $(this).toggleClass("open"); 1076 }); 1077 1078 $("#contents.c_sub .cs_term .cst_past strong").click(function(){ 1079 $(this).toggleClass("open"); 1080 }); 1081 1082 1083 1084 var Cheight = $(window).height(); 1085 $('.height').css({'height':Cheight+'px'}); 1086 1087 calHeight(); 1088 function calHeight(){ 1089 Cheight = $(window).height(); 1090 1091 $('.height').css({'height':Cheight+'px'}); 1092 } 1093 1094 function beforegreet(){ 1095 for(var i = 0; i < $("#header .h_menu .hm_main > li").length; i++){ 1096 if($("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length == 0){ 1097 $("#header .h_menu .hm_main > li:eq("+i+") ").addClass("noChild"); 1098 } 1099 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "BEST"){ 1100 var href = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 1101 var myLink = "/product/list_best.html?cate_no="; 1102 1103 href = href.split("="); 1104 var chageLink = myLink + href[1]; 1105 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",chageLink); 1106 for(var j = 0; j < $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length; j++){ 1107 href = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href"); 1108 href = href.split("/"); 1109 chageLink = myLink + href[3]; 1110 $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href",chageLink); 1111 } 1112 } 1113 1114 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "BRAND"){ 1115 var href = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 1116 var myLink = "/product/brand.html?cate_no="; 1117 1118 href = href.split("="); 1119 var chageLink = myLink + href[1]; 1120 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",chageLink); 1121 } 1122 1123 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "W.rating"){ 1124 var thishref = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 1125 thishref = thishref.split("="); 1126 if($("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length){ 1127 var href = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq(0) > a").attr("href"); 1128 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",href); 1129 } 1130 for(var j = 0; j < $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length; j++){ 1131 1132 var reviewhref = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href"); 1133 if(reviewhref.includes("135")){ 1134 $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href","/review/"); 1135 } 1136 } 1137 } 1138 1139 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "W.rating"){ 1140 if($("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href").includes("category")){ 1141 1142 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",$("#header .h_menu .hm_main > li:eq("+i+") .sub-category ul li:eq(0) a").attr("href")); 1143 } 1144 1145 } 1146 } 1147 // for(var i = 0; i < $("#contents .c_year > li > .xans-product-children > li").length; i++){ 1148 // var thisname = $("#contents .c_year > li > .xans-product-children > li:eq("+i+")").attr('name'); 1149 // if(thisname == "GOLA"){ 1150 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1151 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1152 // var link2 = myLink2.split("/"); 1153 // myLink2 = "/product/list_lookbook_gola.html?cate_no=" + link2[3]; 1154 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1155 // } 1156 // }else if(thisname == "OCEAN PACIFIC"){ 1157 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1158 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1159 // var link2 = myLink2.split("/"); 1160 // myLink2 = "/product/list_lookbook_oceanpacific.html?cate_no=" + link2[3]; 1161 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1162 // } 1163 // }else if(thisname == "COMO NINOZ"){ 1164 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1165 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1166 // var link2 = myLink2.split("/"); 1167 // myLink2 = "/product/list_lookbook_comoninoz.html?cate_no=" + link2[3]; 1168 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1169 // } 1170 // }else if(thisname == "ORDINARY HOLIDAY"){ 1171 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1172 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1173 // var link2 = myLink2.split("/"); 1174 // myLink2 = "/product/list_lookbook_ordinaryholiday.html?cate_no=" + link2[3]; 1175 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1176 // } 1177 // }else if(thisname == "W.STANDARD"){ 1178 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1179 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1180 // var link2 = myLink2.split("/"); 1181 // myLink2 = "/product/list_lookbook_w.standard.html?cate_no=" + link2[3]; 1182 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1183 // } 1184 // }else if(thisname == "FIELD WORKER"){ 1185 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1186 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1187 // var link2 = myLink2.split("/"); 1188 // myLink2 = "/product/list_lookbook_fieldworker.html?cate_no=" + link2[3]; 1189 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1190 // } 1191 // }else if(thisname == "DELICCENT"){ 1192 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 1193 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 1194 // var link2 = myLink2.split("/"); 1195 // myLink2 = "/product/list_lookbook_deliccent.html?cate_no=" + link2[3]; 1196 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 1197 // } 1198 // } 1199 1200 // } 1201 1202 1203 $("#header").addClass("ready"); 1204 } 1205 setTimeout(beforegreet, 800); 1206 1207 $('#contents .c_year > li > .xans-product-children > li .button').click( function() { 1208 $('#contents .c_year > li > .xans-product-children > li .button').toggleClass("on"); 1209 } ); 1210 if($(".path").length != 0){ 1211 $(".path > ol > li:eq(1)").addClass("on"); 1212 var path = $(".path > ol > li:eq(1)").text() 1213 if(path == "ê²ìí"){ 1214 $(".path > ol > li:eq(2)").addClass("off"); 1215 path = $(".path > ol > li:eq(2)").text() 1216 } 1217 $('#header .h_menu').addClass(path); 1218 1219 1220 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 1221 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 1222 text = text.split(" "); 1223 var newPath = path.split(" "); 1224 if(text[0] == newPath[0]){ 1225 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 1226 } 1227 } 1228 1229 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 1230 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 1231 text2 = text2.split(" "); 1232 var newPath2 = path.split(" "); 1233 if(text2[0] == newPath2[0]){ 1234 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 1235 } 1236 } 1237 } 1238 1239 setTimeout(function(){ 1240 if($(".path").length != 0){ 1241 $(".path > ol > li:eq(1)").addClass("on"); 1242 var path = $(".path > ol > li:eq(1)").text() 1243 if(path == "ê²ìí"){ 1244 $(".path > ol > li:eq(2)").addClass("off"); 1245 path = $(".path > ol > li:eq(2)").text() 1246 } 1247 $('#header .h_menu').addClass(path); 1248 1249 1250 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 1251 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 1252 text = text.split(" "); 1253 var newPath = path.split(" "); 1254 if(text[0] == newPath[0]){ 1255 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 1256 } 1257 } 1258 1259 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 1260 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 1261 text2 = text2.split(" "); 1262 var newPath2 = path.split(" "); 1263 if(text2[0] == newPath2[0]){ 1264 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 1265 } 1266 } 1267 } 1268 }, 500); 1269 1270 1271 1272 setTimeout(function(){ 1273 if($(".path").length != 0){ 1274 $(".path > ol > li:eq(1)").addClass("on"); 1275 var path = $(".path > ol > li:eq(1)").text() 1276 if(path == "ê²ìí"){ 1277 $(".path > ol > li:eq(2)").addClass("off"); 1278 path = $(".path > ol > li:eq(2)").text() 1279 } 1280 $('#header .h_menu').addClass(path); 1281 1282 1283 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 1284 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 1285 text = text.split(" "); 1286 var newPath = path.split(" "); 1287 if(text[0] == newPath[0]){ 1288 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 1289 } 1290 } 1291 1292 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 1293 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 1294 text2 = text2.split(" "); 1295 var newPath2 = path.split(" "); 1296 if(text2[0] == newPath2[0]){ 1297 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 1298 } 1299 } 1300 } 1301 }, 800); 1302 1303 1304 var href = window.location.href; 1305 1306 if(href.includes("list_best.html")){ 1307 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory li").length; i++){ 1308 var cateHref = $("#contents.c_sub .cs_cate .menuCategory li:eq("+i+") a").attr("href"); 1309 var cateNum = cateHref.split("/"); 1310 var myHref = "/product/list_best.html?cate_no=" + cateNum[3]; 1311 $("#contents.c_sub .cs_cate .menuCategory li:eq("+i+") a").attr("href",myHref); 1312 } 1313 } 1314 1315 1316 if(href.includes("list_comoninoz.html")){ 1317 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1318 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1319 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1320 var cateNum = cateHref.split("/"); 1321 var myHref = "/product/list_comoninoz.html?cate_no=" + cateNum[3]; 1322 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1323 1324 } 1325 } 1326 }else if(href.includes("list_deliccent.html")){ 1327 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1328 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1329 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1330 var cateNum = cateHref.split("/"); 1331 var myHref = "/product/list_deliccent.html?cate_no=" + cateNum[3]; 1332 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1333 } 1334 } 1335 }else if(href.includes("list_fieldworker.html")){ 1336 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1337 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1338 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1339 var cateNum = cateHref.split("/"); 1340 var myHref = "/product/list_fieldworker.html?cate_no=" + cateNum[3]; 1341 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1342 } 1343 } 1344 }else if(href.includes("list_gola.html")){ 1345 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1346 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1347 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1348 var cateNum = cateHref.split("/"); 1349 var myHref = "/product/list_gola.html?cate_no=" + cateNum[3]; 1350 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1351 } 1352 } 1353 }else if(href.includes("list_oceanpacific.html")){ 1354 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1355 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1356 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1357 var cateNum = cateHref.split("/"); 1358 var myHref = "/product/list_oceanpacific.html?cate_no=" + cateNum[3]; 1359 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1360 } 1361 } 1362 }else if(href.includes("list_ordinaryholiday.html")){ 1363 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1364 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1365 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1366 var cateNum = cateHref.split("/"); 1367 var myHref = "/product/list_ordinaryholiday.html?cate_no=" + cateNum[3]; 1368 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1369 } 1370 } 1371 }else if(href.includes("list_w.standard.html")){ 1372 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1373 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1374 var cateHref = $("#contents.c_sub .cs_ca
1374tegory .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1375 var cateNum = cateHref.split("/"); 1376 var myHref = "/product/list_w.standard.html?cate_no=" + cateNum[3]; 1377 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1378 } 1379 } 1380 }else if(href.includes("list_lookbook.html")){ 1381 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1382 for(var i = 0; i < $("#contents.c_sub .menuCategory > li").length; i++){ 1383 if($("#contents.c_sub .menuCategory > li:eq("+i+")").attr("name") == "LOOKBOOK"){ 1384 $("#contents.c_sub .menuCategory > li:eq("+i+")").removeClass("blind"); 1385 $("#contents.c_sub .menuCategory > li:eq("+i+") > a").addClass("blind"); 1386 } 1387 for(var j = 0; j < $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1388 var cateHref = $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1389 var cateNum = cateHref.split("/"); 1390 var myHref = "/product/list_lookbook.html?cate_no=" + cateNum[3]; 1391 $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1392 for(var k = 0; k < $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1393 var cateHref = $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1394 var cateNum = cateHref.split("/"); 1395 var myHref = "/product/list_lookbook.html?cate_no=" + cateNum[3]; 1396 $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1397 } 1398 } 1399 } 1400 }else if(href.includes("list_loveit.html")){ 1401 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1402 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1403 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "WONDER LOOK"){ 1404 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1405 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1406 } 1407 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1408 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1409 var cateNum = cateHref.split("/"); 1410 var myHref = "/product/list_loveit.html?cate_no=" + cateNum[3]; 1411 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1412 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1413 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1414 var cateNum = cateHref.split("/"); 1415 var myHref = "/product/list_loveit.html?cate_no=" + cateNum[3]; 1416 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1417 } 1418 } 1419 } 1420 }else if(href.includes("list_wondercrew.html")){ 1421 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1422 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1423 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "WONDER CREW"){ 1424 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1425 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1426 } 1427 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1428 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1429 var cateNum = cateHref.split("/"); 1430 var myHref = "/product/list_wondercrew.html?cate_no=" + cateNum[3]; 1431 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1432 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1433 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1434 var cateNum = cateHref.split("/"); 1435 var myHref = "/product/list_wondercrew.html?cate_no=" + cateNum[3]; 1436 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1437 } 1438 } 1439 } 1440 }else if(href.includes("list_seeing.html")){ 1441 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1442 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1443 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "SEEING"){ 1444 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1445 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1446 } 1447 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1448 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1449 var cateNum = cateHref.split("/"); 1450 var myHref = "/product/list_seeing.html?cate_no=" + cateNum[3]; 1451 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1452 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1453 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1454 var cateNum = cateHref.split("/"); 1455 var myHref = "/product/list_seeing.html?cate_no=" + cateNum[3]; 1456 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1457 } 1458 } 1459 } 1460 }else if(href.includes("list_brand.html")){ 1461 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1462 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1463 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1464 var cateNum = cateHref.split("/"); 1465 var myHref = "/product/list_brand.html?cate_no=" + cateNum[3]; 1466 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1467 } 1468 } 1469 } 1470 1471 1472 1473 1474 1475 1476 1477 // if($("#productbanner .p_pic img").length != 0){
1478 // for(var i = 0; i < $("#productbanner .p_pic img").length; i ++){ 1479 // var src = $("#productbanner .p_pic img").attr("src"); 1480 // $("#productbanner .p_pic").css('background-image', 'url('+src+')'); 1481 // } 1482 // var href = window.location.href; 1483 // if(href.match("list.html")){ 1484 // if(!href.match("search_form") && !href.match("page")){ 1485 // $("body").addClass("hasbanner"); 1486 // } 1487 // } 1488 // } 1489 1490 if($('#metades').length){ 1491 $('#metades').text($('meta[name="author"]').attr('content')); 1492 } 1493 1494 1495}); 1496/** 1497 * Owl Carousel v2.2.1 1498 * Copyright 2013-2017 David Deutsch
vendor: 42,703 bytes, lines 1498-1502
1498 1499 * Licensed under () 1500 */ 1501!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&e<=0&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.$element.is(":visible")&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return"left"===c&&b>h-e&&b<h+e?d=a:"right"===c&&b>h-f-e&&b<h-f+e?d=a+1:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),d===-1},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){for(b=this._items.length,c=this._items[--b].width(),d=this.$element.width();b--&&(c+=this._items[b].width()+this.settings.margin,!(c>d)););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=f*-1*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&a.namespace.indexOf("owl")!==-1?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type))for(var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&e*-1||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c),e=[],f=0;a.each(d,function(b,c){e.push(a(c).height())}),f=Math.max.apply(null,e),this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?'style="width:'+c.width+"px;height:"+c.height+'px;"':"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(a){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?'<div class="owl-video-tn '+j+'" '+i+'="'+a+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+a+')"></div>',b.after(d),b.after(e)};if(b.wrap('<div class="owl-video-wrapper"'+g+"></div>"),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),"youtube"===f.type?c='<iframe width="'+g+'" height="'+h+'" src="//www.youtube.com/embed/'+f.id+"?autoplay=1&rel=0&v="+f.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===f.type?c='<iframe src="//player.vimeo.com/video/'+f.id+'?autoplay=1" width="'+g+'" height="'+h+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>':"vzaar"===f.type&&(c='<iframe frameborder="0"height="'+h+'"width="'+g+'" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/'+f.id+'/player?autoplay=true"></iframe>'),a('<div class="owl-video-frame">'+c+"</div>").insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)}, 1502a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._timeout=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._core.settings.autoplay&&this._setAutoPlayInterval()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype.play=function(a,b){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._setAutoPlayInterval())},e.prototype._getNextTimeout=function(d,e){return this._timeout&&b.clearTimeout(this._timeout),b.setTimeout(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout)},e.prototype._setAutoPlayInterval=function(){this._timeout=this._getNextTimeout()},e.prototype.stop=function(){this._core.is("rotating")&&(b.clearTimeout(this._timeout),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
1502 1503$(function(){ 1504 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 1505 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 1506 var bShippingCountryProc = false; 1507 1508 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1509 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 1510 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 1511 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 1512 } else { 1513 $('.thumb .xans-layout-multishoplistitem').hide(); 1514 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 1515 if (typeof(aShippingCountryCode) != 'undefined' && aShippingCountryCode != null && aShippingCountryCode.length > 2) { 1516 var sShippingCountryValue = aShippingCountryCode[2]; 1517 } 1518 1519 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 1520 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 1521 1522 if (aHrefCountryValue.length == 2) { 1523 var sShippingCountryValue = aHrefCountryValue[1]; 1524 } 1525 1526 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 1527 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 1528 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1529 1530 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1531 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1532 } 1533 } 1534 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 1535 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 1536 var bShippingCountryProc = true; 1537 1538 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1539 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1540 var expires = new Date(); 1541 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1542 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1543 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1544 $("#f_country").val(sShippingCountryValue).change(); 1545 } 1546 } 1547 } 1548 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1549 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 1550 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 1551 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 1552 } else { 1553 $('.thumb .xans-layout-multishoplistitem').hide(); 1554 } 1555 1556 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1557 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 1558 $(".xans-layout-multishopshipping").hide(); 1559 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 1560 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°
1560ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 1561 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 1562 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1563 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1564 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 1565 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 1566 $(".xans-layout-multishopshipping").show(); 1567 } 1568 } 1569 1570 $(".xans-layout-multishopshipping .close").on("click", function() { 1571 $(".xans-layout-multishopshipping").hide(); 1572 }); 1573 1574 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 1575 var expires = new Date(); 1576 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1577 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1578 1579 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°ì ëê¹ 1580 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1581 1582 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 1583 }); 1584 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 1585 $(".xans-layout-multishopshipping").show(); 1586 }); 1587 } 1588}); 1589/** 1590 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 1591 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 1592 */ 1593 1594 $(document).ready(function() { 1595 var headertimer; 1596 var last_total = 0; 1597 var totalCount = 0; 1598 var isCount = 0; 1599 var methods = { 1600 aCategory : [], 1601 aSubCategory : {}, 1602 1603 get: function() 1604 { 1605 $.ajax({ 1606 url : '/exec/front/Product/SubCategory', 1607 dataType: 'json', 1608 success: function(aData) { 1609 1610 if (aData == null || aData == 'undefined') return; 1611 for (var i=0; i<aData.length; i++) 1612 { 1613 var sParentCateNo = aData[i].parent_cate_no; 1614 1615 if (!methods.aSubCategory[sParentCateNo]) { 1616 methods.aSubCategory[sParentCateNo] = []; 1617 } 1618 1619 methods.aSubCategory[sParentCateNo].push( aData[i] ); 1620 } 1621 } 1622 }); 1623 }, 1624 1625 getParam: function(sUrl, sKey) { 1626 1627 var aUrl = sUrl.split('?'); 1628 var sQueryString = aUrl[1]; 1629 var aParam = {}; 1630 1631 if (sQueryString) { 1632 var aFields = sQueryString.split("&"); 1633 var aField = []; 1634 for (var i=0; i<aFields.length; i++) { 1635 aField = aFields[i].split('='); 1636 aParam[aField[0]] = aField[1]; 1637 } 1638 } 1639 return sKey ? aParam[sKey] : aParam; 1640 }, 1641 1642 getParamSeo: function(sUrl) { 1643 var aUrl = sUrl.split('/'); 1644 return aUrl[3] ? aUrl[3] : null; 1645 }, 1646 1647 show: function(overNode, iCateNo) { 1648 var aHtml = []; 1649 aHtml.push('<ul>'); 1650 isCount = isCount + 1; 1651 $(methods.aSubCategory[iCateNo]).each(function() { 1652 var myLink = this.link_product_list; 1653 var link = myLink.split("/"); 1654 clearInterval(headertimer); 1655 totalCount++; 1656 console.log("ë¤ì´ìì ì«ì ì¸ëì¤:",totalCount); 1657 1658 if(isCount == 1){ 1659 myLink = "/product/list_brand.html?cate_no=" + link[3]; 1660 } 1661 1662 if(this.name == "GOLA"){ 1663 myLink = "/product/list_gola.html?cate_no=" + link[3]; 1664 }else if(this.name == "OCEAN PACIFIC"){ 1665 myLink = "/product/list_oceanpacific.html?cate_no=" + link[3]; 1666 }else if(this.name == "COMO NINOZ"){ 1667 myLink = "/product/list_comoninoz.html?cate_no=" + link[3]; 1668 }else if(this.name == "ORDINARY HOLIDAY"){ 1669 myLink = "/product/list_ordinaryholiday.html?cate_no=" + link[3]; 1670 }else if(this.name == "W.STANDARD"){ 1671 myLink = "/product/list_w.standard.html?cate_no=" + link[3]; 1672 }else if(this.name == "FIELD WORKER"){ 1673 myLink = "/product/list_fieldworker.html?cate_no=" + link[3]; 1674 }else if(this.name == "DELICCENT"){ 1675 myLink = "/product/list_deliccent.html?cate_no=" + link[3]; 1676 }else if(this.name == "WONDER LOOK"){ 1677 myLink = "/product/list_wonderlook.html?cate_no=" + link[3]; 1678 }else if(this.name == "WONDER CREW"){ 1679 myLink = "/product/list_wondercrew.html?cate_no=" + link[3]; 1680 }else if(this.name == "LOVE IT"){ 1681 myLink = "/product/list_loveit.html?cate_no=" + link[3]; 1682 }else if(this.name == "SEEING"){ 1683 myLink = "/product/list_seeing.html?cate_no=" + link[3]; 1684 }else if(this.name == "LOOKBOOK"){ 1685 myLink = "/product/list_lookbook.html?cate_no=" + link[3]; 1686 } 1687 aHtml.push('<li name="'+this.name+'"><a href="'+myLink+'">'+this.name+'</a></li>'); 1688 1689 }); 1690 aHtml.push('</ul>'); 1691 1692 var offset = $(overNode).offset(); 1693 $('<div class="sub-category"></div>') 1694 .appendTo(overNode) 1695 .html(aHtml.join('')) 1696 .find('li').mouseover(function(e) { 1697 $(this).addClass('over'); 1698 }).mouseout(function(e) { 1699 $(this).removeClass('over'); 1700 }); 1701 }, 1702 1703 close: function() { 1704 $('.sub-category').remove(); 1705 } 1706 }; 1707 setTimeout(() => { 1708 methods.get(); 1709 },400); 1710 setTimeout(() => { 1711 for(var i=0; i < $('.xans-layout-category li').length; i++){ 1712 var $this = $('.xans-layout-category li:eq('+i+')').addClass('on'), 1713 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 1714 if (!iCateNo) { 1715 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 1716 } 1717 1718 if (!iCateNo) { 1719 return; 1720 } 1721 1722 methods.show($this, iCateNo); 1723 last_total = i; 1724 } 1725 }, 500); 1726 headertimer = setInterval(function(){ 1727 if(last_total < 7){ 1728 console.log("ì§ì íê² ìµëë¤.",totalCount); 1729 if(totalCount < 7){ 1730 methods.get(); 1731 isCount = 0; 1732 for(var i=0; i < $('.xans-layout-category li').length; i++){ 1733 var $this = $('.xans-layout-category li:eq('+i+')').addClass('on'), 1734 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 1735 if (!iCateNo) { 1736 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 1737 } 1738 1739 if (!iCateNo) { 1740 return; 1741 } 1742 last_total = i; 1743 methods.show($this, iCateNo); 1744 } 1745 } 1746 }else{ 1747 console.log("ëì ëë¤",last_total); 1748 } 1749 },1000); 1750 1751});
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.