쿠키 삭제 스크립트 추가, 인트로 사운드, 아케이드게임 캐러셀

This commit is contained in:
2024-07-30 22:21:44 +09:00
parent d54256da93
commit 6ba8b6f6a0
9 changed files with 186 additions and 64 deletions

View File

@@ -463,8 +463,25 @@ function pdpDisplayThemeSwiperDtl() {
flagScroll = false;
}
function pdpInCarGameSwiper() {
if ($(".pdpInCarGameSwiper").length > 0) {
if ($(".inCarGame .visualBg").length > 0) {
}
var swiperTheme = new Swiper(".visualBg", {
slidesPerView: 1,
loop: true,
freeMode: false,
navigation: {
nextEl: ".inCarGame .visualBg .swiper-button-next",
prevEl: ".inCarGame .visualBg .swiper-button-prev",
},
pagination: {
el: ".inCarGame .visualBg .swiper-pagination",
},
on: {
init: function () {
// console.log('pdpInCarGameSwiper 실행한다')
},
},
});
if ($(".pdpInCarGameSwiper").length > 0) {
var swiperTheme = new Swiper(".pdpInCarGameSwiper", {
slidesPerView: "auto",
@@ -603,7 +620,7 @@ $(document).on("click", ".inCarGame .dtthumb", function (e) {
`;
$(this).addClass(`${dtlImgPath}`);
console.log("videoEle===", videoEle);
// console.log("videoEle===", videoEle);
beforeDtlImgPath = dtlImgPath;
$(this).html(videoEle);
@@ -824,7 +841,7 @@ function pdpIntro() {
}
$(document).on("click", ".video_wrap .btn-play.play", function () {
console.log("intro 플레이");
// console.log("intro 플레이");
const btnPlay = $(".video_wrap .btn-play");
const videoElements = document.querySelectorAll(".video_wrap video");
@@ -835,7 +852,7 @@ $(document).on("click", ".video_wrap .btn-play.play", function () {
}
});
$(document).on("click", ".video_wrap .btn-play.pause", function () {
console.log("intro 정지");
// console.log("intro 정지");
const btnPlay = $(".video_wrap .btn-play");
const videoElements = document.querySelectorAll(".video_wrap video");