인트로 사운드 버튼, 아케이드게임 레이아웃 수정 완료

This commit is contained in:
hyeonggil
2024-08-05 11:54:16 +09:00
parent 206836b8c7
commit d693f7e152
17 changed files with 114 additions and 84 deletions

View File

@@ -745,17 +745,21 @@ function pdpIntro() {
$(".close-today").html(
`<span onclick="hideTodayIntroPopup('${cookieVal}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);
$(".btn-intro").css("display", "flex");
if (getCookie(cookieVal)) {
$(".editorWarp").removeClass("playing");
$(".video_wrap").css("display", "none");
$(".close-today input").attr("checked", "checked");
videoElements[0].pause();
videoElements[0].currentTime = 0;
$(".video_wrap").hide();
$(".close-today").html(
`<span onclick="deleteCookie('${cookieVal}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);
} else {
$(".video_wrap").css("display", "flex");
$(".close-today").html(
`<span onclick="hideTodayIntroPopup('${cookieVal}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);
@@ -1156,7 +1160,7 @@ 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(
`<span onclick="hideTodayIntroPopup('${name}')" style="cursor:pointer"><input type="checkbox"> 오늘 하루 재생하지 않기</span>`
);