1/** 2 * ì¹´í ê³ ë¦¬ 리ì¤í¸ ìí ì ë ¬ 3 */ 4var aUrl = location.href.split('?'); 5var sQueryString = aUrl[1]; 6 7/** 8 * íë¼ë¯¸í°ê° ììê²½ì°ìë§ ì²ë¦¬ 9 */ 10$(function(){ 11 if (sQueryString && sQueryString.indexOf('sort_method') > -1) { 12 for (var i=0; i<$('#selArray option').length; i++) { 13 if ($('#selArray option').eq(i).val().indexOf(sQueryString) > -1) { 14 $('#selArray option').eq(i).prop("selected", true); 15 } 16 } 17 } 18}); 19 20$('#selArray').on('change', function() { 21 if ($('#selArray').val()) { 22 location.href=$('#selArray').val(); 23 } 24}); 25 26function goThumg(url) { 27 location.href = url+'?'+sQueryString; 28} 29/** 30 * í ì¸ê¸°ê° ë ì´ì´ 31 */ 32$(function(){ 33 $(document).on('click', '.discountPeriod > a', function() { 34 $(this).parent().find('.layerDiscountPeriod').show(); 35 }); 36 37 $(document).on('click', '.btnClose, button.submit', function() { 38 $(this).parents('.layerDiscountPeriod').hide(); 39 }); 40}); 41$(document).ready(function() { 42 43 $("body").removeClass("no-js"); 44 45 if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { 46 $("body").addClass("is-mobile"); 47 } else { 48 $("body").addClass("is-pc"); 49 } 50 51 52 53 54 // ì¤í¨í´ë찾기 55 var href = $("#path").find("a").attr("href"); 56 if(href == "/" && href != "skin-base"){ 57 var path = ""; 58 } else { 59 var path = $("#path").find("a").attr("href"); 60 } 61 62 63 64 // ì´ë¯¸ì§ ìë¬ì¼ë ìì // 65 $(window).bind('load', function() { 66 $('img').each(function() { 67 if( (typeof this.naturalWidth != "undefined" && this.naturalWidth == 0) 68 || this.readyState == 'uninitialized') { 69 $(this).attr('src', '/_ruben/common/blank.png'); 70 } 71 }); 72 }); 73 74 // ìì´ì½ 75 function icon() { 76 $(".prdList > li, .prdList .swiper-slide").not('.slick-cloned').each(function(){ 77 //$(this).find("img[class^='icon_img ec-product-']").wrap("<div class='ico-wish'></div>"); // ê´ì¬ìíë´ê¸° ëí 78 $(this).find("img[src*='btn_wish']").after("<span class='wish-ico'></span>"); // ê´ì¬ìíë´ê¸° 79 //$(".ec-base-product .prdList .thumbnail .wish img[src*='btn_wish_before']").after("<span class='wish-ico'></span>"); 80 $(this).find(".pl-button img[class*='cart']").wrap("<div class='ico-cart'></div>"); // ì¥ë°êµ¬ëë´ê¸° 81 $(this).find(".pl-button img[src*='btn_prd_zoom']").wrap("<div class='ico-zoom'></div>"); // ìíí°ì´ë¯¸ì§ë³´ê¸° 82 $(this).find(".pl-button img[class^='option_preview']").parent().wrap("<div class='ico-option'></div>"); // ìµì 미리보기 83 $(this).find(".pl-button img[src*='ico_likeit']").after("<span class='like-ico'></span>"); // ì¢ìì 84 }); 85 } 86 87 88 89 // íì ìì´ì½ 90 $("img[src*='/board/ico_star']").each(function(){ 91 var point = $(this).attr("alt"); 92 point = parseInt(point.replace(/,/g, '')); 93 $(this).attr("src", path+"/_ruben/common/ico-star-"+point+".svg"); 94 }); 95 96 // ì¶ì² ìì´ì½ 97 $("img[src*='/board/ico_recommend']").each(function(){ 98 $(this).attr("src", path+"/_ruben/common/ico-recommend.svg"); 99 }); 100 101 // 모ë°ì¼ ìì´ì½ 102 $("img[src*='/board/ico_mobile']").each(function(){ 103 $(this).attr("src", path+"/_ruben/common/ico-mobile.svg"); 104 }); 105 106 // ë¹ë°ê¸ ìì´ì½ 107 $("img[src*='/ico_lock']").each(function(){ 108 $(this).attr("src", path+"/_ruben/common/ico-lock.svg"); 109 }); 110 111 // ì²¨ë¶ ìì´ì½ 112 $("img[src*='ico_attach2.gif']").each(function(){ 113 $(this).attr("src", path+"/_ruben/common/ico-attatch.svg"); 114 }); 115 116 //íì íì 117 function soldout() { 118 $(".ec-base-product .prdList > li, .prd-slider.prdList .slide-item").each(function(){ 119 var thumb = $(this).find(".thumbnail > a > img"); 120 var soldout = $(this).find(".description .spec img[alt^='íì ']"); 121 if($(soldout).length){ 122 thumb.addClass("soldout"); 123 thumb.before("<div class='layer-soldout'></div>"); 124 } 125 }); 126 } 127 128 129 130 // ê°¤ë¬ë¦¬ blank.png ì½ì 131 $(".xans-board-list-8 .thumbnail").each(function(){ 132 var a = $(this).children("a"); 133 $(this).addClass("cover"); 134 a.prepend("<div class='dummy'><img src='"+path+"/_ruben/common/blank.png''></div>"); 135 }); 136 137 138 139 140 // ë§ì°ì¤ ë ëë©´ ìµì 미리보기ë ë ëì 141 $(".ec-base-product .prdList > li, .ec-base-product .prdList > div").mouseleave(function(){ 142 $(".xans-product-optionpreview").remove(); 143 }); 144 145 146 147 $("ul.flex li").each(function(){ 148 if($(this).text().length == 0){ 149 $(this).remove(); 150 } 151 }); 152 153 154 155 // ê²ìí > ê¸ì½ê¸° > í¨ì¤ìë ì¨ê¹ ì²ë¦¬ 156 $(".xans-board-read .password").each(function(){ 157 var form = $(this).find(".passwordForm"); 158 if(form.hasClass("displaynone")) { 159 $(this).addClass("displaynone"); 160 } 161 }); 162 163 164 165 // ë¡ê·¸ì¸ > ë³´ì option 166 $(".xans-member-login .formBox .option > span").each(function(){ 167 if(!$(this).text().length){ 168 $(this).remove(); 169 } 170 }); 171 172 173 174 // íìê°ì > ë¹ í ì´ë¸ ìì 175 $(".xans-member-join .ec-base-table.typeWrite").each(function(){ 176 if ($(this).height() < 50) { 177 $(this).addClass("displaynone"); 178 } 179 }); 180 181 182 // íì ìì´ì½ êµì²´ 183 $("img[src*='ico_required.png']").each(function(){ 184 $(this).addClass("ico-dot"); 185 $(this).attr("src", ""+path+"/_ruben/common/ico-dot.svg"); 186 }); 187 188 189 // 구매í기 ê²ìí url ë³ê²½ 190 $(".xans-layout-boardinfo a[href*='/4/']").each(function() { 191 $(this).removeAttr("href").attr("href", "/board/review/list.html?board_no=4"); 192 }); 193 194 195 196 197 // ë¬ë ¥ìì´ì½ 198 $("img[src*='ico_cal.gif']").each(function(){ 199 $(this).attr("src", ""+path+"/_ruben/common/ico-calendar.svg"); 200 }); 201 202 203 if($(".xans-myshop-orderhistoryhead").length){ 204 $(".xans-myshop-orderhistoryhead").each(function(){ 205 206 var btn = $(this).find("#order_search_btn"); 207 208 btn.attr("type", "submit");
209 btn.removeAttr("src"); 210 btn.attr("value", "ì¡°í"); 211 212 213 }); 214 } 215 216 217 218 // ê°ê²©ê´ë ¨ + í ì¸ì¨ 219 function PrdListSet() { 220 // ìíëª©ë¡ 221 $(".prdList > li, .prdList .slick-slide, .prdList .swiper-slide").each(function(){ 222 223 var priceDiv = $(this).find("#priceArea"); 224 var price = $(this).find(".spec li span:contains('í매ê°'):not(:contains('í ì¸'))"); // 1.íë§¤ê° 225 var custom = $(this).find(".spec li strong span:contains('ìë¹ìê°')"); // 2.ìë¹ìê° 226 var sale1 = $(this).find(".spec li strong span:contains('í ì¸'):not(:contains('기ê°'))"); // 3.í ì¸ê°+í ì¸íë§¤ê° 227 var sale2 = $(this).find(".spec li strong span:contains('ì¿ í°')"); // 4.ì¿ í°ì ì©ê° 228 var sale3 = $(this).find(".spec li strong span:contains('ìµì ')"); // 5.ìµì ê°+ìµì í ì¸ê° 229 var periodDiv = $(this).find(".spec li strong span:contains('기ê°')"); // 6.í ì¸ê¸°ê° 230 var priceReplace = priceDiv.find(".price"); 231 var customReplace = priceDiv.find(".custom"); 232 var saleReplace1 = priceDiv.find(".sale1"); 233 var saleReplace2 = priceDiv.find(".sale2"); 234 var saleReplace3 = priceDiv.find(".sale3"); 235 var rate = $(this).find(".rate"); 236 var priceEl = priceDiv.children("div").not(rate); 237 238 239 // 1.íë§¤ê° 240 if(price.text().length) { 241 price.parent().parent().hide(); 242 price.parent().next().clone().appendTo($(priceReplace)); 243 } 244 245 // 2.ìë¹ì기 246 if(custom.text().length) { 247 priceDiv.removeClass().addClass("align-1"); 248 custom.parent().parent().hide(); 249 custom.parent().next().clone().appendTo($(customReplace)); 250 } else { 251 customReplace.remove(); 252 } 253 254 // 3.í ì¸ê°+í ì¸íë§¤ê° 255 if(sale1.text().length) { 256 priceDiv.removeClass().addClass("align-2"); 257 sale1.parent().parent().hide(); 258 sale1.parent().next().clone().appendTo($(saleReplace1)); 259 260 // data-sale ê°ê²© êµì²´ 261 saleReplace1.each(function(){ 262 var saleVal = $(this).find("#span_product_price_sale").text(); 263 rate.attr("data-sale", saleVal); 264 }); 265 266 } else { 267 saleReplace1.remove(); 268 } 269 270 271 // 4.ì¿ í°ì ì©ê° 272 if(sale2.text().length) { 273 priceDiv.removeClass().addClass("align-3"); 274 sale2.parent().parent().hide(); 275 sale2.parent().next().clone().appendTo($(saleReplace2)); 276 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 277 278 // data-sale ê°ê²© êµì²´ 279 saleReplace2.each(function(){ 280 $(this).html($(this).html().replace(/(\([^]+\))/, '')); 281 $(this).find("br").remove(); 282 var saleVal = $(this).find("span").text(); 283 saleVal = parseInt(saleVal.replace(/,/g, '')); 284 rate.attr("data-sale", saleVal); 285 }); 286 } else { 287 saleReplace2.remove(); 288 } 289 290 291 //5.ìµì ê°+ìµì í ì¸ê° 292 if(sale3.text().length) { 293 priceDiv.removeClass().addClass("align-4"); 294 sale3.parent().parent().hide(); 295 sale3.parent().next().clone().appendTo($(saleReplace3)); 296 saleReplace2.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 297 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 298 rate.attr("data-sale", saleReplace3); 299 300 // data-sale ê°ê²© êµì²´ 301 saleReplace3.each(function(){ 302 var saleVal = $(this).find("span").text(); 303 saleVal = parseInt(saleVal.replace(/,/g, '')); 304 rate.attr("data-sale", saleVal); 305 }); 306 307 } else { 308 saleReplace3.remove(); 309 } 310 311 312 //6.í ì¸ê¸°ê° 313 if(periodDiv.length){ 314 periodDiv.parent().hide(); 315 var a = periodDiv.parent().next().children("a"); 316 var layer = periodDiv.parent().next().find(".layerDiscountPeriod"); 317 a.append("í ì¸ê¸°ê°"); 318 a.click(function(){ 319 layer.toggle(); 320 }); 321 } 322 323 324 // 7.ë¹ div ìì 325 priceEl.each(function(){ 326 if(!$(this).text().length){ 327 $(this).remove(); 328 } 329 }); 330 331 332 //8. í ì¸ì¨ 333 rate.each(function() { 334 var data_custom = $(this).attr('data-custom'); 335 var data_price = $(this).attr('data-price'); 336 var data_sale = $(this).attr('data-sale'); 337 338 var disc = 0; 339 340 data_custom = parseInt(data_custom.replace(/,/g, '')); 341 data_price = parseInt(data_price.replace(/,/g, '')); 342 data_sale = parseInt(data_sale.replace(/,/g, '')); 343 344 // íë§¤ê° & ìë¹ì ê°ìë ìë¹ìê° ê°ì¶¤ 345 if(data_custom == data_price){ 346 customReplace.remove(); 347 } 348 349 // í ì¸ì¨ 350 if (!isNaN(data_custom) && !isNaN(data_price) && 0 < data_custom) { 351 disc = Math.round((data_custom - data_price) / data_custom * 100); 352 //disc = Math.round(data_custom - data_price); 353 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 354 } 355 356 if (!isNaN(data_price) && !isNaN(data_sale) && 0 < data_price) { 357 disc = Math.round((data_price - data_sale) / data_price * 100); 358 //disc = Math.round(data_price - data_sale); 359 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 360 } 361 362 if(disc>0) { 363 $(this).addClass('rate-on'); 364 $(this).html(discTxt + '%'); 365 } 366 367 }); 368 369 370 371 372 }); 373 } 374 375 376 377 function prdRate() { 378 $(".prdList > li, .prdList .slick-slide, .prdList .swiper-slide").each(function(){ 379 var priceDiv = $(this).find("#priceArea"); 380 var priceReplace = priceDiv.find(".price"); 381 var customReplace = priceDiv.find(".custom"); 382 var saleReplace1 = priceDiv.find(".sale1"); 383 var saleReplace2 = priceDiv.find(".sale2"); 384 var saleReplace3 = priceDiv.find(".sale3"); 385 var rate = priceDiv.find(".rate"); 386 387 rate.each(function() { 388 var data_custom = $(this).attr('data-custom'); 389 var data_price = $(this).attr('data-price'); 390 var data_sale = $(this).attr('data-sale'); 391 392 var disc = 0; 393 394 data_custom = parseInt(data_custom.replace(/,/g, '')); 395 data_price = parseInt(data_price.replace(/,/g, '')); 396 data_sale = parseInt(data_sale.replace(/,/g, '')); 397 398 // íë§¤ê° & ìë¹ì ê°ìë ìë¹ìê° ê°ì¶¤ 399 if(data_custom == data_price){ 400 customReplace.remove(); 401 } 402 403 // í ì¸ì¨ 404 if (!isNaN(data_custom) && !isNaN(data_price) && 0 < data_custom) { 405 disc = Math.round((data_custom - data_price) / data_custom * 100); 406 //disc = Math.round(data_custom - data_price); 407 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 408 } 409 410 if (!isNaN(data_price) && !isNaN(data_sale) && 0 < data_price) { 411 disc = Math.round((data_price - data_sale) / data_price * 100); 412 //disc = Math.round(data_price - data_sale); 413 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 414 } 415 416 if(disc>0) { 417 $(this).addClass('rate-on'); 418 $(this).html(discTxt + '%'); 419 } else { 420 rate.remove(); 421 } 422 423 }); 424 }); 425 426 } 427 428
429 $(document).ready(function() { 430 //PrdListSet(); 431 //prdRate(); 432 soldout(); 433 icon(); 434 }); 435 436 437 438 439 function recom_slide(){ 440 var swiper = new Swiper('#recommend-slide', { 441 loop: false, 442 observer: true, 443 observeParents: true, 444 slidesPerView: 2.3, 445 centeredSlides: false, 446 spaceBetween: 12, 447 pagination: { 448 el: '#recommend-slide .swiper-pagination', 449 type: 'progressbar', 450 }, 451 navigation: false, 452 navigation: { 453 nextEl: '#recommend-slide .swiper-button-next', 454 prevEl: '#recommend-slide .swiper-button-prev', 455 }, 456 breakpoints: { 457 801: { 458 slidesPerView: 4, 459 spaceBetween: 16, 460 } 461 }, 462 }); 463 } 464 465 466 467 function recom_slide_grid1(){ 468 var swiper = new Swiper('#recommend-slide', { 469 loop: false, 470 observer: true, 471 observeParents: true, 472 slidesPerView: 2.3, 473 centeredSlides: false, 474 spaceBetween: 20, 475 pagination: { 476 el: '#recommend-slide .swiper-pagination', 477 type: 'progressbar', 478 }, 479 breakpoints: { 480 767: { 481 slidesPerView: 3, 482 spaceBetween: 16, 483 }, 484 480: { 485 slidesPerView: 1, 486 spaceBetween: 12, 487 }, 488 }, 489 }); 490 } 491 492 493 // ìíëª©ë¡ > ì¶ì²ìí ì¤ìì´í 494 $(".xans-product-listrecommend").each(function(){ 495 var list = $(this).find(".prdList").not(".grid1"); 496 var item = list.children("li"); 497 var desc = $(this).find(".prdList li .description"); 498 var grid1 = $(this).find(".prdList.grid1"); 499 var item_grid1 = grid1.children("li"); 500 501 502 if(item.length){ 503 list.attr("id", "recommend-slide"); 504 list.wrapInner("<div class='swiper-wrapper'>"); 505 list.append("<div class='swiper-pagination'></div>"); 506 item.addClass("swiper-slide"); 507 recom_slide(); 508 } 509 510 if(item_grid1.length){ 511 grid1.attr("id", "recommend-slide"); 512 grid1.wrapInner("<div class='swiper-wrapper'>"); 513 item_grid1.addClass("swiper-slide"); 514 recom_slide_grid1(); 515 } 516 517 518 }); 519 520 521 522 523 524 // ìíëª©ë¡ > ì¤ë¶ë¥ ì¤ìì´í¸ 525 $(function(){ 526 527 528 529 if($(".menuCategory > li").length){ 530 531 532 var on = $('.swiper-category .swiper-slide.selected'); 533 var idx = (on.length > 0)? on.index() : 0; 534 535 if($(".swiper-category .swiper-wrapper").hasClass("round")){ 536 537 var swiper = new Swiper('.swiper-category', { 538 watchSlidesVisibility: true, 539 watchSlidesProgress: true, 540 initialSlide : idx - 1, 541 slidesPerView: 'auto', 542 centeredSlides: false, 543 spaceBetween: 0, 544 slidesOffsetBefore: 0, 545 navigation: false, 546 navigation: { 547 nextEl: '.swiper-category .swiper-button-next', 548 prevEl: '.swiper-category .swiper-button-prev', 549 }, 550 observer: true, 551 observeParents: true 552 }); 553 554 } else { 555 556 var swiper = new Swiper('.swiper-category', { 557 observer: true, 558 observeParents: true, 559 initialSlide : idx - 1, 560 slidesPerView: 'auto', 561 centeredSlides: false, 562 spaceBetween: 0, 563 navigation: false, 564 navigation: { 565 nextEl: '.swiper-category .swiper-button-next', 566 prevEl: '.swiper-category .swiper-button-prev', 567 }, 568 }); 569 } 570 571 } else { 572 $("#menuCategory").hide(); 573 $(".xans-product-listrecommend").addClass("no-subcate"); 574 } 575 576 577 }); 578 579 580 // ì¤ë¶ë¥ & ìë¶ë¥ & ìì¸ë¶ë¥ 581 $(function(){ 582 583 $(".menuCategory > li.selected").each(function(){ 584 $(this).children("ul.depth1").clone().appendTo($("#subMenuCategory")); 585 $("#subMenuCategory ul.depth1").removeClass("displaynone"); 586 $("#subMenuCategory").find(".depth2").remove(); 587 }); 588 589 590 $(".menuCategory .depth1 > li.selected").each(function(){ 591 $(this).parent().parent().addClass("selected"); 592 $(this).parent().clone().appendTo($("#subMenuCategory")); 593 $(this).find("ul.depth2").clone().appendTo($("#detailSubMenu")); 594 $("#subMenuCategory ul.depth1").removeClass("displaynone"); 595 $("#detailSubMenu").find("ul.depth2").removeClass("displaynone"); 596 }); 597 598 599 $(".menuCategory .depth2 > li.selected").each(function(){ 600 $(this).parent().parent().addClass("selected"); 601 $(this).parent().parent().parent().parent().addClass("selected"); 602 $(this).parent().parent().parent().clone().appendTo($("#subMenuCategory")); 603 $(this).parent("ul.depth2").clone().appendTo($("#detailSubMenu")); 604 $("#subMenuCategory ul.depth1").removeClass("displaynone"); 605 $("#detailSubMenu").find("ul.depth2").removeClass("displaynone"); 606 }); 607 608 609 610 if($("#subMenuCategory ul").length){ 611 $("#menuCategory").addClass("has-child"); 612 var on = $('#subMenuCategory .swiper-slide.selected'); 613 var idx = (on.length > 0)? on.index() : 0; 614 /* 615 var swiper = new Swiper('#subMenuCategory', { 616 observer: true, 617 observeParents: true, 618 initialSlide : idx - 1, 619 slidesPerView: 'auto', 620 centeredSlides: false, 621 spaceBetween: 0, 622 slidesOffsetBefore: 0, 623 navigation: false, 624 navigation: { 625 nextEl: '#subMenuCategory .swiper-button-next', 626 prevEl: '#subMenuCategory .swiper-button-prev', 627 }, 628 }); 629 */ 630 } else { 631 $("#menuCategory").removeClass("has-child"); 632 $("#subMenuCategory").hide(); 633 } 634 635 636 if($("#detailSubMenu ul").length){ 637 var on = $('#detailSubMenu .swiper-slide.selected'); 638 var idx = (on.length > 0)? on.index() : 0; 639 640 var swiper = new Swiper('#detailSubMenu', { 641 observer: true, 642 observeParents: true, 643 initialSlide : idx - 1, 644 slidesPerView: 'auto', 645 centeredSlides: false, 646 spaceBetween: 0, 647 slidesOffsetBefore: 0, 648 navigation: false, 649 navigation: { 650 nextEl: '#detailSubMenu .swiper-button-next', 651 prevEl: '#detailSubMenu .swiper-button-prev', 652 }, 653 }); 654 } else { 655 $("#detailSubMenu").hide(); 656 } 657 658 659 }); 660 661 662 663 664 // ìíëª©ë¡ > ì¤ë¶ë¥ ìì¹ 665 function subCate(x) { 666 if (x.matches) { 667 $("#menuCategory").appendTo($("#title-wrap")); 668 } else { 669 $("#menuCategory").insertAfter($(".xans-product-menupackage")); 670 } 671 } 672 673 var x = window.matchMedia("(min-width: 801px)"); 674 subCate(x); 675 x.addListener(subCate); 676 677 678 679 // ìµì ë ì´ì´ ë ¸ì¶ì body hidden 680 /* 681 $(document).on('DOMNodeInserted', function(e) { 682 $("#capp-shop-new-product-optionselect-backlayer").click(function(){ 683 $("body#layout").removeClass("hidden"); 684 }); 685 }); 686 */ 687 688 689 690 691 692 // ìíëª©ë¡ ë보기 í´ë¦ì ì¤í 693 /* 694 $(document).on('DOMNodeInserted', function(e) { 695 696 $(e.target).each(function(){ 697 698 699 // ìì´ì½ 700 $(this).find("img[src*='btn_wish_before']").after("<span class='wish-ico'></span>"); 701 $(this).find(".pl-button img[class*='cart']").wrap("<div class='ico-cart'></div>"); // ì¥ë°êµ¬ëë´ê¸° 702 $(this).find(".pl-button img[src*='ico_likeit']").after("<span class='like-ico'></span>"); // ì¢ìì 703 704 705 706 707 708 // ìíëª©ë¡ > ê°ê²© + í ì¸ì¨ 709 var priceDiv = $(this).find("#priceArea"); 710 var price = $(this).find(".spec li span:contains('í매ê°'):not(:contains('í ì¸'))"); // 1.íë§¤ê° 711 var custom = $(this).find(".xans-product-listitem.spec li strong span:contains('ìë¹ìê°')"); // 2.ìë¹ìê° 712 var sale1 = $(this).find(".spec li strong span:contains('í ì¸'):not(:contains('기ê°'))"); // 3.í ì¸ê°+í ì¸íë§¤ê° 713 var sale2 = $(this).find(".spec li strong span:contains('ì¿ í°')"); // 4.ì¿ í°ì ì©ê° 714 var sale3 = $(this).find(".spec li strong span:contains('ìµì ')"); // 5.ìµì ê°+ìµì í ì¸ê° 715 var periodDiv = $(this).find(".spec li strong span:contains('기ê°')"); // 6.í ì¸ê¸°ê° 716 var priceReplace = priceDiv.find(".price"); 717 var customReplace = priceDiv.find(".custom"); 718 var saleReplace1 = priceDiv.find(".sale1"); 719 var saleReplace2 = priceDiv.find(".sale2"); 720 var saleReplace3 = priceDiv.find(".sale3"); 721 var rate = $(this).find(".rate"); 722 var priceEl = priceDiv.children("div").not(rate); 723 724 725 // 1.íë§¤ê° 726 if(price.text().length) { 727 price.parent().parent().hide(); 728 price.parent().next().clone().appendTo($(priceReplace)); 729 } 730 731 // 2.ìë¹ì기 732 if(custom.text().length) { 733 custom.parent().parent().hide(); 734 custom.parent().next().clone().appendTo($(customReplace)); 735 } 736 737 // 3.í ì¸ê°+í ì¸íë§¤ê° 738 if(sale1.text().length) { 739 sale1.parent().parent().hide(); 740 sale1.parent().next().clone().appendTo($(saleReplace1)); 741 742 // data-sale ê°ê²© êµì²´ 743 saleReplace1.each(function(){ 744 var saleVal = $(this).find("#span_product_price_sale").text(); 745 rate.attr("data-sale", saleVal); 746 }); 747 748 } 749 750 751 // 4.ì¿ í°ì ì©ê° 752 if(sale2.text().length) { 753 sale2.parent().parent().hide(); 754 sale2.parent().next().clone().appendTo($(saleReplace2)); 755 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 756 757 // data-sale ê°ê²© êµì²´ 758 saleReplace2.each(function(){ 759 $(this).html($(this).html().replace(/(\([^]+\))/, '')); 760 $(this).find("br").remove(); 761 var saleVal = $(this).find("span").text(); 762 saleVal = parseInt(saleVal.replace(/,/g, '')); 763 rate.attr("data-sale", saleVal); 764 }); 765 } 766 767 768 //5.ìµì ê°+ìµì í ì¸ê° 769 if(sale3.text().length) { 770 sale3.parent().parent().hide(); 771 sale3.parent().next().clone().appendTo($(saleReplace3)); 772 saleReplace2.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 773 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 774 rate.attr("data-sale", saleReplace3); 775 776 // data-sale ê°ê²© êµì²´ 777 saleReplace3.each(function(){ 778 var saleVal = $(this).find("span").text(); 779 saleVal = parseInt(saleVal.replace(/,/g, '')); 780 rate.attr("data-sale", saleVal); 781 }); 782 783 } 784 785 786 //6.í ì¸ê¸°ê° 787 if(periodDiv.length){ 788 periodDiv.parent().hide(); 789 var a = periodDiv.parent().next().children("a"); 790 var layer = periodDiv.parent().next().find(".layerDiscountPeriod"); 791 a.append("í ì¸ê¸°ê°"); 792 a.click(function(){
793 layer.toggle(); 794 }); 795 } 796 797 798 // 7.ë¹ div ìì 799 priceEl.each(function(){ 800 if(!$(this).text().length){ 801 $(this).remove(); 802 } 803 }); 804 805 806 //8. í ì¸ì¨ 807 rate.each(function() { 808 var data_custom = $(this).attr('data-custom'); 809 var data_price = $(this).attr('data-price'); 810 var data_sale = $(this).attr('data-sale'); 811 812 var disc = 0; 813 814 data_custom = parseInt(data_custom.replace(/,/g, '')); 815 data_price = parseInt(data_price.replace(/,/g, '')); 816 data_sale = parseInt(data_sale.replace(/,/g, '')); 817 818 // íë§¤ê° & ìë¹ì ê°ìë ìë¹ìê° ê°ì¶¤ 819 if(data_custom == data_price){ 820 customReplace.remove(); 821 } 822 823 // í ì¸ì¨ 824 if (!isNaN(data_custom) && !isNaN(data_price) && 0 < data_custom) { 825 disc = Math.round((data_custom - data_price) / data_custom * 100); 826 //disc = Math.round(data_custom - data_price); 827 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 828 } 829 830 if (!isNaN(data_price) && !isNaN(data_sale) && 0 < data_price) { 831 disc = Math.round((data_price - data_sale) / data_price * 100); 832 //disc = Math.round(data_price - data_sale); 833 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 834 } 835 836 if(disc>0) { 837 $(this).addClass('rate-on'); 838 $(this).html(discTxt + '%'); 839 } 840 841 }); 842 843 844 845 846 847 }); 848 849 850 851 // íì íì 852 var thumb = $(this).find(".thumbnail > a > img"); 853 var soldout = $(this).find(".description .spec img[alt^='íì ']"); 854 if($(soldout).length){ 855 thumb.addClass("soldout"); 856 thumb.before("<div class='layer-soldout'></div>"); 857 } 858 859 }); 860 */ 861 862 863 864 $(function() { 865 866 867 function reset() { 868 var li = $(".prdList > li").length; 869 var div = $('#priceArea').length; 870 if(li != div || li == 1) { 871 872 873 clearInterval(reset); 874 $(".prdList > li, .prdList .swiper-slide").each(function() { 875 876 var wish = $(this).find(".wish"); 877 var icoDiv = $(this).find(".pl-button"); 878 var cart = icoDiv.find("img[class*='cart']"); 879 var like = icoDiv.find(".likeButton"); 880 881 var priceDiv = $(this).find("#priceArea"); 882 var price = $(this).find(".spec li strong:contains('í매ê°'):not(:contains('í ì¸'))"); // 1.íë§¤ê° 883 var priceTxt = price.next(); 884 var custom = $(this).find(".spec li strong:contains('ìë¹ìê°')"); // 2.ìë¹ìê° 885 var sale1 = $(this).find(".spec li strong:contains('í ì¸'):not(:contains('기ê°'))"); // 3.í ì¸ê°+í ì¸íë§¤ê° 886 var sale2 = $(this).find(".spec li strong:contains('ì¿ í°')"); // 4.ì¿ í°ì ì©ê° 887 var sale3 = $(this).find(".spec li strong:contains('ìµì ')"); // 5.ìµì ê°+ìµì í ì¸ê° 888 var periodDiv = $(this).find(".spec li strong > span:contains('기ê°')"); // 6.í ì¸ê¸°ê° 889 var priceReplace = priceDiv.find(".price"); 890 var customReplace = priceDiv.find(".custom"); 891 var saleReplace1 = priceDiv.find(".sale1"); 892 var saleReplace2 = priceDiv.find(".sale2"); 893 var saleReplace3 = priceDiv.find(".sale3"); 894 var rate = $(this).find(".rate"); 895 var priceEl = priceDiv.children("div").not(rate); 896 897 898 899 900 // ìì´ì½ > ê´ì¬ìí 901 if(!wish.find(".wish-ico").length){ 902 wish.find("img").after("<span class='wish-ico'></span>"); 903 } 904 905 // ìì´ì½ > ì¥ë°êµ¬ë 906 if(!icoDiv.find(".ico-cart").length){ 907 cart.find("img").wrap("<div class='ico-cart'></div>"); 908 } 909 910 // ìì´ì½ > ì¢ìì 911 if(!like.hasClass("displaynone") && !like.find(".like-ico").length){ 912 like.find("img").after("<span class='like-ico'></span>"); 913 } 914 915 // 1.íë§¤ê° 916 if(price.text().length) { 917 price.parent().hide(); 918 $(priceReplace).append($(price.next())); 919 if(rate.length){ 920 var size = priceReplace.children().not("#span_product_tax_type_text").css("font-size"); 921 //rate.css("font-size", size); 922 } 923 } 924 925 926 // 2.ìë¹ì기 927 if(custom.text().length) { 928 var parent = customReplace.parent(); 929 if(parent.hasClass("align-2") || parent.hasClass("align-3") || parent.hasClass("align-4")){ 930 parent.removeClass(); 931 } 932 parent.addClass("align-1"); 933 custom.parent().hide(); 934 $(customReplace).append($(custom.next())); 935 } 936 937 // 3.í ì¸ê°+í ì¸íë§¤ê° 938 if(sale1.text().length) { 939 var parent = saleReplace1.parent(); 940 if(parent.hasClass("align-1") || parent.hasClass("align-3") || parent.hasClass("align-4")){ 941 parent.removeClass(); 942 } 943 parent.addClass("align-2"); 944 sale1.parent().hide(); 945 $(saleReplace1).append($(sale1.next())); 946 947 // data-sale ê°ê²© êµì²´ 948 saleReplace1.each(function(){ 949 var saleVal = $(this).find("span").text(); 950 saleVal = parseInt(saleVal.replace(/,/g, '')); 951 rate.attr("data-sale", saleVal); 952 }); 953 } 954 955 956 // 4.ì¿ í°ì ì©ê° 957 if(sale2.text().length) { 958 var parent = saleReplace2.parent(); 959 if(parent.hasClass("align-1") || parent.hasClass("align-2") || parent.hasClass("align-4")){ 960 parent.removeClass(); 961 } 962 parent.addClass("align-3"); 963 964 sale2.parent().hide(); 965 $(saleReplace2).append($(sale2.next())); 966 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 967 968 // data-sale ê°ê²© êµì²´ 969 saleReplace2.each(function(){ 970 saleReplace2.find("br").remove(); 971 var saleVal = $(this).find("span").text(); 972 saleVal = parseInt(saleVal.replace(/,/g, '')); 973 rate.attr("data-sale", saleVal); 974 }); 975 } 976 977 978 //5.ìµì ê°+ìµì í ì¸ê° 979 if(sale3.text().length) { 980 var parent = saleReplace3.parent(); 981 if(parent.hasClass("align-1") || parent.hasClass("align-2") || parent.hasClass("align-3")){ 982 parent.removeClass(); 983 } 984 parent.addClass("align-4"); 985 986 sale3.parent().hide(); 987 $(saleReplace3).append($(sale3.next())); 988 saleReplace2.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 989 saleReplace1.remove(); // ìëì ì¼ë¡ ë®ì í ì¸ì¨ì í ì¸ê° ê°ì¶¤ 990 991 // data-sale ê°ê²© êµì²´ 992 saleReplace3.each(function(){ 993 var saleVal = $(this).find("span").text(); 994 saleVal = parseInt(saleVal.replace(/,/g, '')); 995 rate.attr("data-sale", saleVal); 996 }); 997 998 } 999 1000 1001 1002 //6.í ì¸ê¸°ê° 1003 if(periodDiv.length){ 1004 periodDiv.parent().hide(); 1005 var a = periodDiv.next().children("a"); 1006 var layer = periodDiv.next().find(".layerDiscountPeriod"); 1007 a.click(function(){
1008 layer.toggle(); 1009 }); 1010 } 1011 1012 1013 // 7.ë¹ div ìì 1014 priceEl.each(function(){ 1015 if(!$(this).text().length){ 1016 $(this).remove(); 1017 } 1018 }); 1019 1020 //8. í ì¸ì¨ 1021 if(rate.length){ 1022 rate.each(function() { 1023 var data_custom = $(this).attr('data-custom'); 1024 var data_price = $(this).attr('data-price'); 1025 var data_sale = $(this).attr('data-sale'); 1026 1027 var disc = 0; 1028 1029 data_custom = parseInt(data_custom.replace(/,/g, '')); 1030 data_price = parseInt(data_price.replace(/,/g, '')); 1031 data_sale = parseInt(data_sale.replace(/,/g, '')); 1032 1033 // íë§¤ê° & ìë¹ì ê°ìë ìë¹ìê° ê°ì¶¤ 1034 if(data_custom == data_price){ 1035 customReplace.remove(); 1036 } 1037 1038 // í ì¸ì¨ 1039 if (!isNaN(data_custom) && !isNaN(data_price) && 0 < data_custom) { 1040 disc = Math.round((data_custom - data_price) / data_custom * 100); 1041 //disc = Math.round(data_custom - data_price); 1042 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 1043 } 1044 1045 if (!isNaN(data_price) && !isNaN(data_sale) && 0 < data_price) { 1046 disc = Math.round((data_price - data_sale) / data_price * 100); 1047 //disc = Math.round(data_price - data_sale); 1048 var discTxt = disc.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); 1049 } 1050 1051 if(!rate.text().length){ 1052 1053 if(disc>0) { 1054 $(this).addClass('rate-on'); 1055 rate.html(discTxt + '%'); 1056 } else { 1057 rate.remove(); 1058 } 1059 1060 } 1061 1062 }); 1063 } 1064 1065 1066 1067 1068 1069 }); 1070 1071 } 1072 } 1073 1074 var repeat = setInterval(reset, 0); 1075 1076 $('.btnMore').on('click', function() { 1077 $('.ec-base-product .prdList > li').on('load', function() { 1078 repeat = setInterval(reset); 1079 1080 }); 1081 }); 1082 1083 1084 1085 1086 }); 1087 1088 1089 1090 1091 /* 1092 $(document).on('DOMNodeInserted', function(e) { 1093 $(e.target).each(function(){ 1094 1095 1096 // ìì´ì½ 1097 $(this).find("img[src*='btn_wish_before']").after("<span class='wish-ico'></span>"); 1098 $(this).find(".pl-button img[class*='cart']").wrap("<div class='ico-cart'></div>"); // ì¥ë°êµ¬ëë´ê¸° 1099 $(this).find(".pl-button img[src*='ico_likeit']").after("<span class='like-ico'></span>"); // ì¢ìì 1100 1101 1102 // íì íì 1103 var thumb = $(this).find(".thumbnail > a > img"); 1104 var soldout = $(this).find(".description .spec img[alt^='íì ']"); 1105 if($(soldout).length){ 1106 thumb.addClass("soldout"); 1107 thumb.before("<div class='layer-soldout'></div>"); 1108 } 1109 1110 }); 1111 }); 1112 */ 1113 1114 1115 // ìíëª©ë¡ ì¤ìì´í 1116 $(".ec-base-product").each(function(){ 1117 1118 if($(this).hasClass("slide")){ 1119 1120 var ul = $(this).find(".prdList"); 1121 ul.wrapInner("<div class='swiper-wrapper'></div>"); 1122 ul.find(".swiper-wrapper").children("li").addClass("swiper-slide"); 1123 1124 $(this).css("position", "relative"); 1125 1126 ul.each(function(index, element){ 1127 $(this).addClass('m-swiper-'+index); 1128 $(this).append('<div class="swiper-pagination"></div>'); 1129 $(this).parent().find(".title-box").append('<div class="btn swipe-btn-'+index+'"><div class="swiper-button-next"></div><div class="swiper-button-prev"></div></div>'); 1130 1131 var swiper = new Swiper('.m-swiper-'+index, { 1132 slidesPerGroup:2, 1133 grid: { 1134 rows: 2, 1135 fill: "row", 1136 }, 1137 slidesPerView: 2, 1138 spaceBetween: 15, 1139 1140 navigation: { 1141 nextEl: '.swipe-btn-'+index+' .swiper-button-next', 1142 prevEl: '.swipe-btn-'+index+' .swiper-button-prev', 1143 }, 1144 pagination: { 1145 el: '.m-swiper-'+index+' .swiper-pagination', 1146 type: "progressbar", 1147 }, 1148 1149 1150 1151 breakpoints: { 1152 481: { 1153 autoplay: false, 1154 slidesPerView: 3, 1155 spaceBetween: 20, 1156 }, 1157 801: { 1158 slidesPerGroup:1, 1159 grid: { 1160 rows: 1, 1161 fill: "row", 1162 }, 1163 slidesPerView: 3.9, 1164 spaceBetween: 20, 1165 }, 1166 }, 1167 }); 1168 1169 1170 }); // 1171 1172 } 1173 }); 1174 1175 1176 1177 1178 1179 // ë¸ëë ì¤í 리 1180 function about(x) { 1181 if (x.matches) { 1182 $(".xans-mall-company .info section").each(function(){ 1183 var pc = $(this).attr("data-pc"); 1184 var mo = $(this).attr("data-mo"); 1185 var color = $(this).attr("data-color"); 1186 $(this).css({ 1187 "font-size" : pc+"px", 1188 "color" : color, 1189 }); 1190 }); 1191 } else { 1192 1193 $(".xans-mall-company .info section").each(function(){ 1194 var pc = $(this).attr("data-pc"); 1195 var mo = $(this).attr("data-mo"); 1196 var color = $(this).attr("data-color"); 1197 $(this).css({ 1198 "font-size" : mo+"px", 1199 "color" : color, 1200 }); 1201 }); 1202 1203 } 1204 } 1205 1206 var x = window.matchMedia("(min-width: 801px)") 1207 about(x) 1208 x.addListener(about) 1209 1210 1211 // ë©ì¸ ì¬ë¼ì´ë ì´ë¯¸ì§ ìºìë°©ì§ 1212 $(".xans-mall-company .img img").each(function(){ 1213 var ranNum = Math.random(); 1214 $(this).attr('src', $(this).attr('src') +'?'+ ranNum); 1215 }); 1216 1217 /* 1218 // slick slider ì¬ë¼ì´ëì ì¤ë¥ 1219 if($('.slick-slider').length){ 1220 $('.slick-slider').each(function () { 1221 const $slider = $(this); 1222 1223 // ì´ê¸°í ì 모ë ì¬ë¼ì´ë inert ì²ë¦¬ 1224 $slider.find('.slick-slide').attr('inert', 'true'); 1225 1226 $slider.on('init', function(event, slick) { 1227 // íì±íë ì¬ë¼ì´ëë§ inert ì ê±° 1228 $slider.find('.slick-slide[aria-hidden="false"]').removeAttr('inert'); 1229 }); 1230 1231 // Slick ì¤í (ì´ë¯¸ ì¤íë ê²½ì° ì ì¸) 1232 if (!$slider.hasClass('slick-initialized')) { 1233 1234 } 1235 1236 // ì¬ë¼ì´ë ë³ê²½ ì : 모ë ì¬ë¼ì´ë inert ì²ë¦¬ & í¬ì»¤ì¤ í´ì 1237 $slider.on('beforeChange', function(event, slick, currentSlide, nextSlide) { 1238 $slider.find('.slick-slide').attr('inert', 'true'); 1239 $slider.find('.slick-slide :focus').blur(); 1240 }); 1241 1242 // ì¬ë¼ì´ë ë³ê²½ í: íì¬ ë³´ì´ë ì¬ë¼ì´ëë§ inert ì ê±° 1243 $slider.on('afterChange', function(event, slick, currentSlide) { 1244 $slider.find('.slick-slide[aria-hidden="false"]').removeAttr('inert'); 1245 }); 1246 1247 // ð¥ slick-dots í´ë¦ ì ê°ì ë¡ í¬ì»¤ì¤ í´ì íë ì½ë (íµì¬!) 1248 $slider.on('click', '.slick-dots li button', function() { 1249 $(this).blur(); // 기존 blur 1250 setTimeout(() => document.activeElement.blur(), 50); // í¬ì»¤ì¤ë¥¼ ìì í ì ê±° 1251 }); 1252 }); 1253 } 1254 */ 1255 1256 1257}); 1258 1259 1260 1261 1262 1263 1264 window.REMODAL_GLOBALS = { 1265 DEFAULTS: { 1266 hashTracking: false 1267 } 1268 }; 1269 1270/* 1271 _ _ _ _ 1272 ___| (_) ___| | __ (_)___ 1273/ __| | |/ __| |/ / | / __| 1274\__ \ | | (__| < _ | \__ \ 1275|___/_|_|\___|_|\_(_)/ |___/ 1276 |__/ 1277 1278 Version: 1.6.0 1279 Author: Ken Wheeler 1280 Website: http://kenwheeler.github.io 1281 Docs: http://kenwheeler.github.io/slick 1282 Repo: http://github.com/kenwheeler/slick 1283 Issues: http://github.com/kenwheeler/slick/issues 1284 1285 */ 1286!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,458 bytes, line 1286
1286sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.
1286slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.o
vendor: 4,100 bytes, line 1286
1286ptions.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.
1286slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0}
1286,100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focu
vendor: 2,346 bytes, line 1286
1286sHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}
vendor: 3,177 bytes, line 1286
1286):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
vendor: 1,607 bytes, line 1287
1287d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.
1287interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>
vendor: 4,226 bytes, lines 1287-1298
12874&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}}); 1288/* 1289 * Remodal - v1.1.0 1290 * Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking. 1291 * http://vodkabears.github.io/remodal/ 1292 * 1293 * Made by Ilya Makarov 1294 * Under MIT License 1295 */ 1296 1297 1298!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return b(a,c)}):"object"==typeof exports?b(a,require("jquery")):b(a,a.jQuery||a.Zepto)}(this,function(a,b){"use strict";function c(a){if(w&&"none"===a.css("animation-name")&&"none"===a.css("-webkit-animation-name")&&"none"===a.css("-moz-animation-name")&&"none"===a.css("-o-animation-name")&&"none"===a.css("-ms-animation-name"))return 0;var b,c,d,e,f=a.css("animation-duration")||a.css("-webkit-animation-duration")||a.css("-moz-animation-duration")||a.css("-o-animation-duration")||a.css("-ms-animation-duration")||"0s",g
vendor: 4,507 bytes, line 1298
1298=a.css("animation-delay")||a.css("-webkit-animation-delay")||a.css("-moz-animation-delay")||a.css("-o-animation-delay")||a.css("-ms-animation-delay")||"0s",h=a.css("animation-iteration-count")||a.css("-webkit-animation-iteration-count")||a.css("-moz-animation-iteration-count")||a.css("-o-animation-iteration-count")||a.css("-ms-animation-iteration-count")||"1";for(f=f.split(", "),g=g.split(", "),h=h.split(", "),e=0,c=f.length,b=Number.NEGATIVE_INFINITY;e<c;e++)d=parseFloat(f[e])*parseInt(h[e],10)+parseFloat(g[e]),d>b&&(b=d);return b}function d(){if(b(document.body).height()<=b(window).height())return 0;var a,c,d=document.createElement("div"),e=document.createElement("div");return d.style.visibility="hidden",d.style.width="100px",document.body.appendChild(d),a=d.offsetWidth,d.style.overflow="scroll",e.style.width="100%",d.appendChild(e),c=e.offsetWidth,d.parentNode.removeChild(d),a-c}function e(){if(!x){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)||(c=b(document.body),a=parseInt(c.css("padding-right"),10)+d(),c.css("padding-right",a+"px"),e.addClass(f))}}function f(){if(!x){var a,c,e=b("html"),f=k("is-locked");e.hasClass(f)&&(c=b(document.body),a=parseInt(c.css("padding-right"),10)-d(),c.css("padding-right",a+"px"),e.removeClass(f))}}function g(a,b,c,d){var e=k("is",b),f=[k("is",u.CLOSING),k("is",u.OPENING),k("is",u.CLOSED),k("is",u.OPENED)].join(" ");a.$bg.removeClass(f).addClass(e),a.$overlay.removeClass(f).addClass(e),a.$wrapper.removeClass(f).addClass(e),a.$modal.removeClass(f).addClass(e),a.state=b,!c&&a.$modal.trigger({type:b,reason:d},[{reason:d}])}function h(a,d,e){var f=0,g=function(a){a.target===this&&f++},h=function(a){a.target===this&&0===--f&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())};b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].on(r,g).on(s,h)}),a(),0===c(e.$bg)&&0===c(e.$overlay)&&0===c(e.$wrapper)&&0===c(e.$modal)&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(a,b){e[b].off(r+" "+s)}),d())}function i(a){a.state!==u.CLOSED&&(b.each(["$bg","$overlay","$wrapper","$modal"],function(b,c){a[c].off(r+" "+s)}),a.$bg.removeClass(a.settings.modifier),a.$overlay.removeClass(a.settings.modifier).hide(),a.$wrapper.hide(),f(),g(a,u.CLOSED,!0))}function j(a){var b,c,d,e,f={};for(a=a.replace(/\s*:\s*/g,":").replace(/\s*,\s*/g,","),b=a.split(","),e=0,c=b.length;e<c;e++)b[e]=b[e].split(":"),d=b[e][1],("string"==typeof d||d instanceof String)&&(d="true"===d||"false"!==d&&d),("string"==typeof d||d instanceof String)&&(d=isNaN(d)?d:+d),f[b[e][0]]=d;return f}function k(){for(var a=q,b=0;b<arguments.length;++b)a+="-"+arguments[b];return a}function l(){var a,c,d=location.hash.replace("#","");if(d){try{c=b('[data-remodal-id="'+d+'"]')}catch(e){}c&&c.length&&(a=b[p].lookup[c.data(p)],a&&a.settings.hashTracking&&a.open())}else n&&n.state===u.OPENED&&n.settings.hashTracking&&n.close()}function m(a,c){var d=b(document.body),e=d,f=this;f.settings=b.extend({},t,c),f.index=b[p].lookup.push(f)-1,f.state=u.CLOSED,f.$overlay=b("."+k("overlay")),null!==f.settings.appendTo&&f.settings.appendTo.length&&(e=b(f.settings.appendTo)),f.$overlay.length||(f.$overlay=b("<div>").addClass(k("overlay")+" "+k("is",u.CLOSED)).hide(),e.append(f.$overlay)),f.$bg=b("."+k("bg")).addClass(k("is",u.CLOSED)),f.$modal=a.addClass(q+" "+k("is-initialized")+" "+f.settings.modifier+" "+k("is",u.CLOSED)).attr("tabindex","-1"),f.$wrapper=b("<div>").addClass(k("wrapper")+" "+f.settings.modifier+" "+k("is",u.CLOSED)).hide().append(f.$modal),e.append(f.$wrapper),f.$wrapper.on("click."+q,'[data-remodal-action="close"]',function(a){a.preventDefault(),f.close()}),f.$wrapper.on("click."+q,'[data-remodal-action="cancel"]',function(a){a.preventDefault(),f.$modal.trigger(v.CANCELLATION),f.settings.closeOnCancel&&f.close(v.CANCELLATION)}),f.$wrapper.on("click."+q,'[data-remodal-action="confirm"]',function(a){a.preventDefault(),f.$modal.trigger(v.CONFIRMATION),f.settings.closeOnConfirm&&f.close(v.CONFIRMATION)}),f.$wrapper.on("click."+q,function(a){var c=b(a.target);c.hasClass(k("wrapper"))&&f.settings.closeOnOutsideClick&&f.close()})}var n,o,p="remodal",q=a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.NAMESPACE||p,r=b.map(["animationstart","webkitAnimationStart","MSAnimationStart","oAnimationStart"],function(a){return a+"."+q}).join(" "),s=b.map(["animationend","webkitAnimationEnd","MSAnimationEnd","oAnimationEnd"],function(a){return a+"."+q}).join(" "),t=b.extend({hashTracking:!0,closeOnConfirm:!0,closeOnCancel:!0,
1298closeOnEscape:!0,closeOnOutsideClick:!0,modifier:"",appendTo:null},a.REMODAL_GLOBALS&&a.REMODAL_GLOBALS.DEFAULTS),u={CLOSING:"closing",CLOSED:"closed",OPENING:"opening",OPENED:"opened"},v={CONFIRMATION:"confirmation",CANCELLATION:"cancellation"},w=function(){var a=document.createElement("div").style;return void 0!==a.animationName||void 0!==a.WebkitAnimationName||void 0!==a.MozAnimationName||void 0!==a.msAnimationName||void 0!==a.OAnimationName}(),x=/iPad|iPhone|iPod/.test(navigator.platform);m.prototype.open=function(){var a,c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(a=c.$modal.attr("data-remodal-id"),a&&c.settings.hashTracking&&(o=b(window).scrollTop(),location.hash=a),n&&n!==c&&i(n),n=c,e(),c.$bg.addClass(c.settings.modifier),c.$overlay.addClass(c.settings.modifier).show(),c.$wrapper.show().scrollTop(0),c.$modal.focus(),h(function(){g(c,u.OPENING)},function(){g(c,u.OPENED)},c))},m.prototype.close=function(a){var c=this;c.state!==u.OPENING&&c.state!==u.CLOSING&&(c.settings.hashTracking&&c.$modal.attr("data-remodal-id")===location.hash.substr(1)&&(location.hash="",b(window).scrollTop(o)),h(function(){g(c,u.CLOSING,!1,a)},function(){c.$bg.removeClass(c.settings.modifier),c.$overlay.removeClass(c.settings.modifier).hide(),c.$wrapper.hide(),f(),g(c,u.CLOSED,!1,a)},c))},m.prototype.getState=function(){return this.state},m.prototype.destroy=function(){var a,c=b[p].lookup;i(this),this.$wrapper.remove(),delete c[this.index],a=b.grep(c,function(a){return!!a}).length,0===a&&(this.$overlay.remove(),this.$bg.removeClass(k("is",u.CLOSING)+" "+k("is",u.OPENING)+" "+k("is",u.CLOSED)+" "+k("is",u.OPENED)))},b[p]={lookup:[]},b.fn[p]=function(a){var c,d;return this.each(function(e,f){d=b(f),null==d.data(p)?(c=new m(d,a),d.data(p,c.index),c.settings.hashTracking&&d.attr("data-remodal-id")===location.hash.substr(1)&&c.open()):c=b[p].lookup[d.data(p)]}),c},b(document).ready(function(){b(document).on("click","[data-remodal-target]",function(a){a.preventDefault();var c=a.currentTarget,d=c.getAttribute("data-remodal-target"),e=b('[data-remodal-id="'+d+'"]');b[p].lookup[e.data(p)].open()}),b(document).find("."+q).each(function(a,c){var d=b(c),e=d.data("remodal-options");e?("string"==typeof e||e instanceof String)&&(e=j(e)):e={},d[p](e)}),b(document).on("keydown."+q,function(a){n&&n.settings.closeOnEscape&&n.state===u.OPENED&&27===a.keyCode&&n.close()}),b(window).on("hashchange."+q,l)})}); 1299 1300 1301 1302 1303 function myFunction(x) { 1304 if (x.matches) { 1305 //********** pc **********// 1306 1307 $("body").removeClass("hidden"); 1308 $("#header li.gnb > a#btn-gnb-pc").show(); 1309 //$("#header li.gnb > a#btn-gnb-mo").hide(); 1310 //$("#gnb-mo, #gnb-mask-mo").hide(); 1311 //$("#gnb-mo").removeClass("show"); 1312 //$("#gnb-mask-mo").removeClass("show"); 1313 1314 $("#gnb-mo, #gnb-mask-mo").hide(); 1315 1316 1317 $("#btn-gnb-pc").click(function() { 1318 $("#gnb-pc").animate({ 1319 marginTop:'0px', 1320 opacity:'1', 1321 },300); 1322 $("#gnb-pc").addClass("show"); 1323 $("#gnb-mask-pc").fadeIn(200); 1324 $("body").addClass("hidden"); 1325 }); 1326 1327 $("#gnb-mask-pc").click(function() { 1328 $("#gnb-pc").animate({ 1329 marginTop:'10px', 1330 opacity:'0', 1331 },200); 1332 setTimeout(function(){ 1333 $("#gnb-pc").removeClass("show"); 1334 },201); 1335 $("#gnb-mask-pc").fadeOut(200); 1336 $("body").removeClass("hidden"); 1337 }); 1338 1339 1340 } else { 1341 //********** 모ë°ì¼ **********// 1342 1343 $("body").removeClass("hidden"); 1344 //$("#header li.gnb > a#btn-gnb-pc").hide(); 1345 //$("#header li.gnb > a#btn-gnb-mo").show(); 1346 $("#gnb-mo, #gnb-mask-mo").show(); 1347 1348 $("#gnb-pc").animate({ 1349 marginTop:'20px', 1350 opacity:'0', 1351 },0); 1352 setTimeout(function(){ 1353 $("#gnb-pc").removeClass("show"); 1354 },0); 1355 $("#gnb-mask-pc").hide(); 1356 1357 1358 $("#btn-gnb-mo").click(function() { 1359 $("#btn-gnb-mo").fadeOut(100); 1360 $("#btn-gnb-mo-close").fadeIn(100); 1361 $("#header").addClass("gnb-on"); 1362 $("#gnb-mask-mo").addClass("show"); 1363 $("#gnb-mo").addClass("show"); 1364 $("body").addClass("hidden"); 1365 }); 1366 1367 $("#btn-gnb-mo-close").click(function() { 1368 $("#btn-gnb-mo").fadeIn(100); 1369 $("#btn-gnb-mo-close").fadeOut(100); 1370 $("#header").removeClass("gnb-on"); 1371 $("#gnb-mo").removeClass("show"); 1372 $("#gnb-mask-mo").removeClass("show"); 1373 $("body").removeClass("hidden"); 1374 }); 1375 1376 } 1377 } 1378 1379 var x = window.matchMedia("(min-width: 801px)") 1380 myFunction(x) 1381 x.addListener(myFunction) 1382 1383 1384 1385 $('#gnb-mo .accordion .title').click(function(j) { 1386 var dropDown = $(this).closest('li').find('.accor-cont'); 1387 $(this).closest('.accordion').find('.accor-cont').not(dropDown).slideUp().parent('li').removeClass('active'); 1388 dropDown.stop(false, true).slideToggle(400).parent('li').toggleClass('active'); 1389 1390 j.preventDefault(); 1391 }); 1392 1393 $("#gnb-mo .accordion > ul > li > a.title").click(function(){ 1394 var title = $("#gnb-mo .accordion > ul > li > a.title"); 1395 var a = $("#gnb-mo .accordion > ul > li > a"); 1396 var notitle = $("#gnb-mo .accordion > ul > li > a").not("a.title"); 1397 a.parent().removeClass("off"); 1398 if($(this).parent().hasClass("active")){ 1399 a.not(this).parent().addClass("off"); 1400 } 1401 }); 1402 1403 $("#gnb-mo .accordion > ul > li > a").not("a.title").click(function(){ 1404 $("#gnb-mo .accordion > ul > li > a").parent().removeClass("active").addClass("off"); 1405 $("#gnb-mo .accordion .accor-cont").slideUp(); 1406 $(this).parent().removeClass("off").toggleClass("active"); 1407 1408 }); 1409 1410 1411 1412 1413 $("#gnb-mo .tab-menu .tab-cont").hide(); 1414 $("#gnb-mo .tab-menu .tab-cont:first").show(); 1415 1416 $('#gnb-mo .tab-menu .menu li').click(function() { 1417 $('#gnb-mo .tab-menu .menu li').removeClass("active"); 1418 $(this).addClass("active"); 1419 $("#gnb-mo .tab-menu .tab-cont").hide(); 1420 1421 var indexer = $(this).index(); 1422 $("#gnb-mo .tab-menu").find('.tab-cont:eq(' + indexer + ')').show(); 1423 }); 1424 1425 1426 1427 $("#gnb-pc .cs .time").each(function(){ 1428 1429 $(this).html($(this).html().replace("/", '<br>')); 1430 1431 }); 1432 1433 1434 $.ajax({ 1435 type: "GET", 1436 url: '/exec/front/Product/SubCategory', 1437 dataType: 'json', 1438 success: function(c) { 1439 if (c == null || c == 'undefined') return; 1440 $.each(c, function(a, b) { 1441 $('#gnb-mo .catedep1_li').each(function() { 1442 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1443 if (!$(this).hasClass('on')) { 1444 $(this).addClass('on'); 1445 $(this).append('<ul class="catedep2 cate-sub"></ul>').addClass('onarr') 1446 } 1447 $(this).find('ul.catedep2').append('<li parameters="' + b.param + '" class="catedep2_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>'); 1448 } 1449 }); 1450 $('#gnb-mo .catedep2_li').each(function() { 1451 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1452 if (!$(this).hasClass('on')) { 1453 $(this).addClass('on'); 1454 $(this).append('<ul class="catedep3 cate-sub"></ul>').addClass('onarr2') 1455 } 1456 $(this).find('ul.catedep3').append('<li parameters="' + b.param + '" class="catedep3_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>') 1457 } 1458 }); 1459 1460 /* 1461 $('#gnb-mo .catedep3_li').each(function() { 1462 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1463 if (!$(this).hasClass('on')) { 1464 $(this).addClass('on'); 1465 $(this).append('<ul class="catedep4 cate-sub"></ul>').addClass('onarr3') 1466 } 1467 $(this).find('ul.catedep4').append('<li parameters="' + b.param + '" class="catedep4_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>') 1468 } 1469 }); 1470 */ 1471 }); 1472 1473 $('#gnb-mo #gnb-mo-category li.on').each(function(){ 1474 var a = $(this).children("a"); 1475 var name = a.text(); 1476 var all = a.attr("href"); 1477 var ul = $(this).children("ul"); 1478 ul.prepend('<li class="view-all"><a href="'+all+'">ì 체보기</a></li>'); 1479 a.removeAttr("href"); 1480 1481 1482 $(this).children("a").click(function(){ 1483 $(this).parent().toggleClass("selected"); 1484 }); 1485 }); 1486 1487 } 1488 }); 1489 1490 1491 1492$(function(){ 1493 1494 $(window).scroll(function() { 1495 var scroll = $(window).scrollTop(); 1496 if (scroll >= 10) { 1497 $("#header").addClass("fixed"); 1498 } else { 1499 $("#header").removeClass("fixed"); 1500 } 1501 }); 1502 1503 // ë§ì¤í¬ ëì´ ê°ì§ ì¸í + í¤ë ë미 ëì´ê°ì§ ì¸í 1504 function maskDiv(x) { 1505 if (x.matches) { 1506 var logo = $("#header .logo").find("img"); 1507 var pc = $("#header .logo").attr("pc"); 1508 var mo = $("#header .logo").attr("mo"); 1509 logo.css("height", pc); 1510 } else { 1511 var logo = $("#header .logo").find("img"); 1512 var logo2 = $("#gnb-mo .logo").find("img"); 1513 var pc = $("#header .logo").attr("pc"); 1514 var mo = $("#header .logo").attr("mo"); 1515 logo.css("height", mo); 1516 logo2.css("height", mo); 1517 } 1518 } 1519 1520 var x = window.matchMedia("(min-width: 801px)"); 1521 maskDiv(x); 1522 x.addListener(maskDiv); 1523 1524 1525 // ë¡ê³ ì´ë¯¸ì§ ìºìë°©ì§ 1526 $('#header .logo img').each(function(){ 1527 var ranNum = Math.random(); 1528 $(this).attr('src', $(this).attr('src') +'?'+ ranNum); 1529 }); 1530 1531 1532 1533 $("#header .menu > ul > li.lang .xans-layout-multishoplist > span").each(function(){ 1534 1535 var ko = $(this).find("img[src*='flag_ko_KR']"); 1536 var us = $(this).find("img[src*='flag_en_US']"); 1537 var cn = $(this).find("img[src*='flag_zh_CN']"); 1538 var jp = $(this).find("img[src*='flag_ja_JP']"); 1539 var zn = $(this).find("img[src*='flag_zh_TW']"); 1540 1541 if(ko.length){ 1542 $(this).find("img").remove(); 1543 $(this).html("KR"); 1544 } 1545 if(us.length){ 1546 $(this).find("img").remove(); 1547 $(this).html("US"); 1548 } 1549 if(cn.length){ 1550 $(this).find("img").remove(); 1551 $(this).html("CN"); 1552 } 1553 if(jp.length){ 1554 $(this).find("img").remove(); 1555 $(this).html("JP"); 1556 } 1557 if(zn.length){ 1558 $(this).find("img").remove(); 1559 $(this).html("ZN"); 1560 } 1561 1562 }); 1563 1564 1565 $("#header .lang ul li a, #gnb-mo .lang ul li a").each(function(){ 1566 1567 var ko = $(this).find("img[src*='flag_ko_KR']"); 1568 var us = $(this).find("img[src*='flag_en_US']"); 1569 var cn = $(this).find("img[src*='flag_zh_CN']"); 1570 var jp = $(this).find("img[src*='flag_ja_JP']"); 1571 var zn = $(this).find("img[src*='flag_zh_TW']"); 1572 1573 if(ko.length){ 1574 $(this).append("KR"); 1575 } 1576 if(us.length){ 1577 $(this).append("US"); 1578 } 1579 if(cn.length){ 1580 $(this).append("CN"); 1581 } 1582 if(jp.length){ 1583 $(this).append("JP"); 1584 } 1585 if(zn.length){ 1586 $(this).append("ZN"); 1587 } 1588 1589 if($(this).parent().hasClass("selected")) { 1590 $(this).removeAttr("href"); 1591 } 1592 1593 }); 1594 1595 if(!$("#header .menu > ul > li.lang .xans-layout-multishoplist").length) { 1596 $("#header .menu > ul > li.lang").remove(); 1597 } 1598 1599}); 1600$("#header .menu ul li").each(function(){ 1601 var a = $(this).children("a"); 1602 var sub = $(this).children(".sub"); 1603 1604 if(a.length && sub.length){ 1605 var subLink = sub.find("> ul > li:first-child > a").attr("href"); 1606 a.attr("href", subLink); 1607 } 1608}); 1609 1610$.ajax({ 1611 type: "GET", 1612 url: '/exec/front/Product/SubCategory', 1613 dataType: 'json', 1614 success: function(c) { 1615 if (c == null || c == 'undefined') return; 1616 $.each(c, function(a, b) { 1617 $('#header .catedep1_li').each(function() { 1618 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1619 if (!$(this).hasClass('on')) { 1620 $(this).addClass('on'); 1621 $(this).append('<ul class="catedep2 nav-child"></ul>').addClass('onarr') 1622 } 1623 $(this).find('ul.catedep2').append('<li parameters="' + b.param + '" class="catedep2_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>') 1624 } 1625 }); 1626 $('#header .catedep2_li').each(function() { 1627 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1628 if (!$(this).hasClass('on')) { 1629 $(this).addClass('on'); 1630 $(this).append('<ul class="catedep3 nav-child"></ul>').addClass('onarr2') 1631 } 1632 $(this).find('ul.catedep3').append('<li parameters="' + b.param + '" class="catedep3_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>') 1633 } 1634 }); 1635 $('#header .catedep3_li').each(function() { 1636 if ($(this).attr('parameters').split('=')[1] == b.parent_cate_no) { 1637 if (!$(this).hasClass('on')) { 1638 $(this).addClass('on'); 1639 $(this).append('<ul class="catedep4 nav-child"></ul>').addClass('onarr3') 1640 } 1641 $(this).find('ul.catedep4').append('<li parameters="' + b.param + '" class="catedep4_li"><a href="/product/list.html' + b.param + '">' + b.name + '</a></li>') 1642 } 1643 }); 1644 }); 1645 1646 1647 /* 1648 $("#header .catedep1_li").mouseenter(function(){ 1649 $(this).addClass('active').find('.catedep2').addClass('cateOn'); 1650 }).mouseleave(function(){ 1651 $(this).removeClass('active').find('.catedep2').removeClass('cateOn'); 1652 }); 1653 1654 $("#header .catedep2_li").mouseenter(function(){ 1655 $(this).addClass('active').find('.catedep3').addClass('cateOn'); 1656 }).mouseleave(function(){ 1657 $(this).removeClass('active').find('.catedep3').removeClass('cateOn'); 1658 }); 1659 1660 $("#header .catedep3_li").mouseenter(function(){ 1661 $(this).addClass('active').find('.catedep4').addClass('cateOn'); 1662 }).mouseleave(function(){ 1663 $(this).removeClass('active').find('.catedep4').removeClass('cateOn'); 1664 }); 1665 1666 $("#header .catedep4_li").mouseenter(function(){ 1667 $(this).addClass('active').addClass('cateOn'); 1668 }).mouseleave(function(){ 1669 $(this).removeClass('active').removeClass('cateOn'); 1670 }); 1671 */ 1672 1673 1674 } 1675}) 1676 1677 1678 1679 1680$(".year").each(function(){ 1681 var now = new Date(); 1682 var year = now.getFullYear(); 1683 1684 $(this).html(year); 1685 1686}); 1687$.fn.isOnScreen = function () { 1688 var win = $(window); 1689 var viewport = { 1690 top: win.scrollTop(), 1691 left: win.scrollLeft() 1692 }; 1693 viewport.right = viewport.left + win.width(); 1694 viewport.bottom = viewport.top + win.height(); 1695 var bounds = this.offset(); 1696 bounds.right = bounds.left + this.outerWidth(); 1697 bounds.bottom = bounds.top + this.outerHeight(); 1698 return (!(viewport.right < bounds.left || viewport.left >
1698 bounds.right || viewport.bottom < bounds.top || viewport.top > bounds.bottom)); 1699}; 1700 1701 1702/* 1703$(window).scroll(function(){ 1704 var scrollHeight = $(document).height(); 1705 var scrollPosition = $(window).height() + $(window).scrollTop(); 1706 if ($(this).scrollTop() > 500 && $('#footer').isOnScreen() == false) { 1707 $("#fixed-btn").fadeIn(170); 1708 } 1709 if ($(this).scrollTop() < 200 || $('#footer').isOnScreen() == true) { 1710 $('#fixed-btn').fadeOut(170); 1711 } 1712}); 1713*/ 1714 1715 1716$(window).scroll(function(){ 1717 var scrollHeight = $(document).height(); 1718 var scrollPosition = $(window).height() + $(window).scrollTop(); 1719 if ($(this).scrollTop() > 300) { 1720 $("#fixed-btn").fadeIn(170); 1721 } else { 1722 $('#fixed-btn').fadeOut(170); 1723 } 1724}); 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734// go_top 1735function go_top(orix,oriy,desx,desy) { 1736 var Timer; 1737 if (document.body.scrollTop == 0) { 1738 var winHeight = document.documentElement.scrollTop; 1739 } else { 1740 var winHeight = document.body.scrollTop; 1741 } 1742 if(Timer) clearTimeout(Timer); 1743 startx = 0; 1744 starty = winHeight; 1745 if(!orix || orix < 0) orix = 0; 1746 if(!oriy || oriy < 0) oriy = 0; 1747 var speed = 3; 1748 if(!desx) desx = 0 + startx; 1749 if(!desy) desy = 0 + starty; 1750 desx += (orix - startx) / speed; 1751 if (desx < 0) desx = 0; 1752 desy += (oriy - starty) / speed; 1753 if (desy < 0) desy = 0; 1754 var posX = Math.ceil(desx); 1755 var posY = Math.ceil(desy); 1756 window.scrollTo(posX, posY); 1757 if((Math.floor(Math.abs(startx - orix)) < 1) && (Math.floor(Math.abs(starty - oriy)) < 1)){ 1758 clearTimeout(Timer); 1759 window.scroll(orix,oriy); 1760 }else if(posX != orix || posY != oriy){ 1761 Timer = setTimeout("go_top("+orix+","+oriy+","+desx+","+desy+")",15); 1762 }else{ 1763 clearTimeout(Timer); 1764 } 1765} 1766 1767// go_bottom 1768$("#goBtm").click(function() { 1769 $("html, body").animate({ scrollTop: $(document).height() }, "slow"); 1770 return false; 1771}); 1772 1773 1774 1775$(function(){ 1776 if (typeof(EC_SHOP_MULTISHOP_SHIPPING) != "undefined") { 1777 var sShippingCountryCode4Cookie = 'shippingCountryCode'; 1778 var bShippingCountryProc = false; 1779 1780 // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1781 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) { 1782 $('.xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist').hide(); 1783 $('.xans-layout-multishoplist .countryTitle').hide(); 1784 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').hide(); 1785 } else { // ë°°ì¡êµê° ì í ì¤ì ì´ ì¬ì©ì´ë©´ ì¿ í¤ê°ì´ë query stringì¼ë¡ ëì´ì¨ ë°°ì¡êµê° ê°ì ì¬ì© 1786 $('.xans-multishop-listitem').hide(); 1787 $('.xans-layout-multishoplist > h1').hide(); 1788 $('.xans-layout-multishoplist .languageTitle').show(); 1789 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').show(); 1790 $('.xans-layout-multishoplist .countryTitle').show(); 1791 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').show(); 1792 1793 var aShippingCountryCode = document.cookie.match('(^|;) ?'+sShippingCountryCode4Cookie+'=([^;]*)(;|$)'); 1794 1795 if (typeof(aShippingCountryCode) != 'undefined' && aS
1795hippingCountryCode != null && aShippingCountryCode.length > 2) { 1796 var sShippingCountryValue = aShippingCountryCode[2]; 1797 } 1798 1799 // query stringì¼ë¡ ëì´ ì¨ ë°°ì¡êµê° ê°ì´ ìë¤ë©´, ê·¸ ê°ì ì ì©í¨ 1800 var aHrefCountryValue = decodeURIComponent(location.href).split("/?country="); 1801 1802 if (aHrefCountryValue.length == 2) { 1803 var sShippingCountryValue = aHrefCountryValue[1]; 1804 } 1805 1806 // ë©ì¸ íì´ì§ìì êµê°ì íì ìí ê²½ì°, ê·¸ ì¸ì íì´ì§ìì ì í ë ê°ì´ ì ëì¤ë íì ì²ë¦¬ 1807 if (location.href.split("/").length != 4 && $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()) { 1808 $(".xans-layout-multishoplist .xans-layout-multishoplistmultioption a .ship span").text(" : "+$(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text().split("SHIPPING TO : ").join("")); 1809 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1810 $("#f_country").val($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1811 } 1812 } 1813 if (typeof(sShippingCountryValue) != "undefined" && sShippingCountryValue != "" && sShippingCountryValue != null) { 1814 sShippingCountryValue = sShippingCountryValue.split("#")[0]; 1815 var bShippingCountryProc = true; 1816 1817 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1818 $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").text($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text()); 1819 1820 var expires = new Date(); 1821 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1822 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1823 1824 if ($("#f_country").length > 0 && location.href.indexOf("orderform.html") > -1) { 1825 $("#f_country").val(sShippingCountryValue).change(); 1826 } 1827 } 1828 } 1829 1830 // ì¸ì´ì í ì¤ì ì´ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1831 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingLanguageSelection === false) { 1832 $('.xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist').hide(); 1833 $('.xans-layout-multishoplist .languageTitle').hide(); 1834 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').hide(); 1835 } else { 1836 $('.xans-multishop-listitem').hide(); 1837 $('.xans-layout-multishoplist > h1').hide(); 1838 $('.xans-layout-multishoplist .languageTitle').show(); 1839 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').show(); 1840 $('.xans-layout-multishoplist .countryTitle').show(); 1841 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').show(); 1842 } 1843 1844 // ë°°ì¡êµê° ë° ì¸ì´ ì¤ì ì´ ë ë¤ ì¬ì©ìí¨ì´ë©´ ì¨ê¹ 1845 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShipping === false) { 1846 $(".xans-layout-multishopshipping").hide(); 1847 $('.xans-layout-multishoplist .countryTitle').hide(); 1848 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptioncountry').hide(); 1849 $('.xans-layout-multishoplist .languageTitle').hide(); 1850 $('.xans-layout-multishoplist .xans-layout-multishoplistmultioptionlanguage').hide(); 1851 } else if (bShippingCountryProc === false && location.href.split("/").length == 4) { // ë°°ì¡êµê° ê°ì ì²ë¦¬í ì ì´ ìê³ , ë©ì¸íë©´ì¼ ëë§ ì í ë ì´ì´ë¥¼ ëì 1852 var sShippingCountryValue = $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(); 1853 $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val(sShippingCountryValue); 1854 $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").text($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist option:selected").text()); 1855 // ë°°ì¡êµê° ì íì ì¬ì©í´ì¼ ë ì´ì´ë¥¼ ë³´ì´ê² í¨ 1856 if (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === true) { 1857 $(".xans-layout-multishopshipping").show(); 1858 } 1859 } 1860 1861 $(".xans-layout-multishopshipping .btnClose").on("click", function() { 1862 $(".xans-layout-multishopshipping").hide(); 1863 }); 1864 1865 $(".xans-layout-multishopshipping .ec-base-button a").on("click", function() { 1866 var expires = new Date(); 1867 expires.setTime(expires.getTime() + (30 * 24 * 60 * 60 * 1000)); // 30ì¼ê° ì¿ í¤ ì ì§ 1868 document.cookie = sShippingCountryCode4Cookie+'=' + $(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val() +';path=/'+ ';expires=' + expires.toUTCString(); 1869 1870 // ëë©ì¸ 문ì ë¡ ì¿ í¤ë¡ ë°°ì¡êµê° ì¤ì ì´ ì ëë ê²½ì°ë¥¼ ìí´ query stringì¼ë¡ ë°°ì¡êµê° ê°
1870ì ëê¹ 1871 var sQuerySting = (EC_SHOP_MULTISHOP_SHIPPING.bMultishopShippingCountrySelection === false) ? "" : "/?country="+encodeURIComponent($(".xans-layout-multishopshipping .xans-layout-multishopshippingcountrylist").val()); 1872 1873 location.href = '//'+$(".xans-layout-multishopshipping .xans-layout-multishopshippinglanguagelist").val()+sQuerySting; 1874 }); 1875 $(".xans-layout-multishoplist .xans-multishop-listitem .countryLink").on("click", function(e) { 1876 $('#dimmedSlider').toggle(); 1877 $('html').toggleClass('expand'); 1878 $(".xans-layout-multishopshipping").show(); 1879 e.preventDefault(); 1880 }); 1881 $(".xans-layout-multishoplist .xans-multishop-listitem .languageLink").on("click", function(e) { 1882 $('#dimmedSlider').toggle(); 1883 $('html').toggleClass('expand'); 1884 $(".xans-layout-multishopshipping").show(); 1885 e.preventDefault(); 1886 }); 1887 } 1888}); 1889// ì¸ë¤ì¼ ì´ë¯¸ì§ ìë°ì¼ê²½ì° ê¸°ë³¸ê° ì¤ì 1890$(window).on('load', function() { 1891 $(".thumbnail img, img.thumbImage, img.bigImage").each(function($i,$item){ 1892 var $img = new Image(); 1893 $img.onerror = function () { 1894 $item.src="//img.echosting.cafe24.com/thumb/img_product_big.gif"; 1895 } 1896 $img.src = this.src; 1897 }); 1898}); 1899 1900$(function(){ 1901 // í ê¸ 1902 $('div.eToggle .title').on('click', function(){ 1903 var toggle = $(this).parent('.eToggle'); 1904 if(toggle.hasClass('disable') == false){ 1905 $(this).parent('.eToggle').toggleClass('selected') 1906 } 1907 }); 1908 1909 $('dl.eToggle dt').on('click', function(){ 1910 $(this).toggleClass('selected'); 1911 $(this).next('dd').toggleClass('selected'); 1912 }); 1913 1914 //ì¥ë°êµ¬ë íì´ì§ ìëí¼ Type ë³ê²½ 1915 $('[id^="quantity"]').each(function() { 1916 $(this).get(0).type = 'tel'; 1917 }); 1918 1919 // 모ë°ì¼ìì ê³µê¸ì¬ í ì´ë¸ th ê°ì ì¡°ì 1920 $('.xans-mall-supplyinfo, .supplyInfo').find('table > colgroup').find('col').eq(0).width(98); 1921 $('.xans-mall-supplyinfo, .supplyInfo').find('th, td').css({padding:'13px 10px 12px'}); 1922 1923 /** 1924 * ë©ì¸ì¹´í ê³ ë¦¬ toggle 1925 1926 $('.xans-product-listmain h2').on('click', function() { 1927 var bClosed = !!$(this).data('is_closed'); 1928 var sUrl; 1929 if (bClosed) { 1930 sUrl = "//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_close.gif"; 1931 } else { 1932 sUrl = "//img.echosting.cafe24.com/skin/mobile_ko_KR/layout/bg_title_open.gif"; 1933 } 1934 $(this).css('background-image', 'url("'+ sUrl +'")'); 1935 $(this).siblings().toggle(); 1936 $(this).parent().find('div.ec-base-paginate').toggle(); 1937 $(this).parent().next('div.xans-product-listmore').toggle(); 1938 $(this).data('is_closed', !bClosed); 1939 }); 1940 */ 1941 1942 /** 1943 * ìë¨íë²í¼ 1944 var globalTopBtnScrollFunc = function() { 1945 // íë²í¼ ê´ë ¨ë³ì 1946 var $btnTop = $('#btnTop'); 1947 1948 $(window).on('scroll', function() { 1949 try { 1950 var iCurScrollPos = $(this).scrollTop(); 1951 1952 if (iCurScrollPos > ($(this).height() / 2)) { 1953 $btnTop.fadeIn('fast'); 1954 } else { 1955 $btnTop.fadeOut('fast'); 1956 } 1957 } catch(e) { } 1958 }); 1959 }; 1960 */ 1961 1962 /** 1963 * 구매ë²í¼ 1964 */ 1965 var globalBuyBtnScrollFunc = function() { 1966 // 구매ë²í¼ ê´ë ¨ë³ì 1967 var sFixId = $('#orderFixItem').length > 0 ? 'orderFixItem' : 'fixedActionButton', 1968 $area = $('#orderFixArea, #sheet'), 1969 $item = $('#' + sFixId + '').not($area); 1970 1971 $(window).on('scroll', function(){ 1972 try { 1973 // 구매ë²í¼ ê´ë ¨ë³ì 1974 var iCurrentHeightPos = $(this).scrollTop() + $(this).height(), 1975 iButtonHeightPos = $item.offset().top; 1976 1977 if (iCurrentHeightPos > iButtonHeightPos || iButtonHeightPos < $(this).scrollTop() + $item.height()) { 1978 if (iButtonHeightPos < $(this).scrollTop() - $item.height()) { 1979 $area.fadeIn('fast'); 1980 } else { 1981 $area.hide(); 1982 } 1983 } else { 1984 $area.fadeIn('fast'); 1985 } 1986 } catch(e) { } 1987 }); 1988 }; 1989 1990 //globalTopBtnScrollFunc(); 1991 globalBuyBtnScrollFunc(); 1992}); 1993 1994// ê³µíµë ì´ì´íì ì¤í 1995var globalLayerOpenFunc = function(_this) { 1996 this.id = $(_this).data('id'); 1997 this.param = $(_this).data('param'); 1998 this.basketType = $('#basket_type').val(); 1999 this.url = $(_this).data('url'); 2000 this.layerId = 'ec_temp_mobile_layer'; 2001 this.layerIframeId = 'ec_temp_mobile_iframe_layer'; 2002 2003 var _this = this; 2004 2005 function paramSetUrl() { 2006 if (this.param) { 2007 // if isset param 2008 } else { 2009 this.url = this.basketType ? this.url + '?basket_type=' + this.basketType : this.url; 2010 } 2011 }; 2012 2013 if (this.url) { 2014 window.ecScrollTop = $(window).scrollTop(); 2015 $.ajax({ 2016 url : this.url, 2017 success : function (data) { 2018 if (data.indexOf('404 íì´ì§ ìì') == -1) { 2019 // ìë¤ë©´ ìì 2020 try { $(_this).remove(); } catch ( e ) { } 2021
2022 var $layer = $('<div>', { 2023 html: $("<iframe>", { src: _this.url, id: _this.layerIframeId, scrolling: 'auto', css: { width: '100%', height: '100%', overflowY: 'auto', border: 0 } } ), 2024 id: _this.layerId, 2025 css : { position: 'absolute', top: 0, left:0, width: '100%', height: $(window).height(), 'z-index': 9999 } 2026 }); 2027 2028 $('body').append($layer); 2029 $('html, body').css({'overflowY': 'hidden', height: '100%', width: '100%'}); 2030 $('#' + this.layerId).show(); 2031 } 2032 } 2033 }); 2034 } 2035}; 2036 2037// ê³µíµë ì´ì´íì ë«ê¸° 2038var globalLayerCloseFunc = function() { 2039 this.layerId = 'ec_temp_mobile_layer'; 2040 2041 if (window.parent === window) 2042 self.close(); 2043 else { 2044 parent.$('html, body').css({'overflowY': 'auto', height: 'auto', width: '100%'}); 2045 parent.$('html, body').scrollTop(parent.window.ecScrollTop); 2046 parent.$('#' + this.layerId).remove(); 2047 } 2048}; 2049 2050/** 2051 * document.location.href split 2052 * return array Param 2053 */ 2054var getQueryString = function(sKey) 2055{ 2056 var sQueryString = document.location.search.substring(1); 2057 var aParam = {}; 2058 2059 if (sQueryString) { 2060 var aFields = sQueryString.split("&"); 2061 var aField = []; 2062 for (var i=0; i<aFields.length; i++) { 2063 aField = aFields[i].split('='); 2064 aParam[aField[0]] = aField[1]; 2065 } 2066 } 2067 2068 aParam.page = aParam.page ? aParam.page : 1; 2069 return sKey ? aParam[sKey] : aParam; 2070}; 2071 2072// PCë²ì ë°ë¡ ê°ê¸° 2073/* 2074var isPCver = function() { 2075 var sUrl = window.location.hostname; 2076 var aTemp = sUrl.split("."); 2077 2078 var pattern = /^(mobile[\-]{2}shop[0-9]+)$/; 2079 2080 if (aTemp[0] == 'm' || aTemp[0] == 'skin-mobile' || aTemp[0] == 'mobile') { 2081 sUrl = sUrl.replace(aTemp[0]+'.', ''); 2082 } else if (pattern.test(aTemp[0]) === true) { 2083 var aExplode = aTemp[0].split('--'); 2084 aTemp[0] = aExplode[1]; 2085 sUrl = aTemp.join('.'); 2086 } 2087 window.location.href = '//'+sUrl+'/?is_pcver=T'; 2088}; 2089*/ 2090 2091/* ëìë§ */ 2092$('body').on('click', '.ec-base-tooltip-area .eTip', function(e){ 2093 var findArea = $($(this).parents('.ec-base-tooltip-area')); 2094 var findTarget = $($(this).siblings('.ec-base-tooltip')); 2095 var findTooltip = $('.ec-base-tooltip'); 2096 $('.ec-base-tooltip-area').removeClass('show'); 2097 $(this).parents('.ec-base-tooltip-area').first().addClass('show'); 2098 findTooltip.hide(); 2099 findTarget.show(); 2100 e.preventDefault(); 2101}); 2102 2103$('body').on('click', '.ec-base-tooltip-area .eClose', function(e){ 2104 var findTarget = $(this).parents('.ec-base-tooltip').first(); 2105 $('.ec-base-tooltip-area').removeClass('show'); 2106 findTarget.hide(); 2107 e.preventDefault(); 2108}); 2109 2110$('.ec-base-tooltip-area').find('input').on('focusout', function() { 2111 var findTarget = $(this).parents('.ec-base-tooltip-area').find('.ec-base-tooltip'); 2112 $('.ec-base-tooltip-area').removeClass('show'); 2113 findTarget.hide(); 2114});
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.