퍼블팀 script 추가요청 및 관심자료 수정
This commit is contained in:
parent
e4775e6214
commit
a8396b24ab
@ -389,141 +389,141 @@ function fn_listPops(typeDivCd) {
|
||||
<sec:authorize access="isAuthenticated()">
|
||||
<button type="button" id="mo-member-btn" class="member-btn" onclick="fn_getMemberCard();">회원증 보러가기</button>
|
||||
</sec:authorize>
|
||||
|
||||
<script>
|
||||
/* 메인슬라이드 */
|
||||
var myswiper = new Swiper(".MainSwiper", {
|
||||
loop: true,
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 0,
|
||||
centeredSlides: true,
|
||||
autoplay: {
|
||||
delay: 4000,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
pagination: {
|
||||
el: '.pagination .swiper-pagination',
|
||||
type: 'fraction',
|
||||
}
|
||||
});
|
||||
|
||||
$('.remote').click(function () {
|
||||
if($(this).hasClass('restart')){
|
||||
$(this).removeClass('restart');
|
||||
myswiper.autoplay.start();
|
||||
}else{
|
||||
$(this).addClass('restart');
|
||||
myswiper.autoplay.stop();
|
||||
}
|
||||
});
|
||||
/* 메인슬라이드 */
|
||||
var myswiper = new Swiper(".MainSwiper", {
|
||||
loop: true,
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 0,
|
||||
centeredSlides: true,
|
||||
autoplay: {
|
||||
delay: 4000,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
pagination: {
|
||||
el: '.pagination .swiper-pagination',
|
||||
type: 'fraction',
|
||||
}
|
||||
});
|
||||
|
||||
$('.remote').click(function () {
|
||||
if($(this).hasClass('restart')){
|
||||
$(this).removeClass('restart');
|
||||
myswiper.autoplay.start();
|
||||
}else{
|
||||
$(this).addClass('restart');
|
||||
myswiper.autoplay.stop();
|
||||
}
|
||||
});
|
||||
|
||||
var windowWidth = $(window).width();
|
||||
var _slidesPerView = 5;
|
||||
var _slidesPerViewpopula = 4;
|
||||
var _slidesPerViewOnline = 7;
|
||||
var _spaceBetween = 30;
|
||||
|
||||
if (windowWidth < 1400) {
|
||||
_slidesPerView = 3;
|
||||
_slidesPerViewpopula = 2;
|
||||
_slidesPerViewOnline = 3;
|
||||
_spaceBetween = 20;
|
||||
}
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerView = 1;
|
||||
_slidesPerViewpopula = 1;
|
||||
_slidesPerViewOnline = 1.5;
|
||||
_spaceBetween = 20;
|
||||
}
|
||||
|
||||
|
||||
/* 문화원s pick */
|
||||
var swiper = new Swiper('.pickSwiper', {
|
||||
loop : false,
|
||||
slidesPerView : _slidesPerView,
|
||||
spaceBetween : _spaceBetween,
|
||||
centeredSlides : false,
|
||||
autoplay : {
|
||||
delay : 2500,
|
||||
disableOnInteraction : false,
|
||||
},
|
||||
navigation : {
|
||||
nextEl : ".swiper-button-next",
|
||||
prevEl : ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= 5) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* 온라인 자료관 */
|
||||
var swiper = new Swiper('.onlineSwiper', {
|
||||
loop : true,
|
||||
slidesPerView : _slidesPerViewOnline,
|
||||
spaceBetween : _spaceBetween,
|
||||
centeredSlides : true,
|
||||
// autoplay: {
|
||||
// delay: 4000,
|
||||
// disableOnInteraction: false,
|
||||
// },
|
||||
navigation : {
|
||||
nextEl : ".swiper-button-next",
|
||||
prevEl : ".swiper-button-prev",
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= 5) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* 인기자료 */
|
||||
var swiper = new Swiper('.popularSwiper', {
|
||||
loop: false,
|
||||
slidesPerView : _slidesPerViewpopula,
|
||||
spaceBetween : _spaceBetween,
|
||||
autoplay : {
|
||||
delay : 2500,
|
||||
disableOnInteraction : false,
|
||||
},
|
||||
centeredSlides : false,
|
||||
pagination : {
|
||||
el : ".swiper-pagination",
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= 5) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
//this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
//this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
this.querySelector(".swiper-pagination").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
var windowWidth = $(window).width();
|
||||
var _slidesPerView = 5;
|
||||
var _slidesPerViewpopula = 4;
|
||||
var _slidesPerViewOnline = 7;
|
||||
var _spaceBetween = 30;
|
||||
var _lenght = 5;
|
||||
|
||||
if (windowWidth < 1400) {
|
||||
_slidesPerView = 3;
|
||||
_slidesPerViewpopula = 2;
|
||||
_slidesPerViewOnline = 3;
|
||||
_spaceBetween = 20;
|
||||
_lenght = 1;
|
||||
}
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerView = 1;
|
||||
_slidesPerViewpopula = 1;
|
||||
_slidesPerViewOnline = 1.5;
|
||||
_spaceBetween = 20;
|
||||
_lenght = 1;
|
||||
}
|
||||
|
||||
/* 문화원s pick */
|
||||
var swiper = new Swiper('.pickSwiper', {
|
||||
loop : false,
|
||||
slidesPerView : _slidesPerView,
|
||||
spaceBetween : _spaceBetween,
|
||||
centeredSlides : false,
|
||||
autoplay : {
|
||||
delay : 2500,
|
||||
disableOnInteraction : false,
|
||||
},
|
||||
navigation : {
|
||||
nextEl : ".swiper-button-next",
|
||||
prevEl : ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= _lenght) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* 온라인 자료관 */
|
||||
var swiper = new Swiper('.onlineSwiper', {
|
||||
loop : true,
|
||||
slidesPerView : _slidesPerViewOnline,
|
||||
spaceBetween : _spaceBetween,
|
||||
centeredSlides : true,
|
||||
// autoplay: {
|
||||
// delay: 4000,
|
||||
// disableOnInteraction: false,
|
||||
// },
|
||||
navigation : {
|
||||
nextEl : ".swiper-button-next",
|
||||
prevEl : ".swiper-button-prev",
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= _lenght) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/* 인기자료 */
|
||||
var swiper = new Swiper('.popularSwiper', {
|
||||
loop: false,
|
||||
slidesPerView : _slidesPerViewpopula,
|
||||
spaceBetween : _spaceBetween,
|
||||
autoplay : {
|
||||
delay : 2500,
|
||||
disableOnInteraction : false,
|
||||
},
|
||||
centeredSlides : false,
|
||||
pagination : {
|
||||
el : ".swiper-pagination",
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= _lenght) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
//this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
//this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
this.querySelector(".swiper-pagination").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -50,21 +50,20 @@
|
||||
}); // document ready
|
||||
|
||||
function selectAll(){
|
||||
if($("#allChk").is(":checked") == false)
|
||||
if($("#allChk").prop("checked") == false)
|
||||
{
|
||||
$("#allChk").prop("checked", true);
|
||||
selectAllChk();
|
||||
}else if($("#allChk").is(":checked") == true)
|
||||
}else if($("#allChk").prop("checked") == true)
|
||||
{
|
||||
$("#allChk").prop("checked", false);
|
||||
selectAllChk();
|
||||
}
|
||||
chkCount();
|
||||
}
|
||||
function chkCount()
|
||||
{
|
||||
$("input:checkbox[name = 'interestChk']").each(function() {
|
||||
if($(this).is(":checked") == false)
|
||||
if($(this).prop("checked") == false)
|
||||
{
|
||||
$("#allChk").prop("checked", false);
|
||||
}
|
||||
@ -120,6 +119,7 @@
|
||||
{
|
||||
$("input:checkbox[name = 'interestChk']").prop("checked", true);
|
||||
}
|
||||
chkCount();
|
||||
}
|
||||
|
||||
//상세보기
|
||||
@ -176,7 +176,7 @@
|
||||
t_title += "<div class=\"t-cultural t-mo\">문화원</div>"
|
||||
t_title += "<div class=\"t-data t-mo\">자료정보</div>"
|
||||
t_title += "<div class=\"t-btn t-mo\">이용</div>"
|
||||
t_title += "<div class=\"t-delete mo-ver\">선택삭제</div>"
|
||||
t_title += "<div class=\"t-delete mo-ver\" onclick=\"deleteInterests('multiple','');\">선택삭제</div>"
|
||||
t_title += "</div>"
|
||||
t_title += "<li class=\"no-result\" style=\"display:none;\">"
|
||||
t_title += "<span>검색결과가 없습니다.</span>"
|
||||
|
||||
@ -395,81 +395,92 @@ function goList(){
|
||||
|
||||
|
||||
<script>
|
||||
var windowWidth = $(window).width();
|
||||
var _slidesPerView = 4;
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerView = 1;
|
||||
}
|
||||
|
||||
/* 함께 볼만한자료 슬라이드 */
|
||||
var swiper = new Swiper('.DetailSwiper1', {
|
||||
loop: false,
|
||||
slidesPerView: _slidesPerView,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: false,
|
||||
autoplay: {
|
||||
delay: 2500,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= 5) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
var windowWidth = $(window).width();
|
||||
var _slidesPerView = 4;
|
||||
var _lenght = 5;
|
||||
if (windowWidth < 1400) {
|
||||
_slidesPerView = 3;
|
||||
_lenght = 3;
|
||||
}
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerView = 1;
|
||||
_lenght = 1;
|
||||
}
|
||||
|
||||
/* 함께 볼만한자료 슬라이드 */
|
||||
var swiper = new Swiper('.DetailSwiper1', {
|
||||
loop: false,
|
||||
slidesPerView: _slidesPerView,
|
||||
spaceBetween: 30,
|
||||
centeredSlides: false,
|
||||
autoplay: {
|
||||
delay: 2500,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= _lenght) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var _slidesPerViewBottom = 5;
|
||||
var _spaceBetween = 30;
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerViewBottom = 1.5;
|
||||
_spaceBetween = 20;
|
||||
var _slidesPerViewBottom = 5;
|
||||
var _spaceBetween = 30;
|
||||
if (windowWidth < 1400) {
|
||||
_slidesPerView = 3;
|
||||
_lenght = 3;
|
||||
}
|
||||
if (windowWidth < 480) {
|
||||
_slidesPerViewBottom = 1.5;
|
||||
_spaceBetween = 20;
|
||||
_lenght = 1;
|
||||
}
|
||||
|
||||
/* 유사한 자료 슬라이드 */
|
||||
var swiper = new Swiper('.DetailSwiper2', {
|
||||
loop: true,
|
||||
slidesPerView: _slidesPerViewBottom,
|
||||
spaceBetween: _spaceBetween,
|
||||
centeredSlides: true,
|
||||
autoplay: {
|
||||
delay: 2500,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= _lenght) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 유사한 자료 슬라이드 */
|
||||
var swiper = new Swiper('.DetailSwiper2', {
|
||||
loop: false,
|
||||
slidesPerView: _slidesPerViewBottom,
|
||||
spaceBetween: _spaceBetween,
|
||||
centeredSlides: false,
|
||||
autoplay: {
|
||||
delay: 2500,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: ".swiper-button-next",
|
||||
prevEl: ".swiper-button-prev",
|
||||
},
|
||||
/*
|
||||
pagination: {
|
||||
el: ".swiper-pagination",
|
||||
clickable: true,
|
||||
},
|
||||
*/
|
||||
on: {
|
||||
init: function () {
|
||||
if (this.slides.length <= 1) {
|
||||
// First way:
|
||||
this.allowSlidePrev = this.allowSlideNext = false; // disabling swiping
|
||||
this.el.querySelector(".swiper-button-prev").style.visibility = "hidden"; // hiding arrows prev&next
|
||||
this.el.querySelector(".swiper-button-next").style.visibility = "hidden";
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
});
|
||||
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user