<!-- S : 이벤트 복사영역 여기서부터 -->
<style type="text/css">.art-container-event {
position: relative;
width: 100%;
max-width: 1920px;
margin: 0 auto;
text-align: center;
overflow: hidden;
}
.art-content-inner {
position: relative;
display: flex;
justify-content: center;
margin: 0 auto;
overflow: hidden;
}
.art-content-inner img {
display: block;
width: 100%;
}
/* 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"><img src="https://image.a-rt.com/art/editor/202410/1729215386109.jpg" usemap="#map1" /><map name="map1"><!-- 쿠폰 --><area alt="쿠폰 - 1만원" coords="514,1746,920,1944" href="javascript:abc.couponDown('2000001824')" shape="rect" /> <area alt="쿠폰 - 5천원" coords="994,1746,1406,1948" href="javascript:abc.couponDown('2000001823')" shape="rect" /> <area alt="쿠폰 모두 받기" coords="702,1964,1224,2096" href="javascript:abc.couponDown('2000001824', '2000001823')" shape="rect" /> <area alt="쿠폰 유의사항" aria-haspopup="dialog" class="btn-md" coords="882,2104,1034,2160" data-href="#modal1" href="#;" shape="rect" /> <!-- 내부페이지 링크 --> <area alt="특가 상품 - 러닝화" coords="514,2632,954,2978" href="#prodContent1" shape="rect" /> <area alt="특가 상품 - 스니커즈" coords="970,2636,1402,2980" href="#prodContent2" shape="rect" /> <area alt="특가 상품 - 캐주얼 슈즈" coords="516,3000,954,3368" href="#prodContent3" shape="rect" /> <area alt="특가 상품 - 키즈" coords="970,3002,1400,3376" href="#prodContent4" shape="rect" /> <area alt="추천 상품 - new" coords="520,3574,958,3938" href="#prodContent5" shape="rect" /> <area alt="추천 상품 - sale" coords="970,3578,1402,3934" href="#prodContent6" shape="rect" /> <!-- 외부페이지 링크 --> <area alt="추천 상품 - only" coords="522,3954,952,4328" href="https://abcmart.a-rt.com/promotion/planning-display/detail?plndpNo=2000005250" shape="rect" target="_blank" /> <area alt="추천 상품 - best brand" coords="964,3956,1394,4330" href="https://abcmart.a-rt.com/promotion/planning-display/detail?plndpNo=2000005252" shape="rect" target="_blank" /> <area alt="이벤트" coords="700,4900,1218,5076" href="https://www.a-rt.com/promotion/event/detail?eventNo=2000002118&page=1" shape="rect" target="_blank" /> <area alt="ABC PLUS" coords="354,5384,1562,5552" href="https://abcmart.a-rt.com/promotion/planning-display/detail?plndpNo=2000005236" shape="rect" target="_blank" /> <area alt="GS 랜딩" coords="346,5550,1566,5716" href="https://grandstage.a-rt.com/promotion/planning-display/detail?plndpNo=2000005249" shape="rect" target="_blank" /></map></div>
<!-- 모달창 1 -->
<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>쿠폰은 10월 18일부터 11월 14일까지 다운로드 및 사용 가능합니다.</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 --><!-- 1920px 스크립트 --><script>
function editorCalcWidth() {
var width_size = $(window).width();
if (width_size > 1200) $('.editor-wrap').css({ width: width_size });
}
function fixImageMaps(force) {
var imgs = document.querySelectorAll('img[usemap]');
[].forEach.call(imgs, function (img) {
if (!img.naturalHeight) {
return;
}
var h = img.height / img.naturalHeight;
var w = img.width / img.naturalWidth;
var map = document.getElementsByName(img.useMap.slice(1))[0];
if (!map) {
return;
}
for (var i = 0; i < map.children.length; i++) {
var area = map.children[i];
if (!area.coords) {
continue;
}
var coords = area.coords;
if (!area.originalCoords) {
area.originalCoords = coords;
} else {
coords = area.originalCoords;
}
var split = coords.split(',');
var fixed = '';
split.forEach(function (coord, n) {
if (n != 0) {
fixed += ',';
}
fixed += n % 2 == 0 ? Number(coord) * w : Number(coord) * h;
});
area.coords = fixed;
}
});
}
$(document).ready(function () {
editorCalcWidth();
fixImageMaps();
});
$(window).on('scroll resize', function () {
editorCalcWidth();
fixImageMaps();
});
</script><!-- 모달 스크립트 --><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 () {
$('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 : 이벤트 복사영역 여기까지 -->