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

@@ -2175,6 +2175,24 @@
font-weight: 600; font-weight: 600;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
.displayTheme.comp_wide .close-today span {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
}
.displayTheme.comp_wide .close-today span input {
margin-right: 0.4rem;
}
.displayTheme.comp_wide .close-today span:before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.displayTheme.comp_wide .close-today label { .displayTheme.comp_wide .close-today label {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -2298,6 +2316,7 @@
height: 14rem; height: 14rem;
background-color: transparent; background-color: transparent;
border: none; border: none;
text-indent: -9999em;
cursor: pointer; cursor: pointer;
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {

File diff suppressed because one or more lines are too long

View File

@@ -2426,6 +2426,27 @@
font-weight: 600; font-weight: 600;
transition: all .2s ease; transition: all .2s ease;
span {
display: inline-flex;
align-items: center;
justify-content: center;
position: relative;
input {
margin-right: .4rem;
}
&:before {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
label { label {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -2574,6 +2595,7 @@
height: 14rem; height: 14rem;
background-color: transparent; background-color: transparent;
border: none; border: none;
text-indent: -9999em;
cursor: pointer; cursor: pointer;
@media (max-width: 1024px) { @media (max-width: 1024px) {

View File

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

View File

@@ -587,19 +587,16 @@
<div class="comp_md layer_up video_wrap"> <div class="comp_md layer_up video_wrap">
<div class="video-area"> <div class="video-area">
<div class="video"> <div class="video">
<button type="button" class="btn-close">닫기</button>
<video playsinline="playsinline" controls> <video playsinline="playsinline" controls>
<source src="../assets/images/kia/pdp/display_theme/NBA_Display_Theme_Intro.mp4" type="video/mp4"> <source src="../assets/images/kia/pdp/display_theme/NBA_Display_Theme_Intro.mp4" type="video/mp4">
이 문장은 여러분의 브라우저가 video 태그를 지원하지 않을 때 화면에 표시됩니다! 이 문장은 여러분의 브라우저가 video 태그를 지원하지 않을 때 화면에 표시됩니다!
</video> </video>
<button type="button" class="btn-play play">Play</button> <div class="btn-close">닫기</div>
<div class="btn-play play">Play</div>
</div> </div>
</div> </div>
<div class="close-today"> <div class="close-today">
<label onclick="hideTodayIntroPopup()">
<input type="checkbox" name="" id="">
오늘 하루 재생하지 않기
</label>
</div> </div>
</div> </div>
</div> </div>