온라인
상담
전화상담
';
},
},
on: {
init: function () {
$('.slide-video .space-swiper-pn-num').html('
1 / ' + videoSwiperNum);
$('.slide-video .space-swiper-pn>i').css('width', 1 / videoSwiperNum * 100 + '%');
},
// 마지막 슬라이드 문제로 이벤트 변경
transitionEnd: function () {
$('.slide-video .space-swiper-pn-num b').html(this.snapIndex + 1);
$('.slide-video .space-swiper-pn>i').css('width', (this.snapIndex + 1) / videoSwiperNum * 100 + '%');
},
}
});
function pdfView(link) {
var options = {
pdfUrl: link,
type: "pdf",
display: "single",
interactive: true,
btnDownloadPages: {
enabled: false,
},
}
$('#hd, #ct, #ft').hide();
$('#flip-overay').flipBook(options);
$('.close-btn').show();
}
function pdfView2(link) {
var options = {
pdfUrl: link,
type: "pdf",
viewMode: "swipe",
singlePageMode: true,
btnDownloadPages: {
enabled: false,
},
}
$('#hd, #ct, #ft').hide();
$('#flip-overay').flipBook(options);
$('.close-btn').show();
}
if (0) {
$('.list-img li').hide();
$('li[data-target="' + 0 + '"]').show();
} else {
$('.list-img li').show();
}
$('.close-btn').on('click', function (e) {
$('#flip-overay').empty();
$('#hd, #ct, #ft').show();
$(this).hide();
});
$(".search-btn").on("click", function (e) {
var target = $("#keyword").val();
if (target.length < 2) {
alert("검색어는 두글자 이상 입력해주세요");
return;
}
$(".nav-item a").removeClass("active");
$(".list-img li .h5").each(function () {
if ($(this).text().indexOf(target) == -1) {
$(this).parent().parent().hide();
} else {
$(this).parent().parent().show();
}
})
})
$('#keyword').on('keydown', function (e) {
if (e.keyCode == 13) {
$('.search-btn').click();
}
})