|
|
@@ -19,10 +19,10 @@
|
|
|
<th:block layout:fragment="content">
|
|
|
<script src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
|
|
|
<!-- 이벤트를 위한 임시 script 및 style 추가 시작 (21.10.22 by junghwan) -->
|
|
|
-<link rel="stylesheet" th:href="${@environment.getProperty('domain.uximage')} + '/ux/jquery.bxslider.css'" th:if="${planInfo.planSq}==38 or ${planInfo.planSq}==43 or ${planInfo.planSq}==49 or ${planInfo.planSq}==56">
|
|
|
+<link rel="stylesheet" th:href="${@environment.getProperty('domain.uximage')} + '/ux/jquery.bxslider.css'" th:if="${planInfo.planSq}==38 or ${planInfo.planSq}==43 or ${planInfo.planSq}==49 or ${planInfo.planSq}==56 or ${planInfo.planSq}==63">
|
|
|
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js" th:if="${planInfo.planSq}==38 or ${planInfo.planSq}==43"></script> -->
|
|
|
-<script th:src="${@environment.getProperty('domain.uximage')} + '/ux/jquery.bxslider.min.js'" th:if="${planInfo.planSq}==38 or ${planInfo.planSq}==43 or ${planInfo.planSq}==49 or ${planInfo.planSq}==56"></script>
|
|
|
-<script th:src="${@environment.getProperty('domain.uximage')} + '/ux/pc/js/all.min.js'" th:if="${planInfo.planSq}==49 or ${planInfo.planSq}==56"></script>
|
|
|
+<script th:src="${@environment.getProperty('domain.uximage')} + '/ux/jquery.bxslider.min.js'" th:if="${planInfo.planSq}==38 or ${planInfo.planSq}==43 or ${planInfo.planSq}==49 or ${planInfo.planSq}==56 or ${planInfo.planSq}==63"></script>
|
|
|
+<script th:src="${@environment.getProperty('domain.uximage')} + '/ux/pc/js/all.min.js'" th:if="${planInfo.planSq}==49 or ${planInfo.planSq}==56 or ${planInfo.planSq}==63"></script>
|
|
|
|
|
|
<!-- 스타일데이 -->
|
|
|
<script src="https://mattstow.com/experiment/responsive-image-maps/jquery.rwdImageMaps.min.js" th:if="${planInfo.planSq}==38"></script>
|
|
|
@@ -189,6 +189,49 @@
|
|
|
.gift_slider li{text-align:right;}
|
|
|
.gift_slider li span{position:absolute; left:50%; bottom:30px; transform:translateX(-50%);}
|
|
|
</style>
|
|
|
+<!-- 유아동브랜드 Holiday 사은품이벤트 -->
|
|
|
+<script th:if="${planInfo.planSq}==63">
|
|
|
+ openWindow = function() {
|
|
|
+ var popupX = (document.body.offsetWidth / 2) - (800 / 2);
|
|
|
+ var popupY= (window.screen.height / 2) - (700 / 2);
|
|
|
+ window.open('gift_popup.html', '', 'status=no, height=700, width=800, left='+ popupX + ', top='+ popupY + ', screenX='+ popupX + ', screenY= '+ popupY);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ let slider = $('.gift_slider').bxSlider(
|
|
|
+ {
|
|
|
+ wrapperClass: 'giftwrap',
|
|
|
+ auto: true,
|
|
|
+ speed: 300,
|
|
|
+ nextText: '<i class="xi-angle-right-thin"></i>',
|
|
|
+ prevText: '<i class="xi-angle-left-thin"></i>',
|
|
|
+ }
|
|
|
+ );
|
|
|
+ $(document).on('click','.bx-next, .bx-prev',function() {
|
|
|
+ slider.stopAuto();
|
|
|
+ slider.startAuto();
|
|
|
+ });
|
|
|
+</script>
|
|
|
+<style th:if="${planInfo.planSq}==63">
|
|
|
+ .coner_item01 img {max-width:100%;}
|
|
|
+ .pm_gift_box1{padding:110px 0 70px; background:#333231; text-align:center;}
|
|
|
+ .pm_gift_box1 img{max-width:1080px;}
|
|
|
+ .pm_gift_red{padding:80px 0; background:#af1c2f; text-align:center;}
|
|
|
+ .pm_gift_red img{max-width:1080px;}
|
|
|
+ .giftwrap{position:relative; max-width:860px; width:100%; margin-bottom:80px; text-align: center;}
|
|
|
+ .giftwrap .bx-pager{position:absolute; left:50%; bottom:-40px; transform:translateX(-50%);}
|
|
|
+ .giftwrap .bx-pager div{display:inline-block;padding:0 3px;}
|
|
|
+ .giftwrap .bx-pager div a{display:block; width:6px; height:6px; background:#fff; border-radius:100%; color:transparent; font-size:0px;}
|
|
|
+ .giftwrap .bx-pager div .active{background:#000;}
|
|
|
+ .g_controls .bx-prev, .g_controls .bx-next{position:absolute;top:50%;transform:translateY(-50%);font-size:4rem;color:#fff;}
|
|
|
+ .g_controls .bx-prev{right:calc(100% + 40px);}
|
|
|
+ .g_controls .bx-next{left:calc(100% + 40px);}
|
|
|
+ .gift_box{margin:30px 0;}
|
|
|
+ .gift_box .gift_section{position:relative; max-width:860px; width:auto; margin:0 auto;}
|
|
|
+ .gift_box .gift_section #g-view{position:absolute; bottom:2rem; left:50%; transform: translateX(-50%);}
|
|
|
+ .gift_box p{font-size:18px;}
|
|
|
+ .gift_slider li{text-align:right;}
|
|
|
+ .gift_slider li span{position:absolute; left:50%; bottom:30px; transform:translateX(-50%);}
|
|
|
+</style>
|
|
|
<!-- 이벤트를 위한 임시 script 및 style 추가 종료 (21.10.22 by junghwan) -->
|
|
|
|
|
|
<div id="container" class="container dp" th:with="frontUrl=${@environment.getProperty('domain.front')}, goodsView=${@environment.getProperty('upload.goods.view')}, planView=${@environment.getProperty('upload.image.view')}">
|
|
|
@@ -420,6 +463,10 @@ let replyAttachList = [[${replyAttachList}]];
|
|
|
let planCornerGoodsList = [[${planCornerGoodsList}]];
|
|
|
let planCornerList = [[${planCornerList}]];
|
|
|
|
|
|
+String.prototype.unescapeHtml = function(){ //XSS변환
|
|
|
+ return this.replace(/</g, "<").replace(/>/g, ">");
|
|
|
+};
|
|
|
+
|
|
|
if(notice.length>0){
|
|
|
$("#G082_60").show();
|
|
|
|
|
|
@@ -439,7 +486,7 @@ if(notice.length>0){
|
|
|
html += ' <div class="announce_list">\n';
|
|
|
html += ' <ul>\n';
|
|
|
$.each(notice, function(idx, item) {
|
|
|
- html += ' <li>' +item.itemVal.escapeHtml();+ '</li>\n';
|
|
|
+ html += ' <li>' +item.itemVal.unescapeHtml();+ '</li>\n';
|
|
|
});
|
|
|
html += ' </ul>\n';
|
|
|
html += ' </div>\n';
|
|
|
@@ -982,25 +1029,25 @@ if(template.length>0){
|
|
|
html += ' </div>\n ';
|
|
|
html += ' <div class="announce_list">\n ';
|
|
|
html += ' <ul>\n';
|
|
|
- html += ' <li>' + couponContent[0].cpnNote0.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote0.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote1 != null && couponContent[0].cpnNote1 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote1.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote1.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote2 != null && couponContent[0].cpnNote2 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote2.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote2.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote3 != null && couponContent[0].cpnNote3 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote3.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote3.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote4 != null && couponContent[0].cpnNote4 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote4.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote4.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote5 != null && couponContent[0].cpnNote5 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote5.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote5.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote6 != null && couponContent[0].cpnNote6 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote6.escapeHtml();+'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote6.unescapeHtml();+'</li>\n';
|
|
|
if(couponContent[0].cpnNote7 != null && couponContent[0].cpnNote7 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote7.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote7.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote8 != null && couponContent[0].cpnNote8 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote8.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote8.unescapeHtml(); +'</li>\n';
|
|
|
if(couponContent[0].cpnNote9 != null && couponContent[0].cpnNote9 != '')
|
|
|
- html += ' <li>' + couponContent[0].cpnNote9.escapeHtml(); +'</li>\n';
|
|
|
+ html += ' <li>' + couponContent[0].cpnNote9.unescapeHtml(); +'</li>\n';
|
|
|
html += ' </ul>\n';
|
|
|
html += ' </div> ';
|
|
|
html += ' </div> ';
|
|
|
@@ -1128,7 +1175,7 @@ var fnSearchCallback = function (result) {
|
|
|
}
|
|
|
|
|
|
html += ' </div>\n';
|
|
|
- html += ' <p>'+item.entryVal1.escapeHtml()+'</p>\n';
|
|
|
+ html += ' <p>'+item.entryVal1.unescapeHtml()+'</p>\n';
|
|
|
if (item.entryCustNo == result.custNo) {
|
|
|
html += ' <button class="btn btn_default btn_del" value="'+item.planEntrySq+'" onclick="fnDelReply(this.value)"><span>삭제</span></button>\n';
|
|
|
}
|