1/** 2 * ì¹´í ê³ ë¦¬ ë§ì°ì¤ ì¤ë² ì´ë¯¸ì§ 3 * ì¹´í ê³ ë¦¬ ìë¸ ë©ë´ ì¶ë ¥ 4 */ 5 6 $(document).ready(function() { 7 var headertimer; 8 var last_total = 0; 9 var totalCount = 0; 10 var isCount = 0; 11 var methods = { 12 aCategory : [], 13 aSubCategory : {}, 14 15 get: function() 16 { 17 $.ajax({ 18 url : '/exec/front/Product/SubCategory', 19 dataType: 'json', 20 success: function(aData) { 21 22 if (aData == null || aData == 'undefined') return; 23 for (var i=0; i<aData.length; i++) 24 { 25 var sParentCateNo = aData[i].parent_cate_no; 26 27 if (!methods.aSubCategory[sParentCateNo]) { 28 methods.aSubCategory[sParentCateNo] = []; 29 } 30 31 methods.aSubCategory[sParentCateNo].push( aData[i] ); 32 } 33 } 34 }); 35 }, 36 37 getParam: function(sUrl, sKey) { 38 39 var aUrl = sUrl.split('?'); 40 var sQueryString = aUrl[1]; 41 var aParam = {}; 42 43 if (sQueryString) { 44 var aFields = sQueryString.split("&"); 45 var aField = []; 46 for (var i=0; i<aFields.length; i++) { 47 aField = aFields[i].split('='); 48 aParam[aField[0]] = aField[1]; 49 } 50 } 51 return sKey ? aParam[sKey] : aParam; 52 }, 53 54 getParamSeo: function(sUrl) { 55 var aUrl = sUrl.split('/'); 56 return aUrl[3] ? aUrl[3] : null; 57 }, 58 59 show: function(overNode, iCateNo) { 60 var aHtml = []; 61 aHtml.push('<ul>'); 62 isCount = isCount + 1; 63 $(methods.aSubCategory[iCateNo]).each(function() { 64 var myLink = this.link_product_list; 65 var link = myLink.split("/"); 66 clearInterval(headertimer); 67 totalCount++; 68 console.log("ë¤ì´ìì ì«ì ì¸ëì¤:",totalCount); 69 70 if(isCount == 1){ 71 myLink = "/product/list_brand.html?cate_no=" + link[3]; 72 } 73 74 if(this.name == "GOLA"){ 75 myLink = "/product/list_gola.html?cate_no=" + link[3]; 76 }else if(this.name == "OCEAN PACIFIC"){ 77 myLink = "/product/list_oceanpacific.html?cate_no=" + link[3]; 78 }else if(this.name == "COMO NINOZ"){ 79 myLink = "/product/list_comoninoz.html?cate_no=" + link[3]; 80 }else if(this.name == "ORDINARY HOLIDAY"){ 81 myLink = "/product/list_ordinaryholiday.html?cate_no=" + link[3]; 82 }else if(this.name == "W.STANDARD"){ 83 myLink = "/product/list_w.standard.html?cate_no=" + link[3]; 84 }else if(this.name == "FIELD WORKER"){ 85 myLink = "/product/list_fieldworker.html?cate_no=" + link[3]; 86 }else if(this.name == "DELICCENT"){ 87 myLink = "/product/list_deliccent.html?cate_no=" + link[3]; 88 }else if(this.name == "WONDER LOOK"){ 89 myLink = "/product/list_wonderlook.html?cate_no=" + link[3]; 90 }else if(this.name == "WONDER CREW"){ 91 myLink = "/product/list_wondercrew.html?cate_no=" + link[3]; 92 }else if(this.name == "LOVE IT"){ 93 myLink = "/product/list_loveit.html?cate_no=" + link[3]; 94 }else if(this.name == "SEEING"){ 95 myLink = "/product/list_seeing.html?cate_no=" + link[3]; 96 }else if(this.name == "LOOKBOOK"){ 97 myLink = "/product/list_lookbook.html?cate_no=" + link[3]; 98 } 99 aHtml.push('<li name="'+this.name+'"><a href="'+myLink+'">'+this.name+'</a></li>'); 100 101 }); 102 aHtml.push('</ul>'); 103 104 var offset = $(overNode).offset(); 105 $('<div class="sub-category"></div>') 106 .appendTo(overNode) 107 .html(aHtml.join('')) 108 .find('li').mouseover(function(e) { 109 $(this).addClass('over'); 110 }).mouseout(function(e) { 111 $(this).removeClass('over'); 112 }); 113 }, 114 115 close: function() { 116 $('.sub-category').remove(); 117 } 118 }; 119 setTimeout(() => { 120 methods.get(); 121 },400); 122 setTimeout(() => { 123 for(var i=0; i < $('.xans-layout-category li').length; i++){ 124 var $this = $('.xans-layout-category li:eq('+i+')').addClass('on'), 125 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 126 if (!iCateNo) { 127 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 128 } 129 130 if (!iCateNo) { 131 return; 132 } 133 134 methods.show($this, iCateNo); 135 last_total = i; 136 } 137 }, 500); 138 headertimer = setInterval(function(){ 139 if(last_total < 7){ 140 console.log("ì§ì íê² ìµëë¤.",totalCount); 141 if(totalCount < 7){ 142 methods.get(); 143 isCount = 0; 144 for(var i=0; i < $('.xans-layout-category li').length; i++){ 145 var $this = $('.xans-layout-category li:eq('+i+')').addClass('on'), 146 iCateNo = Number(methods.getParam($this.find('a').attr('href'), 'cate_no')); 147 if (!iCateNo) { 148 iCateNo = Number(methods.getParamSeo($this.find('a').attr('href'))); 149 } 150 151 if (!iCateNo) { 152 return; 153 } 154 last_total = i; 155 methods.show($this, iCateNo); 156 } 157 } 158 }else{ 159 console.log("ëì ëë¤",last_total); 160 } 161 },1000); 162 163}); 164/** 165 * ìì§ì´ë ë°°ë Jquery Plug-in 166 * @author cafe24 167 */ 168 169(function($){ 170 171 $.fn.floatBanner = function(options) { 172 options = $.extend({}, $.fn.floatBanner.defaults , options); 173 174 return this.each(function() { 175 var aPosition = $(this).position(); 176 var jbOffset = $(this).offset(); 177 var node = this; 178 179 $(window).on('scroll', function() { 180 var _top = $(document).scrollTop(); 181 _top = (aPosition.top < _top) ? _top : aPosition.top; 182 183 setTimeout(function () { 184 var newinit = $(document).scrollTop(); 185 186 if ( newinit >
186 jbOffset.top ) { 187 _top -= jbOffset.top; 188 var container_height = $("#wrap").height(); 189 var quick_height = $(node).height(); 190 var cul = container_height - quick_height; 191 if(_top > cul){ 192 _top = cul; 193 } 194 } else { 195 _top = 0; 196 } 197 198 $(node).stop().animate({top: _top}, options.animate); 199 }, options.delay); 200 }); 201 }); 202 }; 203 204 $.fn.floatBanner.defaults = { 205 'animate' : 500, 206 'delay' : 500 207 }; 208 209})(jQuery); 210 211/** 212 * 문ì 구ëí ìì 213 */ 214$(function(){ 215 $('#banner:visible, #quick:visible').floatBanner(); 216 217 //placeholder 218 $(".ePlaceholder input, .ePlaceholder textarea").each(function(i){ 219 var placeholderName = $(this).parents().attr('title'); 220 $(this).attr("placeholder", placeholderName); 221 }); 222 /* placeholder ie8, ie9 */ 223 $.fn.extend({ 224 placeholder : function() { 225 //IE 8 ë²ì ìë hasPlaceholderSupport() ê°ì´ false를 ë¦¬í´ 226 if (hasPlaceholderSupport() === true) { 227 return this; 228 } 229 //hasPlaceholderSupport() ê°ì´ false ì¼ ê²½ì° ìë ì½ë를 ì¤í 230 return this.each(function(){ 231 var findThis = $(this); 232 var sPlaceholder = findThis.attr('placeholder'); 233 if ( ! sPlaceholder) { 234 return; 235 } 236 findThis.wrap('<label class="ePlaceholder" />'); 237 var sDisplayPlaceHolder = $(this).val() ? ' style="display:none;"' : ''; 238 findThis.before('<span' + sDisplayPlaceHolder + '>' + sPlaceholder + '</span>'); 239 this.onpropertychange = function(e){ 240 e = event || e; 241 if (e.propertyName == 'value') { 242 $(this).trigger('focusout'); 243 } 244 }; 245 //ê³µíµ class 246 var agent = navigator.userAgent.toLowerCase(); 247 if (agent.indexOf("msie") != -1) { 248 $(".ePlaceholder").css({"position":"relative"}); 249 $(".ePlaceholder span").css({"position":"absolute", "padding":"0 4px", "color":"#878787"}); 250 $(".ePlaceholder label").css({"padding":"0"}); 251 } 252 }); 253 } 254 }); 255 256 $(':input[placeholder]').placeholder(); //placeholder() í¨ì를 í¸ì¶ 257 258 //í´ë¦íë©´ placeholder ì¨ê¹ 259 $('body').on('click', '.ePlaceholder span', function(){ 260 $(this).hide(); 261 }); 262 263 //inputì°½ í¬ì»¤ì¤ ì¸ ì¼ë placeholder ì¨ê¹ 264 $('body').on('focusin', '.ePlaceholder :input', function(){ 265 $(this).prev('span').hide(); 266 }); 267 268 //inputì°½ í¬ì»¤ì¤ ìì ì¼ë value ê° true ì´ë©´ ì¨ê¹, false ì´ë©´ ë³´ì¬ì§ 269 $('body').on('focusout', '.ePlaceholder :input', function(){ 270 if (this.value) { 271 $(this).prev('span').hide(); 272 } else { 273 $(this).prev('span').show(); 274 } 275 }); 276 277 //inputì placeholderê° ì§ìì´ ëë©´ true를 ìëë©´ false를 리í´ê°ì¼ë¡ ëì ¸ì¤ 278 function hasPlaceholderSupport() { 279 if ('placeholder' in document.createElement('input')) { 280 return true; 281 } else { 282 return false; 283 } 284 } 285}); 286 287/** 288 * ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 289 */ 290$(window).on('load', function() { 291 $("img.thumb,img.ThumbImage,img.BigImage").each(function($i,$item){ 292 var $img = new Image(); 293 $img.onerror = function () { 294 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 295 } 296 $img.src = this.src; 297 }); 298}); 299 300/** 301 * tooltip 302 */ 303$('.eTooltip').each(function(i){ 304 $(this).find('.btnClose').attr('tabIndex','-1'); 305}); 306//tooltip input focus 307$('.eTooltip').find('input').on('focus', function() { 308 var targetName = returnTagetName(this); 309 targetName.siblings('.ec-base-tooltip').show(); 310}); 311$('.eTooltip').find('input').on('focusout', function() { 312 var targetName = returnTagetName(this); 313 targetName.siblings('.ec-base-tooltip').hide(); 314}); 315function returnTagetName(_this){ 316 var ePlacename = $(_this).parent().attr("class"); 317 var targetName; 318 if(ePlacename == "ePlaceholder"){ //ePlaceholder ëì 319 targetName = $(_this).parents(); 320 }else{ 321 targetName = $(_this); 322 } 323 return targetName; 324} 325
326/** 327 * eTab 328 */ 329$("body").on("click", ".eTab a", function(e){ 330 // í´ë¦í li ì selected í´ëì¤ ì¶ê°, 기존 liì ìë selected í´ëì¤ë ìì . 331 var _li = $(this).parent("li").addClass("selected").siblings().removeClass("selected"), 332 _target = $(this).attr("href"), 333 _siblings = $(_target).attr("class"), 334 _arr = _siblings.split(" "), 335 _classSiblings = "."+_arr[0]; 336 337 //í´ë¦í íì í´ë¹íë ììë íì±í, 기존 ììë ë¹íì±í í¨. 338 $(_target).show().siblings(_classSiblings).hide(); 339 340 341 //preventDefault ë a íê·¸ ì²ë¼ í´ë¦ ì´ë²¤í¸ ì¸ì ë³ëì ë¸ë¼ì°ì íëì ë§ê¸° ìí´ ì¬ì©ë¨. 342 e.preventDefault(); 343}); 344 345 346 347EC$(function($) { 348 var filter = "win16|win32|win64|mac|macintel"; 349 var device = "pc"; 350 if (navigator.platform) { 351 if (filter.indexOf(navigator.platform.toLowerCase()) < 0) { device = "mobile"; } 352 } 353 354 /** 355 * ìíìì¸, ìí íë보기(íì ) - ìë¹ìê° í ì¸íì */ 356 var oPriceInfoEl = $('#ec-product-price-info'); 357 if (oPriceInfoEl.length > 0) { 358 var salePriceEl = $('#span_product_price_text'); 359 percentageCul(oPriceInfoEl, salePriceEl); 360 } 361 362 /** 363 * ìí목ë¡/ë©ì¸ì§ì´ - ìë¹ìê° í ì¸íì*/ 364 var mainEl = $("#main"); 365 if (mainEl.length > 0) { 366 var productListEl = $('.xans-product-listmain, .xans-product-listrecommend, .xans-product-listnew, .xans-product-listnormal'); 367 for (var i = 0; i < productListEl.length; i++) { 368 var prdListEl = productListEl.eq(i).find('.prdList > li'); 369 for (var j = 0; j < prdListEl.length; j++) { 370 var priceEl = prdListEl.eq(j).find('.description'), 371 salePriceEl = priceEl.find('.xans-product > li').eq(1).find('span:eq(1)'); 372 373 if (device == "mobile") { 374 salePriceEl = priceEl.find('.spec >li.price'); 375 } 376 percentageCul(priceEl, salePriceEl); 377 } 378 } 379 } 380 381 382 383 function percentageCul(target, salePriceEl) { 384 var iCustomPrice = parseInt(target.attr('ec-data-custom').replace(",", "")); // ê²ìíì´ì§ìì ì¼í ìì - ì í 385 var iPrice = parseInt(target.attr('ec-data-price').replace(",", "")); // ê²ìíì´ì§ìì ì¼í ìì - ì í 386 var sDisplayAmount = 'p', // p:í ì¸ì¨, w:í ì¸ê¸ì¡ 387 iOfftoFixed = 0, // í ì¸ì¨ ììì ì릿ì 388 sSaleText = '', 389 regexp = /B(?=(d{3})+(?!d))/g; 390 391 if (iCustomPrice > 0 && iPrice > 0 && iPrice != iCustomPrice) { 392 if (sDisplayAmount == 'p') { 393 sSaleText = (((iCustomPrice - iPrice) / iCustomPrice) * 100).toFixed(iOfftoFixed) + '%'; 394 } else if (sDisplayAmount == 'w') { 395 sSaleText = parseInt(iCustomPrice - iPrice).toString().replace(regexp, ',') + 'ì OFF'; 396 } 397 salePriceEl.append("<div class='ec-sale-rate'>" + sSaleText + "</span>"); 398 } 399 } 400 // setTimeout(function(){ 401 // sale_percent(); 402 // }, 300); 403}); 404//window popup script 405function winPop(url) { 406 window.open(url, "popup", "width=300,height=300,left=10,top=10,resizable=no,scrollbars=no"); 407} 408/** 409 * document.location.href split 410 * return array Param 411 */ 412function getQueryString(sKey) 413{ 414 var sQueryString = document.location.search.substring(1); 415 var aParam = {}; 416 417 if (sQueryString) { 418 var aFields = sQueryString.split("&"); 419 var aField = []; 420 for (var i=0; i<aFields.length; i++) { 421 aField = aFields[i].split('='); 422 aParam[aField[0]] = aField[1]; 423 } 424 } 425 426 aParam.page = aParam.page ? aParam.page : 1; 427 return sKey ? aParam[sKey] : aParam; 428}; 429 430$(function(){ 431 // tab 432 $.eTab = function(ul){ 433 $(ul).find('a').on('click', function(){ 434 var _li = $(this).parent('li').addClass('selected').siblings().removeClass('selected'), 435 _target = $(this).attr('href'), 436 _siblings = '.' + $(_target).attr('class'); 437 $(_target).show().siblings(_siblings).hide(); 438 return false 439 }); 440 } 441 if ( window.call_eTab ) { 442 call_eTab(); 443 }; 444}); 445!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 445
445orts.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
445),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 )|
445sy(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}])}); 446(function($){ 447 $.fn.extend({ 448 center: function() { 449 this.each(function() { 450 var 451 $this = $(this), 452 $w = $(window); 453 $this.css({ 454 position: "absolute", 455 top: ~~(($w.height() - $this.outerHeight()) / 2) + $w.scrollTop() + "px", 456 left: ~~(($w.width() - $this.outerWidth()) / 2) + $w.scrollLeft() + "px" 457 }); 458 }); 459 return this; 460 } 461 }); 462 $(function() { 463 var $container = function(){/* 464 <div id="modalContainer"> 465 <iframe id="modalContent" scroll="0" scrolling="no" frameBorder="0"></iframe> 466 </div>'); 467 */}.toString().slice(14,-3); 468 $('body') 469 .append($('<div id="modalBackpanel"></div>')) 470 .append($($container)); 471 function closeModal () { 472 $('#modalContainer').hide(); 473 $('#modalBackpanel').hide(); 474 } 475 $('#modalBackpanel').on('click',closeModal); 476 zoom = function ($piProductNo, $piCategoryNo, $piDisplayGroup) { 477 var $url = '/product/image_zoom.html?product_no=' + $piProductNo + '&cate_no=' + $piCategoryNo + '&display_group=' + $piDisplayGroup; 478 $('#modalContent').attr('src', $url); 479 $('#modalContent').on("load",function(){ 480 $(".header .close",this.contentWindow.document.body).on("click", closeModal); 481 }); 482 $('#modalBackpanel').css({width:$("body").width(),height:$("body").height(),opacity:.4}).show(); 483 $('#modalContainer').center().show(); 484 } 485 }); 486})(jQuery); 487/** 488 * Owl Carousel v2.2.1 489 * Copyright 2013-2017 David Deutsch
vendor: 42,703 bytes, lines 489-493
489 490 * Licensed under () 491 */ 492!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)}, 493a.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);
493 494 495$(document).ready(function() { 496 var oldHeight = 0; 497 AOS.init({ 498 // Global settings: 499 disable: false, // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function 500 startEvent: 'DOMContentLoaded', // name of the event dispatched on the document, that AOS should initialize on 501 initClassName: 'aos-init', // class applied after initialization 502 animatedClassName: 'aos-animate', // class applied on animation 503 useClassNames: false, // if true, will add content of `data-aos` as classes on scroll 504 disableMutationObserver: false, // disables automatic mutations' detections (advanced) 505 debounceDelay: 50, // the delay on debounce used while resizing window (advanced) 506 throttleDelay: 99, // the delay on throttle used while scrolling the page (advanced) 507 508 509 // Settings that can be overridden on per-element basis, by `data-aos-*` attributes: 510 offset: 180, // offset (in px) from the original trigger point 511 delay: 0, // values from 0 to 3000, with step 50ms 512 duration: 400, // values from 0 to 3000, with step 50ms 513 easing: 'ease', // default easing for AOS animations 514 once: false, // whether animation should happen only once - while scrolling down 515 mirror: false, // whether elements should animate out while scrolling past them 516 anchorPlacement: 'top-bottom', // defines which position of the element regarding to window should trigger the animation 517 }); 518 AOS.refresh(); 519 setTimeout("AOS.refresh()", 1000); 520 setTimeout("AOS.refresh()", 2000); 521 522 for (var i = 0; i < $("#contents .listype .prdList > li").length; i++) { 523 var userPrice; 524 for (var j = 0; j < $("#contents .listype .prdList > li:eq("+i+") .spec > li").length; j++) { 525 526 var text = $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") .title > span").text(); 527 528 529 if(text == "ìë¹ìê°"){ 530 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("userPrice"); 531 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("userPrice"); 532 userPrice = $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") > span").text(); 533 }else if(text == "í매ê°"){ 534 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("basePrice"); 535 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("basePrice"); 536 if(userPrice == $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+") > strong + span").text()){ 537 $("#contents .listype .prdList > li:eq("+i+")").addClass("samePrice"); 538 } 539 }else if(text == " í ì¸ê°" || text == "í ì¸í매ê°" || text == "ì¼ë°íì í ì¸ê°"){ 540 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("discountPrice"); 541 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("discountPrice"); 542 }else if(text == "ìµì í ì¸ê°"){ 543 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("totalPrice"); 544 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("totalPrice"); 545 }else if(text == "ë¸ëë"){ 546 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("brand"); 547 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("brand"); 548 }else if(text == "ìíìì"){ 549 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("color"); 550 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("color"); 551 }else if(text == "ì¬ì©í기"){ 552 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("review"); 553 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("review"); 554 }else if(text == "ìíìì½ì ë³´"){ 555 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("summary"); 556 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("summary"); 557 }else if(text == "í´ìíê·¸"){ 558 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("hashtag"); 559 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("hashtag"); 560 }else if(text == "ìíê°ëµì¤ëª "){ 561 $("#contents .listype .prdList > li:eq("+i+") .spec > li:eq("+j+")").addClass("description"); 562 $("#contents .listype .prdList > li:eq("+i+") .spec").addClass("description"); 563 } 564 } 565 } 566 567 $("#file1").on('change',function(){ 568 var fileName = $("#file1").val(); 569 fileName = fileName.replace(/^.*[\\\/]/, ''); 570 $(".upload-name1").val(fileName); 571 }); 572 $("#file2").on('change',function(){ 573 var fileName = $("#file2").val(); 574 fileName = fileName.replace(/^.*[\\\/]/, ''); 575 $(".upload-name2").val(fileName); 576 }); 577 $("#file3").on('change',function(){ 578 var fileName = $("#file3").val(); 579 fileName = fileName.replace(/^.*[\\\/]/, ''); 580 $(".upload-name3").val(fileName); 581 }); 582 $("#file4").on('change',function(){ 583 var fileName = $("#file4").val(); 584 fileName = fileName.replace(/^.*[\\\/]/, ''); 585 $(".upload-name4").val(fileName); 586 }); 587 588 // $("#contents .cs_productlist ul").addClass("cmp_slide"); 589 // $("#contents .cs_productlist ul").addClass("owl-carousel"); 590 591 // var productlist_slide = $('#contents .cs_productlist .cmp_slide'); 592 // productlist_slide.owlCarousel({ 593 // items: 4, 594 // loop: true, 595 // nav: false, 596 // center: false, 597 // mouseDrag:true, 598 // touchDrag:true, 599 // callbacks: true, 600 // autoplay:true, 601 // margin:0, 602 // autoplayTimeout:5000, 603 // autoplayHoverPause:false 604 // }); 605 606 var scTop = $(this).scrollTop(); 607 608 $( window ).resize(function() { 609 scTop = $(this).scrollTop(); 610 calHeight(); 611 AOS.refresh(); 612 setTimeout("AOS.refresh()", 1000); 613 calTop(scTop); 614 if($("#contents.c_sub .cs_detail").length){ 615 if(!($('#contents.c_sub .cs_detail .csd_box.t2').css('position') == 'fixed')){ 616 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 617 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 618 } 619 } 620 }); 621 622 $(window).scroll(function(){ 623 scTop = $(this).scrollTop(); 624 calTop(scTop); 625 if(scTop > 0){ 626 $("#aside").addClass("on"); 627 }else { 628 $("#aside").removeClass("on"); 629 } 630 if($("#contents.c_sub .cs_detail").length){ 631 if(oldHeight != $('#contents.c_sub .cs_detail .csd_box.t2').height()){ 632 $("#contents.c_sub .cs_detail .csd_box.t2").css("position","fixed"); 633 $("#contents.c_sub .cs_detail .csd_box.t2").css("bottom","0px"); 634 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 635 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 636 oldHeight = $('#contents.c_sub .cs_detail .csd_box.t2').height(); 637 } 638 } 639 640 }); 641 642 var arrived = false;
643 if($("#contents.c_sub .cs_detail").length){ 644 $("#contents.c_sub .cs_detail").addClass("preon"); 645 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 646 oldHeight = $('#contents.c_sub .cs_detail .csd_box.t2').height(); 647 new ResizeSensor(jQuery('#contents.c_sub .cs_detail .csd_box.t2'), function(){ 648 if(!($('#contents.c_sub .cs_detail .csd_box.t2').css('position') == 'fixed')){ 649 $("#contents.c_sub .cs_detail .csd_box.t2").css("position","fixed"); 650 $("#contents.c_sub .cs_detail .csd_box.t2").css("bottom","0px"); 651 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 652 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 653 } 654 }); 655 } 656 657 function calTop(scTop){ 658 if(scTop + Cheight > $("#footer").offset().top){ 659 $("#aside .scrolltop").addClass("blind"); 660 $("#footer .scrolltop").removeClass("blind"); 661 if($("#contents.c_sub .cs_detail").length){ 662 if(arrived){ 663 $("#contents.c_sub .cs_detail .csd_box.t2").trigger("sticky_kit:detach"); 664 $("#contents.c_sub .cs_detail .csd_box.t2").stick_in_parent({offset_top:140}); 665 arrived = false; 666 } 667 } 668 }else { 669 $("#aside .scrolltop").removeClass("blind"); 670 $("#footer .scrolltop").addClass("blind"); 671 arrived = true; 672 } 673 } 674 675 $('.scrolltop').click(function() { 676 var offset =0; 677 $('html, body').animate({scrollTop : offset}, 1000,'swing'); 678 }); 679 680 681 $('html, body').on('mousewheel DOMMouseScroll', function(e) { 682 $('body,html').stop(false); 683 }); 684 685 var wonderlook_slide = $('.cm_wonderlook .cmw_slide'); 686 wonderlook_slide.owlCarousel({ 687 items: 3, 688 margin: 20, 689 loop: true, 690 nav: true, 691 callbacks: true, 692 autoplay:true, 693 autoplayTimeout:5000, 694 autoplayHoverPause:false 695 }); 696 $('.cm_wonderlook .n_prev').click(function() { 697 wonderlook_slide.trigger('prev.owl.carousel'); 698 }); 699 // Go to the previous item 700 $('.cm_wonderlook .n_next').click(function() { 701 wonderlook_slide.trigger('next.owl.carousel'); 702 }); 703 704 var cmb_silde = $('.cm_brand .cmb_slide'); 705 cmb_silde.owlCarousel({ 706 items: 1, 707 loop: false, 708 nav: true, 709 callbacks: true, 710 autoplay:false, 711 autoplayTimeout:5000, 712 autoplayHoverPause:false, 713 URLhashListener:true, 714 mouseDrag:false, 715 touchDrag:false, 716 startPosition: 'URLHash' 717 }); 718 719 $('.cm_brand .n_prev').click(function() { 720 cmb_silde.trigger('prev.owl.carousel'); 721 }); 722 // Go to the previous item 723 $('.cm_brand .n_next').click(function() { 724 cmb_silde.trigger('next.owl.carousel'); 725 }); 726 727 // cmb_silde.on('changed.owl.carousel', function (e) { 728 729 // classUrl = location.href.split("#")[1]; 730 // if (classUrl != "!" && classUrl != undefined && classUrl != "") { 731 // $('#contents.c_main .cm_brand .cmb_hash a').removeClass('on'); 732 // $('#contents.c_main .cm_brand .cmb_hash .'+classUrl).addClass('on'); 733 // } 734 // }); 735 736 // var classUrl = location.href.split("#")[1]; 737 // if (classUrl != "!" && classUrl != undefined && classUrl != "") { 738 // if(!classUrl.includes("type")){ 739 // $('#contents.c_main .cm_brand .cmb_hash a').removeClass('on'); 740 // $('#contents.c_main .cm_brand .cmb_hash .'+classUrl).addClass('on'); 741 // } 742 // } 743 744 var cmm_slide = $('.cm_newarrival .cmn_slide'); 745 cmm_slide.owlCarousel({ 746 items: 5, 747 loop: true, 748 nav: true, 749 center: false, 750 mouseDrag:true, 751 touchDrag:true, 752 callbacks: true, 753 autoplay:true, 754 margin:20, 755 autoplayTimeout:5000, 756 autoplayHoverPause:false 757 }); 758 759 $('.cm_newarrival .n_prev').click(function() { 760 cmm_slide.trigger('prev.owl.carousel'); 761 }); 762 // Go to the previous item 763 $('.cm_newarrival .n_next').click(function() { 764 cmm_slide.trigger('next.owl.carousel'); 765 }); 766 767 var cms_slide = $('.cm_sale .cms_slide'); 768 cms_slide.owlCarousel({ 769 items: 5, 770 loop: true, 771 nav: true, 772 center: false, 773 mouseDrag:true, 774 touchDrag:true, 775 callbacks: true, 776 autoplay:true, 777 margin:20, 778 autoplayTimeout:5000, 779 autoplayHoverPause:false 780 }); 781 782 $('.cm_sale .n_prev').click(function() { 783 cms_slide.trigger('prev.owl.carousel'); 784 }); 785 // Go to the previous item 786 $('.cm_sale .n_next').click(function() { 787 cms_slide.trigger('next.owl.carousel'); 788 }); 789 790 var csbw_slide = $('.csb_wonderbest .csbw_slide'); 791 csbw_slide.owlCarousel({ 792 items: 4, 793 loop: true, 794 nav: true, 795 center: false,
796 mouseDrag:true, 797 touchDrag:true, 798 callbacks: true, 799 autoplay:true, 800 margin:20, 801 autoplayTimeout:5000, 802 autoplayHoverPause:false 803 }); 804 805 $('.csb_wonderbest .n_prev').click(function() { 806 csbw_slide.trigger('prev.owl.carousel'); 807 }); 808 // Go to the previous item 809 $('.csb_wonderbest .n_next').click(function() { 810 csbw_slide.trigger('next.owl.carousel'); 811 }); 812 813 $("#contents.c_sub .xans-product-normalmenu .function .cs_sort").click(function() { 814 $("#contents.c_sub .xans-product-normalmenu .function .cs_sort").toggleClass("open"); 815 }); 816 817 $("#header .h_shortcut .membercate > ul > li > .hs_searchbtn").click(function() { 818 $("#searchBarForm").toggleClass("open"); 819 }); 820 821 $("#searchBarForm .s_box .close").click(function() { 822 $("#searchBarForm").removeClass("open"); 823 }); 824 825 $("#searchBarForm .s_bg").click(function(){ 826 $('#searchBarForm').toggleClass("open"); 827 }); 828 829 $(".toggleArrow").click(function(){ 830 $(this).toggleClass("open"); 831 }); 832 833 $("#contents.c_sub .cs_term .cst_past strong").click(function(){ 834 $(this).toggleClass("open"); 835 }); 836 837 838 839 var Cheight = $(window).height(); 840 $('.height').css({'height':Cheight+'px'}); 841 842 calHeight(); 843 function calHeight(){ 844 Cheight = $(window).height(); 845 846 $('.height').css({'height':Cheight+'px'}); 847 } 848 849 function beforegreet(){ 850 for(var i = 0; i < $("#header .h_menu .hm_main > li").length; i++){ 851 if($("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length == 0){ 852 $("#header .h_menu .hm_main > li:eq("+i+") ").addClass("noChild"); 853 } 854 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "BEST"){ 855 var href = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 856 var myLink = "/product/list_best.html?cate_no="; 857 858 href = href.split("="); 859 var chageLink = myLink + href[1]; 860 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",chageLink); 861 for(var j = 0; j < $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length; j++){ 862 href = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href"); 863 href = href.split("/"); 864 chageLink = myLink + href[3]; 865 $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href",chageLink); 866 } 867 } 868 869 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "BRAND"){ 870 var href = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 871 var myLink = "/product/brand.html?cate_no="; 872 873 href = href.split("="); 874 var chageLink = myLink + href[1]; 875 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",chageLink); 876 } 877 878 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "W.rating"){ 879 var thishref = $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href"); 880 thishref = thishref.split("="); 881 if($("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length){ 882 var href = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq(0) > a").attr("href"); 883 $("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href",href); 884 } 885 for(var j = 0; j < $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li").length; j++){ 886 887 var reviewhref = $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href"); 888 if(reviewhref.includes("135")){ 889 $("#header .h_menu .hm_main > li:eq("+i+") > .sub-category > ul li:eq("+j+") > a").attr("href","/review/"); 890 } 891 } 892 } 893 894 if($("#header .h_menu .hm_main > li:eq("+i+")").attr("name") == "W.rating"){ 895 if($("#header .h_menu .hm_main > li:eq("+i+") > a").attr("href").includes("category")){ 896 897 $("#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")); 898 } 899 900 } 901 } 902 // for(var i = 0; i < $("#contents .c_year > li > .xans-product-children > li").length; i++){ 903 // var thisname = $("#contents .c_year > li > .xans-product-children > li:eq("+i+")").attr('name'); 904 // if(thisname == "GOLA"){ 905 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 906 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 907 // var link2 = myLink2.split("/"); 908 // myLink2 = "/product/list_lookbook_gola.html?cate_no=" + link2[3]; 909 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 910 // } 911 // }else if(thisname == "OCEAN PACIFIC"){ 912 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 913 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 914 // var link2 = myLink2.split("/"); 915 // myLink2 = "/product/list_lookbook_oceanpacific.html?cate_no=" + link2[3]; 916 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 917 // } 918 // }else if(thisname == "COMO NINOZ"){ 919 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 920 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 921 // var link2 = myLink2.split("/"); 922 // myLink2 = "/product/list_lookbook_comoninoz.html?cate_no=" + link2[3]; 923 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 924 // } 925 // }else if(thisname == "ORDINARY HOLIDAY"){ 926 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 927 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 928 // var link2 = myLink2.split("/"); 929 // myLink2 = "/product/list_lookbook_ordinaryholiday.html?cate_no=" + link2[3]; 930 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 931 // } 932 // }else if(thisname == "W.STANDARD"){ 933 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 934 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 935 // var link2 = myLink2.split("/"); 936 // myLink2 = "/product/list_lookbook_w.standard.html?cate_no=" + link2[3]; 937 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 938 // } 939 // }else if(thisname == "FIELD WORKER"){ 940 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 941 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 942 // var link2 = myLink2.split("/"); 943 // myLink2 = "/product/list_lookbook_fieldworker.html?cate_no=" + link2[3]; 944 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 945 // } 946 // }else if(thisname == "DELICCENT"){ 947 // for(var j = 0; j < $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li").length; j++){ 948 // var myLink2 = $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href'); 949 // var link2 = myLink2.split("/"); 950 // myLink2 = "/product/list_lookbook_deliccent.html?cate_no=" + link2[3]; 951 // $("#contents .c_year > li > .xans-product-children > li:eq("+i+") ul > li:eq("+j+") > a").attr('href',myLink2); 952 // } 953 // } 954 955 // } 956 957 958 $("#header").addClass("ready"); 959 } 960 setTimeout(beforegreet, 800); 961 962 $('#contents .c_year > li > .xans-product-children > li .button').click( function() { 963 $('#contents .c_year > li > .xans-product-children > li .button').toggleClass("on"); 964 } ); 965 if($(".path").length != 0){ 966 $(".path > ol > li:eq(1)").addClass("on"); 967 var path = $(".path > ol > li:eq(1)").text() 968 if(path == "ê²ìí"){ 969 $(".path > ol > li:eq(2)").addClass("off"); 970 path = $(".path > ol > li:eq(2)").text() 971 } 972 $('#header .h_menu').addClass(path); 973 974 975 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 976 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 977 text = text.split(" "); 978 var newPath = path.split(" "); 979 if(text[0] == newPath[0]){ 980 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 981 } 982 } 983 984 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 985 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 986 text2 = text2.split(" "); 987 var newPath2 = path.split(" "); 988 if(text2[0] == newPath2[0]){ 989 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 990 } 991 } 992 } 993 994 setTimeout(function(){ 995 if($(".path").length != 0){ 996 $(".path > ol > li:eq(1)").addClass("on"); 997 var path = $(".path > ol > li:eq(1)").text() 998 if(path == "ê²ìí"){ 999 $(".path > ol > li:eq(2)").addClass("off"); 1000 path = $(".path > ol > li:eq(2)").text() 1001 } 1002 $('#header .h_menu').addClass(path); 1003 1004 1005 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 1006 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 1007 text = text.split(" "); 1008 var newPath = path.split(" "); 1009 if(text[0] == newPath[0]){ 1010 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 1011 } 1012 } 1013 1014 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 1015 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 1016 text2 = text2.split(" "); 1017 var newPath2 = path.split(" "); 1018 if(text2[0] == newPath2[0]){ 1019 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 1020 } 1021 } 1022 } 1023 }, 500); 1024 1025 1026 1027 setTimeout(function(){ 1028 if($(".path").length != 0){ 1029 $(".path > ol > li:eq(1)").addClass("on"); 1030 var path = $(".path > ol > li:eq(1)").text() 1031 if(path == "ê²ìí"){ 1032 $(".path > ol > li:eq(2)").addClass("off"); 1033 path = $(".path > ol > li:eq(2)").text() 1034 } 1035 $('#header .h_menu').addClass(path); 1036 1037 1038 for(var i = 0; i < $('#header .h_menu.t1 .hm_main > li').length; i++){ 1039 var text = $('#header .h_menu.t1 .hm_main > li:eq('+i+') a').text(); 1040 text = text.split(" "); 1041 var newPath = path.split(" "); 1042 if(text[0] == newPath[0]){ 1043 $('#header .h_menu.t1 .hm_main > li:eq('+i+')').addClass("open"); 1044 } 1045 } 1046 1047 for(var i = 0; i < $('#header .h_menu.t2 .hm_main > li').length; i++){ 1048 var text2 = $('#header .h_menu.t2 .hm_main > li:eq('+i+') > a').text(); 1049 text2 = text2.split(" "); 1050 var newPath2 = path.split(" "); 1051 if(text2[0] == newPath2[0]){ 1052 $('#header .h_menu.t2 .hm_main > li:eq('+i+')').addClass("open"); 1053 } 1054 } 1055 } 1056 }, 800); 1057 1058 1059 var href = window.location.href; 1060 1061 if(href.includes("list_best.html")){ 1062 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory li").length; i++){ 1063 var cateHref = $("#contents.c_sub .cs_cate .menuCategory li:eq("+i+") a").attr("href"); 1064 var cateNum = cateHref.split("/"); 1065 var myHref = "/product/list_best.html?cate_no=" + cateNum[3]; 1066 $("#contents.c_sub .cs_cate .menuCategory li:eq("+i+") a").attr("href",myHref); 1067 } 1068 } 1069 1070 1071 if(href.includes("list_comoninoz.html")){ 1072 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1073 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1074 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1075 var cateNum = cateHref.split("/"); 1076 var myHref = "/product/list_comoninoz.html?cate_no=" + cateNum[3]; 1077 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1078 1079 } 1080 } 1081 }else if(href.includes("list_deliccent.html")){ 1082 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1083 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1084 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1085 var cateNum = cateHref.split("/"); 1086 var myHref = "/product/list_deliccent.html?cate_no=" + cateNum[3]; 1087 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1088 } 1089 } 1090 }else if(href.includes("list_fieldworker.html")){ 1091 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1092 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1093 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1094 var cateNum = cateHref.split("/"); 1095 var myHref = "/product/list_fieldworker.html?cate_no=" + cateNum[3]; 1096 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1097 } 1098 } 1099 }else if(href.includes("list_gola.html")){ 1100 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1101 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1102 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1103 var cateNum = cateHref.split("/"); 1104 var myHref = "/product/list_gola.html?cate_no=" + cateNum[3]; 1105 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1106 } 1107 } 1108 }else if(href.includes("list_oceanpacific.html")){ 1109 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1110 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1111 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1112 var cateNum = cateHref.split("/"); 1113 var myHref = "/product/list_oceanpacific.html?cate_no=" + cateNum[3]; 1114 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1115 } 1116 } 1117 }else if(href.includes("list_ordinaryholiday.html")){ 1118 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1119 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1120 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1121 var cateNum = cateHref.split("/"); 1122 var myHref = "/product/list_ordinaryholiday.html?cate_no=" + cateNum[3]; 1123 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1124 } 1125 } 1126 }else if(href.includes("list_w.standard.html")){ 1127 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1128 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1129 var cateHref = $("#contents.c_sub .cs_ca
1129tegory .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1130 var cateNum = cateHref.split("/"); 1131 var myHref = "/product/list_w.standard.html?cate_no=" + cateNum[3]; 1132 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1133 } 1134 } 1135 }else if(href.includes("list_lookbook.html")){ 1136 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1137 for(var i = 0; i < $("#contents.c_sub .menuCategory > li").length; i++){ 1138 if($("#contents.c_sub .menuCategory > li:eq("+i+")").attr("name") == "LOOKBOOK"){ 1139 $("#contents.c_sub .menuCategory > li:eq("+i+")").removeClass("blind"); 1140 $("#contents.c_sub .menuCategory > li:eq("+i+") > a").addClass("blind"); 1141 } 1142 for(var j = 0; j < $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1143 var cateHref = $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1144 var cateNum = cateHref.split("/"); 1145 var myHref = "/product/list_lookbook.html?cate_no=" + cateNum[3]; 1146 $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1147 for(var k = 0; k < $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1148 var cateHref = $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1149 var cateNum = cateHref.split("/"); 1150 var myHref = "/product/list_lookbook.html?cate_no=" + cateNum[3]; 1151 $("#contents.c_sub .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1152 } 1153 } 1154 } 1155 }else if(href.includes("list_loveit.html")){ 1156 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1157 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1158 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "WONDER LOOK"){ 1159 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1160 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1161 } 1162 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1163 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1164 var cateNum = cateHref.split("/"); 1165 var myHref = "/product/list_loveit.html?cate_no=" + cateNum[3]; 1166 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1167 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1168 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1169 var cateNum = cateHref.split("/"); 1170 var myHref = "/product/list_loveit.html?cate_no=" + cateNum[3]; 1171 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1172 } 1173 } 1174 } 1175 }else if(href.includes("list_wondercrew.html")){ 1176 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1177 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1178 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "WONDER CREW"){ 1179 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1180 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1181 } 1182 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1183 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1184 var cateNum = cateHref.split("/"); 1185 var myHref = "/product/list_wondercrew.html?cate_no=" + cateNum[3]; 1186 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1187 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1188 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1189 var cateNum = cateHref.split("/"); 1190 var myHref = "/product/list_wondercrew.html?cate_no=" + cateNum[3]; 1191 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1192 } 1193 } 1194 } 1195 }else if(href.includes("list_seeing.html")){ 1196 $("#contents.c_sub .cs_cate .menuCategory > li").addClass("blind"); 1197 for(var i = 0; i < $("#contents.c_sub .cs_cate .menuCategory > li").length; i++){ 1198 if($("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").attr("name") == "SEEING"){ 1199 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+")").removeClass("blind"); 1200 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > a").addClass("blind"); 1201 } 1202 for(var j = 0; j < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1203 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1204 var cateNum = cateHref.split("/"); 1205 var myHref = "/product/list_seeing.html?cate_no=" + cateNum[3]; 1206 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1207 for(var k = 0; k < $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li").length; k++){ 1208 var cateHref = $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href"); 1209 var cateNum = cateHref.split("/"); 1210 var myHref = "/product/list_seeing.html?cate_no=" + cateNum[3]; 1211 $("#contents.c_sub .cs_cate .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > .button > ul > li:eq("+k+") a").attr("href",myHref); 1212 } 1213 } 1214 } 1215 }else if(href.includes("list_brand.html")){ 1216 for(var i = 0; i < $("#contents.c_sub .cs_category .menuCategory > li").length; i++){ 1217 for(var j = 0; j < $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li").length; j++){ 1218 var cateHref = $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href"); 1219 var cateNum = cateHref.split("/"); 1220 var myHref = "/product/list_brand.html?cate_no=" + cateNum[3]; 1221 $("#contents.c_sub .cs_category .menuCategory > li:eq("+i+") > ul > li:eq("+j+") > a").attr("href",myHref); 1222 } 1223 } 1224 } 1225 1226 1227 1228 1229 1230 1231 1232 // if($("#productbanner .p_pic img").length != 0){
1233 // for(var i = 0; i < $("#productbanner .p_pic img").length; i ++){ 1234 // var src = $("#productbanner .p_pic img").attr("src"); 1235 // $("#productbanner .p_pic").css('background-image', 'url('+src+')'); 1236 // } 1237 // var href = window.location.href; 1238 // if(href.match("list.html")){ 1239 // if(!href.match("search_form") && !href.match("page")){ 1240 // $("body").addClass("hasbanner"); 1241 // } 1242 // } 1243 // } 1244 1245 if($('#metades').length){ 1246 $('#metades').text($('meta[name="author"]').attr('content')); 1247 } 1248 1249 1250}); 1251$(function(){ 1252 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 1253 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 1254 var bShippingCountryProc = false; 1255 1256 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1257 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 1258 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 1259 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptioncountry').hide(); 1260 } else { 1261 $('.thumb .xans-layout-multishoplistitem').hide(); 1262 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 1263 if (typeof(aShippingCountryCode) != 'undefined' && aS
1263hippingCountryCode != null && aShippingCountryCode.length > 2) { 1264 var sShippingCountryValue = aShippingCountryCode[2]; 1265 } 1266 1267 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 1268 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 1269 1270 if (aHrefCountryValue.length == 2) { 1271 var sShippingCountryValue = aHrefCountryValue[1]; 1272 } 1273 1274 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 1275 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 1276 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1277 1278 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1279 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1280 } 1281 } 1282 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 1283 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 1284 var bShippingCountryProc = true; 1285 1286 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1287 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1288 var expires = new Date(); 1289 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1290 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1291 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1292 $("#f_country").val(sShippingCountryValue).change(); 1293 } 1294 } 1295 } 1296 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1297 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 1298 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 1299 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption .xans-layout-multishoplistmultioptionlanguage').hide(); 1300 } else { 1301 $('.thumb .xans-layout-multishoplistitem').hide(); 1302 } 1303 1304 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1305 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 1306 $(".xans-layout-multishopshipping").hide(); 1307 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioption').hide(); 1308 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 1309 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 1310 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1311 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1312 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 1313 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 1314 $(".xans-layout-multishopshipping").show(); 1315 } 1316 } 1317 1318 $(".xans-layout-multishopshipping .close").on("click", function() { 1319 $(".xans-layout-multishopshipping").hide(); 1320 }); 1321 1322 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 1323 var expires = new Date(); 1324 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1325 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1326 1327 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
1327ì ëê¹ 1328 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1329 1330 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 1331 }); 1332 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a").on("click", function() { 1333 $(".xans-layout-multishopshipping").show(); 1334 }); 1335 } 1336});
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.