1차 수정3
This commit is contained in:
@@ -691,9 +691,14 @@ function pdpIntro() {
|
||||
// .video_wrap 내 모든 비디오 요소 선택
|
||||
const videoElements = document.querySelectorAll(".video_wrap video");
|
||||
$(".displayTheme").addClass("playing");
|
||||
|
||||
$(".close-today").html(
|
||||
`<span onclick="hideTodayIntroPopup()" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
|
||||
);
|
||||
if (getCookie("hideIntroPopup")) {
|
||||
$(".displayTheme").removeClass("playing");
|
||||
|
||||
$(".close-today input").attr("checked", "checked");
|
||||
videoElements[0].pause();
|
||||
videoElements[0].currentTime = 0;
|
||||
$(".video_wrap").hide();
|
||||
@@ -745,6 +750,9 @@ function pdpIntro() {
|
||||
$(document).on("click", ".displayTheme .btn-intro", function () {
|
||||
// console.log('intro 다시 실행');
|
||||
$(".displayTheme").addClass("playing");
|
||||
if (getCookie("hideIntroPopup")) {
|
||||
$(".close-today input").attr("checked", "checked");
|
||||
}
|
||||
$(videoWrap).show();
|
||||
if (video) {
|
||||
video.currentTime = 0;
|
||||
|
||||
Reference in New Issue
Block a user