<!-- S : 이벤트 복사영역 여기서부터 -->
<style type="text/css">@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&display=swap');
.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%;
}
/* count-down */
.art-content-inner.timer {
display: flex;
flex-direction: column;
align-items: center;
font-family: 'Noto Sans KR', sans-serif !important;
color: #fff;
background-color: #000;
padding: 104px 0;
}
.art-content-inner.timer .caption {
font-size: 34px;
font-weight: 800;
line-height: 1;
padding-bottom: 34px;
}
#countDown {
position: relative;
display: flex;
justify-content: space-between;
}
#countDown li:not(:first-child) {
width: 270px;
}
#countDown li .number {
position: relative;
font-family: 'Black Ops One', sans-serif !important;
font-size: 120px;
line-height: 1;
letter-spacing: -0.02em;
}
#countDown li:not(:last-child) .number::before {
content: ':';
position: absolute;
right: -8%;
top: 45%;
transform: translateY(-50%);
font-size: 120px;
}
#countDown .label {
font-size: 18px;
font-weight: 500;
letter-spacing: -0.05em;
}
#countDay {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: -40px;
font-size: 46px;
font-weight: 600;
}
/* modal */
#dim {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 999;
cursor: pointer;
}
.md-open {
overflow-y: hidden;
padding-right: 17px;
}
.md-cnt {
visibility: hidden;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif !important;
background: #fff;
padding: 80px;
width: 1200px;
height: 96%;
z-index: 1000;
overflow-y: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
}
.md-cnt::-webkit-scrollbar {
display: none;
}
.md-cnt .md-tit .main {
font-size: 45px;
font-weight: 700;
letter-spacing: -2.25px;
margin: 10px 0 24px;
}
.md-cnt .md-tit .name {
font-size: 20px;
font-weight: 700;
letter-spacing: -1px;
margin-bottom: 14px;
}
.md-cnt .md-tit .sub {
font-size: 18px;
font-weight: 400;
letter-spacing: -1.4px;
}
.md-cnt .md-txt .main {
font-size: 24px;
font-weight: 700;
letter-spacing: -0.6px;
margin: 40px 0 22px;
}
.md-cnt .md-txt .sub {
font-size: 18px;
font-weight: 400;
line-height: 28px;
letter-spacing: -0.45px;
}
.md-cnt .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;
}
/* modal - 유의사항 */
.md-cnt.notice {
width: 800px;
height: auto;
padding: 30px;
}
.md-cnt.notice .md-tit .main {
font-size: 28px;
font-weight: 600;
letter-spacing: -0.05em;
border-bottom: 2px solid #000;
padding-bottom: 30px;
margin: 0;
}
.md-cnt.notice .md-txt {
text-align: left;
padding-top: 30px;
}
.md-cnt.notice .md-txt ul {
line-height: 1.8;
list-style: inside;
list-style-type: '- ';
text-indent: -12px;
padding-left: 12px;
}
.md-cnt.notice .md-txt li.spot {
color: #e74c3c;
font-weight: 600;
}
</style>
<!-- s : art-container-event -->
<div class="art-container-event">
<div class="art-content-inner"><img alt="ABC마트 창립 22주년을 맞이하여 준비한 특별한 쿠폰, 이벤트 등 다양한 혜택을 만나보세요." src="https://image.a-rt.com/art/managing/event/20240822_abc_22nd/abc/pc/main.jpg" /></div>
<!-- 타이머 -->
<div class="art-content-inner timer">
<p class="caption">혜택 종료 시간</p>
<ul id="countDown">
<li>
<p id="countDay"> </p>
</li>
<li>
<div class="number" id="countHour"> </div>
<p class="label">HOURS</p>
</li>
<li>
<div class="number" id="countMin"> </div>
<p class="label">MINUTES</p>
</li>
<li>
<div class="number" id="countSec"> </div>
<p class="label">SECONDS</p>
</li>
</ul>
</div>
<div class="art-content-inner"><img src="https://image.a-rt.com/art/editor/202408/1724924469514.jpg" usemap="#map1" /><map name="map1"><!-- BENEFITS --><area alt="2족 구매 20% 할인!" coords="752,806,1158,946" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="2족 구매 20%" data-tag-title="ABC 22주년" href="#prodContent1" shape="rect" /> <area alt="12% 쿠폰 다운로드" coords="478,1448,802,1552" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="12% 할인쿠폰" data-tag-title="ABC 22주년" href="javascript:abc.couponDown('2000001704')" shape="rect" /> <area alt="쿠폰 유의사항" aria-haspopup="dialog" class="btn-md" coords="546,1560,738,1608" data-href="#modal1" href="#;" shape="rect" /> <area alt="22,000원 균일가 ZONE" coords="1110,1448,1446,1578" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="22,000원 균일가 존" data-tag-title="ABC 22주년" href="#prodContent7" shape="rect" /> <area alt="초특가 핫딜!" coords="468,2064,818,2192" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="초특가 핫딜" data-tag-title="ABC 22주년" href="https://abcmart.a-rt.com/promotion/hot-deal" shape="rect" target="_blank" /> <area alt="온라인 브랜드 혜택" coords="1112,2074,1446,2194" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="온라인 브랜드 혜택" data-tag-title="ABC 22주년" href="https://abcmart.a-rt.com/promotion/planning-display/detail?plndpNo=2000005082" shape="rect" target="_blank" /> <!-- EVENT --> <area alt="댓글 이벤트" coords="726,2974,1194,3128" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="댓글 이벤트" data-tag-title="ABC 22주년" href="https://www.a-rt.com/promotion/event/detail?eventNo=2000002091" shape="rect" target="_blank" /> <area alt="룰렛 이벤트" coords="726,3728,1186,3896" data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="룰렛 이벤트" data-tag-title="ABC 22주년" href="https://www.a-rt.com/promotion/event/detail?eventNo=2000002090" shape="rect" target="_blank" /></map></div>
<!-- 하단 띠배너 -->
<div class="art-content-inner banner"><a data-tag-id="2000005068" data-tag-index="click_event_element" data-tag-label="채널 이동 띠배너" data-tag-title="ABC 22주년" href="https://grandstage.a-rt.com/promotion/planning-display/detail?plndpNo=2000005069" target="_blank"><img alt="GRAND STAGE 전용 상품 보러가기?" src="https://image.a-rt.com/art/managing/event/20240822_abc_22nd/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>쿠폰은 8월 22일부터 9월 1일까지 다운로드 및 사용 가능합니다.</li>
<li>다운로드한 쿠폰은 마이페이지 > 쇼핑 혜택 > 쿠폰 리스트에서 확인 가능합니다.</li>
<li>쿠폰은 멤버십 회원 대상이며, ID 당 2회씩 다운로드 가능합니다.</li>
<li class="spot">쿠폰 사용 후 취소/반품하신 경우, 쿠폰 사용기간 만료에 의해 환원되지 않을 수 있습니다.</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>
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;
}
});
}
window.onresize = fixImageMaps;
window.onload = fixImageMaps;
</script><!-- 카운트다운 제어 --><script>
window.onload = function () {
const to = '2024-09-01 23:59:59';
function getClock() {
const now = new Date();
const end = new Date(to);
let gap = end - now;
if (gap < 0) gap = 0;
const gapDay = Math.floor(gap / (1000 * 60 * 60 * 24));
const gapHour = String(Math.floor((gap / (1000 * 60 * 60)) % 24)).padStart(2, '0');
const gapMin = String(Math.floor((gap / (1000 * 60)) % 60)).padStart(2, '0');
const gapSec = String(Math.floor((gap / 1000) % 60)).padStart(2, '0');
document.querySelector('#countDay').innerText = `${gapDay}일`;
document.querySelector('#countHour').innerText = `${gapHour}`;
document.querySelector('#countMin').innerText = `${gapMin}`;
document.querySelector('#countSec').innerText = `${gapSec}`;
}
getClock();
setInterval(getClock, 1000);
};
</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 : 이벤트 복사영역 여기까지 -->