<!-- S : 이벤트 복사영역 여기서부터 -->
<style type="text/css">.art-container-event {
width: 1200px;
margin: 0 auto;
text-align: center;
}
.art-content-inner {
position: relative;
width: 100%;
margin: 0 auto;
}
.art-content-inner img {
display: block;
}
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(15%);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.art-content-inner .obj {
position: absolute;
left: 0;
animation: fade-in 0.5s ease-in-out forwards;
opacity: 0;
}
.art-content-inner .obj.txt1 {
bottom: 150px;
}
.art-content-inner .obj.txt2 {
bottom: 84px;
animation-delay: 0.5s;
}
/* modal */
.md-cnt.notice {
visibility: hidden;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: 'Pretendard', sans-serif !important;
background-color: #fff;
padding: 30px;
width: 800px;
height: auto;
z-index: 1000;
}
.md-cnt.notice .md-tit .main {
font-size: 28px;
font-weight: 600;
letter-spacing: -0.05em;
line-height: 1;
border-bottom: 2px solid #000;
padding-bottom: 30px;
}
.md-cnt.notice .md-txt {
font-size: 18px;
letter-spacing: -0.05em;
line-height: 1.8;
text-align: left;
padding-top: 30px;
}
.md-cnt.notice .md-txt ul {
list-style: inside;
list-style-type: '- ';
text-indent: -12px;
padding-left: 12px;
}
.md-cnt.notice .md-txt li.spot {
color: #ee1c25;
font-weight: 600;
}
.md-cnt.notice .btn-close {
position: absolute;
top: 30px;
right: 30px;
background: url('https://image.a-rt.com/art/managing/event/20230302_NIKE_AIR_MAX_DAY_CAMPAIGN/pc/md/btn2.png') no-repeat center/contain;
width: 27px;
height: 27px;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
#dim {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999;
cursor: pointer;
}
.md-open {
overflow-y: hidden;
padding-right: 17px;
}
</style>
<!-- s : art-container-event -->
<div class="art-container-event">
<div class="art-content-inner main"><img src="https://image.a-rt.com/art/managing/event/20250120_new_year/abc/pc/main.jpg" /> <img class="obj txt1" src="https://image.a-rt.com/art/managing/event/20250120_new_year/abc/pc/txt1.png" /> <img class="obj txt2" src="https://image.a-rt.com/art/managing/event/20250120_new_year/abc/pc/txt2.png" /></div>
<div class="art-content-inner"><img src="https://image.a-rt.com/art/managing/event/20250120_new_year/abc/pc/cnt.jpg" usemap="#map1" /><map name="map1"><area alt="15% 쿠폰 받기" coords="222,241,536,487" href="javascript:abc.couponDown('2000002122')" shape="rect" /> <area alt="5% 쿠폰 받기" coords="661,238,978,483" href="javascript:abc.couponDown('2000002123')" shape="rect" /> <area alt="쿠폰 모두 받기" coords="399,515,795,600" href="javascript:abc.couponDown('2000002122', '2000002123')" shape="rect" /> <area alt="추천상품 보러가기" coords="403,606,796,695" href="https://abcmart.a-rt.com/promotion/planning-display/detail/main?isPreview=A&plndpNo=2000005550#prodContent1" shape="rect" /> <area alt="쿠폰 유의사항" aria-haspopup="dialog" class="btn-md" coords="529,717,663,767" data-href="#modal1" href="#;" shape="rect" /> <area alt="새뱃돈 이벤트" coords="383,1338,810,1461" href="https://a-rt.com/promotion/event/detail?eventNo=2000002158" shape="rect" target="_blank" /> <area alt="새해 덕담 이벤트" coords="387,2100,810,2228" href="https://www.a-rt.com/promotion/event/detail?eventNo=2000002160" shape="rect" target="_blank" /> <area alt="특가 보러 가기" coords="393,2844,801,2953" href="https://abcmart.a-rt.com/promotion/planning-display/detail/main?isPreview=A&plndpNo=2000005550#prodContent2" shape="rect" /></map></div>
<!-- 하단 띠배너 -->
<div class="art-content-inner banner"><a href="https://grandstage.a-rt.com/promotion/planning-display/detail?plndpNo=2000005553" target="_blank"><img alt="GRAND STAGE 혜택 보러 가기" src="https://image.a-rt.com/art/managing/event/20250120_new_year/abc/pc/banner.jpg" /> </a></div>
<!-- 모달창 -->
<div aria-labelledby="mdTit1" aria-modal="true" class="md-cnt notice" id="modal1" role="dialog">
<div class="md-tit">
<h4 class="main" id="mdTit1">쿠폰 유의사항</h4>
</div>
<div class="md-txt">
<ul>
<li>쿠폰은 통합 멤버십 회원 대상이며, ID 당 다운로드 횟수는 제한될 수 있습니다.</li>
<li>쿠폰에 따라 발급 수량이 다를 수 있습니다.</li>
<li>쿠폰은 01월 21일부터 02월 02일까지 다운로드 및 사용 가능합니다.</li>
<li>다운로드한 쿠폰은 마이페이지 > 쇼핑 혜택 > 쿠폰 리스트에서 확인 가능합니다.</li>
<li>본 이벤트는 당사 사정에 의해 사전 고지 없이 내용 변경 및 조기 종료될 수 있습니디.</li>
<li class="spot">일부 브랜드 및 상품은 쿠폰 적용이 불가할 수 있습니다.</li>
</ul>
</div>
<button class="btn-close" data-link="last" type="button">닫기</button></div>
</div>
<!-- e : art-container-event --><!-- 모달 스크립트 --><script>
$(document).ready(function () {
$('.btn-md').on('click', function () {
const openBtn = $(this);
const mdCnt = $($(this).attr('data-href'));
const closeBtn = mdCnt.find('.btn-close');
const first = mdCnt.find('[data-link="first"]');
const last = mdCnt.find('[data-link="last"]');
const mainHeight = $('.art-container-event').outerHeight();
$('body').css({ height: mainHeight }).addClass('md-open');
mdCnt.siblings().attr({ 'aria-hidden': true, inert: '' });
mdCnt.before('<div id="dim"></div>');
const dim = $('#dim');
dim.stop().fadeIn().next().css('visibility', 'visible');
first.on('keydown', function (e) {
if (e.shiftKey && e.keyCode === 9) {
e.preventDefault();
last.focus();
}
});
last.on('keydown', function (e) {
if (!e.shiftKey && e.keyCode === 9) {
e.preventDefault();
first.focus();
}
});
closeBtn.on('click', function () {
$(this).parent('.md-cnt').find('iframe').attr('src', $(this).parent('.md-cnt').find('iframe').attr('src'));
$('body').css({ height: '' }).removeClass('md-open');
dim.stop().fadeOut(function () {
$(this).remove();
});
mdCnt.css('visibility', 'hidden').siblings().removeAttr('aria-hidden inert');
openBtn.focus();
});
dim.on('click', function () {
closeBtn.trigger('click');
});
$(window).on('keydown', function (e) {
if (e.keyCode === 27) closeBtn.click();
});
});
});
</script><!-- E : 이벤트 복사영역 여기까지 -->