겨울왕국 완료료
This commit is contained in:
@@ -360,6 +360,7 @@ $(document).ready(function () {
|
||||
pdpSwiperDtl(".streamingPremium-swiper1");
|
||||
pdpSwiperDtl(".streamingPremium-swiper2");
|
||||
pdpSwiperDtl(".streamingPremium-swiper3");
|
||||
pdpVisualBgSwiper(".displayThemeDesney");
|
||||
|
||||
flagScroll = false;
|
||||
}
|
||||
@@ -532,7 +533,7 @@ function pdpDisplayThemeSwiperDtl() {
|
||||
function pdpInCarGameSwiper() {
|
||||
if ($(".inCarGame .visualBg").length > 0) {
|
||||
}
|
||||
var swiperTheme = new Swiper(".visualBg", {
|
||||
var swiperTheme = new Swiper(".inCarGame .visualBg", {
|
||||
slidesPerView: 1,
|
||||
loop: true,
|
||||
freeMode: false,
|
||||
@@ -545,7 +546,7 @@ function pdpInCarGameSwiper() {
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
// console.log('pdpInCarGameSwiper 실행한다')
|
||||
console.log("pdpInCarGameSwiper 실행한다");
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1518,3 +1519,50 @@ $(document).on("click", "#carListPopup .popContents .carlistItem button", functi
|
||||
// $(".hederWarp_n .headerInner .gnb .menuWarp .mobileCarlist .mobilecarItem .item strong").text(selectedText);
|
||||
// $(".hederWarp_n .headerInner .gnb .menuWarp .mobileCarlist .mobilecarItem .item span").text(selectedTextCode);
|
||||
});
|
||||
|
||||
function pdpVisualBgSwiper(obj) {
|
||||
if ($(`${obj} .visualBg.swiper`).length > 0) {
|
||||
var swiperTheme = new Swiper(`${obj} .visualBg.swiper`, {
|
||||
slidesPerView: 1,
|
||||
loop: true,
|
||||
freeMode: false,
|
||||
navigation: {
|
||||
nextEl: `${obj} .visualBg .swiper-button-next`,
|
||||
prevEl: `${obj} .visualBg .swiper-button-prev`,
|
||||
},
|
||||
pagination: {
|
||||
el: `${obj} .visualBg .swiper-pagination`,
|
||||
},
|
||||
on: {
|
||||
init: function () {
|
||||
console.log("pdpInCarGameSwiper 실행한다");
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
flagScroll = false;
|
||||
}
|
||||
|
||||
function btnTabMenu(tabBtnNumber) {
|
||||
const $tabMenuLi = $(".tab-menu li");
|
||||
const $tabBtnText = $tabMenuLi.eq(tabBtnNumber).find(".tab-btn").text();
|
||||
const $tabContent = $(".tab-box");
|
||||
$tabMenuLi.removeClass("active");
|
||||
$tabMenuLi.eq(tabBtnNumber).addClass("active");
|
||||
$tabContent.hide().eq(tabBtnNumber).show();
|
||||
|
||||
const $tabWrap = $(".pdpDetail .tab-wrap");
|
||||
// 스크롤 이동
|
||||
$("html, body").animate(
|
||||
{
|
||||
scrollTop: $tabWrap.offset().top - 60,
|
||||
},
|
||||
200
|
||||
);
|
||||
|
||||
// 모바일 일때
|
||||
if ($("body").hasClass("moblie") || $("body").hasClass("tablet")) {
|
||||
$(".tab-menu .btn-select").text($tabBtnText);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user