diff --git a/assets/js/common.js b/assets/js/common.js index 3ba8b0e..7e0c96d 100644 --- a/assets/js/common.js +++ b/assets/js/common.js @@ -1156,18 +1156,25 @@ function getCookie(name) { function deleteCookie(name) { document.cookie = name + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; $(".close-today input").prop("checked", false); + + $(".close-today").html( + ` 오늘 하루 재생하지 않기` + ); } // 팝업을 숨기는 함수 -function hideTodayIntroPopup(target) { +function hideTodayIntroPopup(name) { const videoElements = document.querySelectorAll(".video_wrap video"); - videoElements[0].pause(); - videoElements[0].currentTime = 0; - $(".video_wrap").hide(); - $(".editorWarp").removeClass("playing"); - if (target) { - setCookie(target, "true", 1); + // videoElements[0].pause(); + // videoElements[0].currentTime = 0; + // $(".video_wrap").hide(); + // $(".editorWarp").removeClass("playing"); + if (name) { + setCookie(name, "true", 1); } else { setCookie("hideIntroPopup", "true", 1); } + $(".close-today").html( + ` 오늘 하루 재생하지 않기` + ); } diff --git a/product/pdp_in_car_game.html b/product/pdp_in_car_game.html index 6d9da5d..d9a5a27 100644 --- a/product/pdp_in_car_game.html +++ b/product/pdp_in_car_game.html @@ -31,10 +31,10 @@ - + - + diff --git a/product/pdp_srs_plus.html b/product/pdp_srs_plus.html index 6798a65..89edf70 100644 --- a/product/pdp_srs_plus.html +++ b/product/pdp_srs_plus.html @@ -31,10 +31,10 @@ - + - +