|
|
@@ -50,6 +50,19 @@
|
|
|
</div>
|
|
|
<button onclick="$('#gnb').toggleClass('expand');" class="btn-expand"></button>
|
|
|
</div>
|
|
|
+
|
|
|
+ <!-- 210510_추가 : 띠배너 추가. -->
|
|
|
+ <div class="bnrtype_banner" id="divTopbanner" style="background-color:#fd4801;">
|
|
|
+<!-- <a href="javascript:;" target="">-->
|
|
|
+<!-- <!– 텍스트 영역 –>-->
|
|
|
+<!-- <div>-->
|
|
|
+<!-- <span>APP</span> 수신동의 하면 <span>1</span>만 포인트 증정!-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <!– //텍스트 영역 –>-->
|
|
|
+<!-- </a>-->
|
|
|
+<!-- <button type="button" class="bnrtype_close"><span class="sr-only">배너 닫기</span></button>-->
|
|
|
+ </div>
|
|
|
+ <!-- //210510_추가 : 띠배너 추가. -->
|
|
|
|
|
|
<!-- 통합검색 팝업 -->
|
|
|
<div class="modal pop_full schPop sch" id="schPop" tabindex="-1" role="dialog" aria-labelledby="schPopLabel" aria-hidden="true">
|
|
|
@@ -154,16 +167,45 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ // 띠배너 조회
|
|
|
+ let fnCreateTopMobBanner = function (){
|
|
|
+ var url = '/display/gnb/topbanner/list?contentsLoc=SGNB002';
|
|
|
+ let tag = '';
|
|
|
+ $.getJSON(url, function (result, status){
|
|
|
+ if(result.length>0){
|
|
|
+ $.each(result, function (idx, item) {
|
|
|
+ $('#divTopbanner').html('');
|
|
|
+ tag+=' <a href="'+item.strVar1+'" target="">';
|
|
|
+ tag+=' <div style="color:#fff; font-size:20px; font-weight:300;">';
|
|
|
+ tag+=' <span style="font-weight:500">'+item.strTitle1+'</span>';
|
|
|
+ tag+=' </div>';
|
|
|
+ tag+=' </a>';
|
|
|
+ tag+='<button type="button" class="bnrtype_close"><span class="sr-only">배너 닫기</span></button>';
|
|
|
+ $('#divTopbanner').html(tag);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
$(document).on("click",".htop .search",function(){
|
|
|
$("#schPop .modal-content").load("popup_sch_layer.html");
|
|
|
$("#schPop").modal("show");
|
|
|
return false;
|
|
|
});
|
|
|
+
|
|
|
+ //210510_추가 : 띠배너 닫기
|
|
|
+ $(document).on('click','.bnrtype_banner .bnrtype_close',function(){
|
|
|
+ $(this).parents('.bnrtype_banner').hide();
|
|
|
+ return false;
|
|
|
+ })
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
// GNB탭 > 브랜드 생성
|
|
|
fnCreateGnbBrandGroup();
|
|
|
+
|
|
|
+ // 띠배너 조회
|
|
|
+ fnCreateTopMobBanner();
|
|
|
});
|
|
|
/*]]>*/
|
|
|
</script>
|