1차 수정3

This commit is contained in:
hyeonggil
2024-07-17 17:57:11 +09:00
parent de1899900c
commit dc9af97b15
5 changed files with 53 additions and 7 deletions

View File

@@ -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;