/* * Name : sub.js * Version : 1.1.0 * Author : onepixel studio --------------------------------------------------- */ $(function () { null == document.getElementById("isIndex") && ((function e() { let a = window.location.href; if (!$(".breadcrumb-navbar .navbar-wrapper").length) return !1; $(".breadcrumb-navbar .navbar-wrapper > li").each(function () { let e = $(this); a.indexOf(e.find(">a").attr("href")) > -1 && e.find(">a").addClass("active"); }); })(), $(".zoom-gallery").magnificPopup({ delegate: "a", type: "image", closeOnContentClick: !1, closeBtnInside: !1, mainClass: "mfp-with-zoom mfp-img-mobile", image: { verticalFit: !0 }, gallery: { enabled: !0 }, zoom: { enabled: !0, duration: 300, opener: function (e) { return e.find("img"); }, }, }), (function e() { if ($(".masonry-group").length) { let a = $(".masonry-group"); a.imagesLoaded(function () { a.isotope({ itemSelector: ".gallery-item", columnWidth: ".grid-sizer", masonry: { gutter: 20 }, }); }), $(".category-button-wrapper .button-filter").on("click", e => { e.preventDefault(); let t = $(e.currentTarget), r = t.data("filter"); $(".category-button-wrapper .button-filter").removeClass("active"), t.addClass("active"), a.isotope({ filter: r }); }); } })(), (function e() { let a = $("#youtubeModal"), t = a.find(".youtube-wrapper>iframe"); $(".play-youtube").on("click", e => { e.preventDefault(); let r = $(e.currentTarget).attr("href").split("v=")[1]; a.modal("show"), t.attr("src", "https://www.youtube.com/embed/" + r); }), a.on("hidden.bs.modal", () => { t.attr("src", ""); }); })(), (function e() { if (!$(".breadcrumb-navbar .navbar-wrapper").length) return !1; let a = [], t = [], r = "", n = ""; $(".breadcrumb-navbar .navbar-wrapper > li").each(function () { let e = $(this); a.push($.trim(e.find(">a").text())), t.push(e.find(">a").attr("href")), e.find(">a").hasClass("active") && (r = $.trim(e.find(">a").text())); }), (n = ` `), $(".breadcrumb-navbar .container-xl").append(n); })()); }); $(function () { var swiperTop = new Swiper(".section_partner .swiper-container-top", { loop: true, autoplay: { delay: 0, disableOnInteraction: false, }, slidesPerView: 9, speed: 4000, breakpoints: { // 화면의 너비가 1024px 이하일 때 1024: { slidesPerView: 7, }, // 화면의 너비가 768px 이하일 때 768: { slidesPerView: 5, }, // 화면의 너비가 640px 이하일 때 640: { slidesPerView: 4, }, 320: { slidesPerView: 3, }, }, }); var swiperBottom = new Swiper(".section_partner .swiper-container-bottom", { loop: true, autoplay: { delay: 0, disableOnInteraction: false, reverseDirection: true, }, slidesPerView: 9, speed: 4000, breakpoints: { // 화면의 너비가 1024px 이하일 때 1024: { slidesPerView: 7, }, // 화면의 너비가 768px 이하일 때 768: { slidesPerView: 5, }, // 화면의 너비가 640px 이하일 때 640: { slidesPerView: 4, }, 320: { slidesPerView: 2, }, }, }); $(function () { $('[data-toggle="tooltip"]').tooltip(); }); });