인트로 유튜브 비우기 추가

This commit is contained in:
hyeonggil
2024-08-12 16:28:43 +09:00
parent 52ddcdfaa8
commit 2a791fa3f2

View File

@@ -718,6 +718,8 @@ function pdpIntro() {
let cookieVal;
$(".editorWarp").addClass("playing");
const videoWrap = $(".editorWarp .video_wrap");
const youtubeId = $(".youtube-box").attr("value");
const youtubeFrame =
'<iframe src="https://www.youtube.com/embed/' +
@@ -755,6 +757,7 @@ function pdpIntro() {
$(".close-today").html(
`<span onclick="deleteCookie('${cookieVal}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);
$(".editorWarp .youtube-box").html("");
} else {
$(".video_wrap")
.css({ display: "flex", opacity: "0" })
@@ -762,10 +765,9 @@ function pdpIntro() {
$(".close-today").html(
`<span onclick="hideTodayIntroPopup('${cookieVal}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);
$(".editorWarp .youtube-box").html(youtubeFrame);
}
const videoWrap = $(".editorWarp .video_wrap");
// .btn-intro 버튼 클릭 시 비디오 재생
$(document).on("click", ".editorWarp .btn-intro", function () {
// console.log('intro 다시 실행');