메인 팝업 캐시 사용자 완료
This commit is contained in:
parent
3d9db44442
commit
6d8186d38b
@ -10,6 +10,7 @@ import java.util.stream.IntStream;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
||||
@ -386,13 +387,14 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen
|
||||
public void insertMainPopup(MainPopupVO mainPopupVO) {
|
||||
dao.insertMainPopup(mainPopupVO);
|
||||
|
||||
List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO);
|
||||
|
||||
|
||||
mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString()));
|
||||
|
||||
|
||||
dao.insertMainPopupLinkInfo(mainPopupLinkListVO);
|
||||
|
||||
if(CollectionUtils.isNotEmpty(mainPopupVO.getMainPopupLinkList())) {
|
||||
|
||||
List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO);
|
||||
// mainPopupLinkListVO.stream().forEach(t-> System.out.println(t.toString()));
|
||||
dao.insertMainPopupLinkInfo(mainPopupLinkListVO);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -400,11 +402,15 @@ public class EgovPopupManageServiceImpl extends EgovAbstractServiceImpl implemen
|
||||
|
||||
dao.updateMainPopup(mainPopupVO);
|
||||
|
||||
List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO);
|
||||
|
||||
dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId());
|
||||
if(CollectionUtils.isNotEmpty(mainPopupVO.getMainPopupLinkList())) {
|
||||
|
||||
dao.insertMainPopupLinkInfo(mainPopupLinkListVO);
|
||||
List<MainPopupLinkVO> mainPopupLinkListVO = getMainPopupLinkList(mainPopupVO);
|
||||
|
||||
dao.deleteMainPopupLinkInfo(mainPopupVO.getPopId());
|
||||
|
||||
dao.insertMainPopupLinkInfo(mainPopupLinkListVO);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -78,6 +78,8 @@ import itn.com.cmm.service.EgovFileMngUtil;
|
||||
import itn.com.cmm.service.FileVO;
|
||||
import itn.com.cmm.util.StringUtil;
|
||||
import itn.com.cmm.util.WebUtil;
|
||||
import itn.com.uss.ion.bnr.pop.service.MainPopupManageService;
|
||||
import itn.com.uss.ion.bnr.pop.service.MainPopupVO;
|
||||
import itn.com.uss.ion.bnr.service.BannerVO;
|
||||
import itn.com.uss.ion.bnr.service.EgovBannerService;
|
||||
import itn.com.uss.ion.bnr.sub.service.SubMainZoneManageService;
|
||||
@ -264,10 +266,13 @@ public class MainController {
|
||||
@Resource(name = "mjonCandidateService")
|
||||
private MjonCandidateService mjonCandidateService;
|
||||
|
||||
/** EgovPopupManageService */
|
||||
@Resource(name = "subMainZoneManageService")
|
||||
private SubMainZoneManageService subMainZoneManageService;
|
||||
|
||||
/** 메인팝업 service */
|
||||
@Resource(name = "mainPopupManageService")
|
||||
private MainPopupManageService mainPopupManageService;
|
||||
|
||||
|
||||
@Value("#{globalSettings['Globals.email.host']}")
|
||||
private String Globals_email_host;
|
||||
@ -701,6 +706,15 @@ public class MainController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
{//팝업 롤링 이미지 불러오기
|
||||
|
||||
List<MainPopupVO> resultMainPopupList = mainPopupManageService.selectMainPopupListRolling();
|
||||
model.addAttribute("mainPopupList", resultMainPopupList);
|
||||
System.out.println("===================mainPopupList");
|
||||
|
||||
}
|
||||
|
||||
return "web/main/mainPage";
|
||||
}
|
||||
|
||||
|
||||
@ -13,116 +13,18 @@
|
||||
<script src="/publish/js/swiper.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
let cookieCache = null; // 쿠키 데이터를 캐시할 변수
|
||||
|
||||
$(document).ready(function() {
|
||||
// http => https 로 이동
|
||||
if(${Env eq 'prod'}){
|
||||
httpsRedirect();
|
||||
}
|
||||
|
||||
// 슬라이드 이미지 변경
|
||||
//setMainSlideImgChange();
|
||||
|
||||
//슬라이드 이미지 변경 => Double
|
||||
// 9월 30일 개천절
|
||||
// 10월 4일 한글날
|
||||
//setMainSlideImgChangeDouble();
|
||||
|
||||
//추석연휴 고객센터 안내 팝업
|
||||
var holidayShow = false;
|
||||
var rsvSDate = "2024-11-01";
|
||||
var rsvEDate = "2024-11-01";
|
||||
var now = new Date();
|
||||
now = leadingZeros(now.getFullYear(), 4) + '-' + leadingZeros(now.getMonth() + 1, 2) + '-' + leadingZeros(now.getDate(), 2);
|
||||
if (now < rsvSDate || now > rsvEDate) {
|
||||
$('.pointPop').hide();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//메인 팝업 호출 여부
|
||||
var evntPopCk = fnGetCookie('layer_evntPayPop'); // 이벤트 쿠키
|
||||
var cookieDelPopCk = fnGetCookie('layer_cookieDelPop'); // 브라우저 쿠키
|
||||
|
||||
var agreePrivatePopCk = fnGetCookie('layer_agreePrivatePop');
|
||||
|
||||
console.log("# 팝업 레이어 : START");
|
||||
console.log("layer_evntPayPop : " + evntPopCk);
|
||||
console.log("layer_cookieDelPop : " + cookieDelPopCk);
|
||||
|
||||
|
||||
if(agreePrivatePopCk != null){//개인정보 및 이용약관 개정 팝업 노출, 3일안보기 쿠키 있으면 팝업 안모여준다.
|
||||
$(".agreePrivatePop").css("display","none");
|
||||
$(".agreePrivatePop").hide();
|
||||
}
|
||||
|
||||
if(evntPopCk != null && cookieDelPopCk != null){//팝업 쿠키가 모두 있는 경우 안보여준다.
|
||||
console.log("eventLayerPop : STEP 1. 이벤트 팝업 쿠키가 모두 있는 경우 안보여준다.");
|
||||
|
||||
$(".eventLayerPop").css("display","none");
|
||||
$(".eventLayerPop").hide();
|
||||
|
||||
}else if(evntPopCk == null && cookieDelPopCk == null){// 이벤트 팝업 쿠키가 모두 없으면 팝업 보여주기
|
||||
console.log("eventLayerPop : STEP 2. 이벤트 팝업 쿠키가 모두 없으면 팝업 보여주기.");
|
||||
|
||||
$(".eventLayerPop").css("display","block");
|
||||
$(".eventLayerPop").show();
|
||||
|
||||
}else if(evntPopCk != null || cookieDelPopCk != null){
|
||||
console.log("eventLayerPop : STEP 3. 이벤트 팝업 쿠키가 하나라도 있으면 보여주기");
|
||||
|
||||
$(".eventLayerPop").css("display", "block");
|
||||
$(".eventLayerPop").show();
|
||||
if (fnGetCookie('layer_evntPayPop') != null) { //첫결제 이벤트 쿠키가 없으면 보여주기
|
||||
console.log("이벤트 쿠키 있음 : HIDE");
|
||||
|
||||
$('.payEventPop').css("display","none");
|
||||
$('.payEventPop').hide();
|
||||
}
|
||||
|
||||
if (fnGetCookie('layer_cookieDelPop') != null) { //포인트 안내 팝업, 3일 안보기 체크
|
||||
console.log("포인트 쿠키 있음 : HIDE");
|
||||
|
||||
$('.delCookiePop').css("display","none");
|
||||
$('.delCookiePop').hide();
|
||||
}
|
||||
}
|
||||
|
||||
//레이어 팝업이 하나도 없으면 배경도 안보이도록 처리
|
||||
if($(".layer_popup:visible").length == 0){
|
||||
$(".layer_popup_wrap").hide();
|
||||
}
|
||||
|
||||
if (fnGetCookie('todayClose') != null) { //상단팝업
|
||||
scrTop = $(window).scrollTop();
|
||||
var bodyWid = $("body").width();
|
||||
var windowHei = $("window").height();
|
||||
var topBnnHei = $(".topBanner").height();
|
||||
var hdHei = $("header").height();
|
||||
$(".topBanner").hide();
|
||||
$("header").removeClass("bnnOn");
|
||||
$(".mainContent").removeClass("bnnOn");
|
||||
$(".allMenu").removeClass("bnnOn");
|
||||
}
|
||||
|
||||
/* if(fnGetCookie('tdClose') != null ){ //좌측팝업
|
||||
$(".mainContent").removeClass("bnnOn");
|
||||
$(".allMenu").removeClass("bnnOn");
|
||||
$(".popLayer").removeClass("on");
|
||||
} */
|
||||
var bdWid = $("body").width();
|
||||
|
||||
if (fnGetCookie('tdClose') == null && bdWid > 769) { //좌측팝업
|
||||
$(".mainContent").addClass("bnnOn");
|
||||
$(".allMenu").addClass("bnnOn");
|
||||
$(".popLayer").addClass("on");
|
||||
}
|
||||
|
||||
//그림문자 리스트 불러오기
|
||||
document.letterForm.categoryCode.value = "best"
|
||||
fnPhotoListAjax();
|
||||
|
||||
//장문문자 로딩시 데이터 불러오기
|
||||
//fnLongLetterListBlind();
|
||||
|
||||
/* 메인-문자샘플 탭 선택 시 활성화 */
|
||||
$(".tab_depth1 a").click(function() {
|
||||
@ -299,24 +201,14 @@ $(document).ready(function() {
|
||||
/**
|
||||
이벤트 팝업 호출 처리
|
||||
*/
|
||||
|
||||
/*
|
||||
var payCount = '${payCount}';
|
||||
var eventYn = false;
|
||||
<c:if test="${not empty resultEvent}">
|
||||
eventYn = true;
|
||||
</c:if>
|
||||
|
||||
var blineCode = '${blineCode}';
|
||||
blineCode = $.trim(blineCode);
|
||||
if (blineCode == null || blineCode == "" || blineCode == undefined) {
|
||||
blineCode = "N";
|
||||
}
|
||||
|
||||
console.log("");
|
||||
console.log("이벤트 팝업 호출 처리");
|
||||
console.log("payCount : " + payCount);
|
||||
console.log("eventYn : " + eventYn);
|
||||
console.log("blineCode : " + blineCode);
|
||||
|
||||
if(payCount < 1 && eventYn && blineCode == 'N'){//결제내역이 하나도 없고, 이벤트가 진행중이면 팝업 호출
|
||||
console.log("이벤트 팝업 함수 CALL");
|
||||
remoteEventPayPop(payCount);
|
||||
@ -329,11 +221,130 @@ $(document).ready(function() {
|
||||
if($(".layer_popup:visible").length == 0){
|
||||
$(".layer_popup_wrap").hide();
|
||||
}
|
||||
}
|
||||
|
||||
console.log("# 팝업 레이어 : END");
|
||||
} */
|
||||
|
||||
setTimeout(function () {
|
||||
hidePopupByCookie();
|
||||
}, 300);
|
||||
});
|
||||
|
||||
/* ********************************************************
|
||||
* 쿠키설정
|
||||
******************************************************** */
|
||||
|
||||
/**
|
||||
* 쿠키 설정 함수
|
||||
* @param {string} name - 쿠키 이름
|
||||
* @param {string} value - 쿠키 값
|
||||
* @param {number} days - 쿠키 유지 기간 (일 단위)
|
||||
*/
|
||||
function setMainCookie(name, value, expires) {
|
||||
|
||||
var todayDate = new Date();
|
||||
todayDate.setDate(todayDate.getDate() + expires);
|
||||
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
|
||||
|
||||
// 캐시에도 즉시 반영하여 최신 데이터 유지
|
||||
if (cookieCache !== null) {
|
||||
cookieCache[name] = value;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 쿠키 가져오기 함수
|
||||
* @param {string} name - 가져올 쿠키의 이름
|
||||
* @returns {string|null} - 쿠키 값 (없으면 null 반환)
|
||||
*/
|
||||
function getMainCookie(name) {
|
||||
let allCookies = getAllCookies(); // 쿠키 전체를 한 번만 가져옴
|
||||
return allCookies[name] || null; // 해당 쿠키가 있으면 반환, 없으면 null
|
||||
}
|
||||
/**
|
||||
* 전체 쿠키를 한 번만 읽어서 객체(Map)로 변환하는 함수
|
||||
*/
|
||||
function getAllCookies() {
|
||||
if (cookieCache !== null) {
|
||||
return cookieCache; // 기존 캐시된 값이 있으면 재조회하지 않고 반환
|
||||
}
|
||||
|
||||
let cookieObj = {};
|
||||
let cookies = document.cookie.split(";");
|
||||
|
||||
for (let i = 0; i < cookies.length; i++) {
|
||||
let c = cookies[i].trim();
|
||||
let parts = c.split("=");
|
||||
let key = parts[0];
|
||||
let value = parts.slice(1).join("=");
|
||||
cookieObj[key] = value;
|
||||
}
|
||||
|
||||
cookieCache = cookieObj; // 쿠키 데이터를 캐시에 저장
|
||||
console.log('cookieCache : ', cookieCache);
|
||||
return cookieObj;
|
||||
}
|
||||
|
||||
/**
|
||||
* "3일간 보지 않음" 체크 시 실행되는 함수
|
||||
* @param {string} popupId - 닫을 팝업 ID
|
||||
*/
|
||||
window.fnPopupChk = function (popupId) {
|
||||
setMainCookie("hidePopup_" + popupId, "true", 3); // 3일간 유지되는 쿠키 설정
|
||||
$("#" + popupId).hide(); // 해당 팝업 즉시 숨김 처리
|
||||
};
|
||||
|
||||
/**
|
||||
* 페이지 로딩 시 쿠키 확인 후 팝업 숨김 처리
|
||||
*/
|
||||
function hidePopupByCookie() {
|
||||
let showPopup = false; // 팝업이 하나라도 보일 경우 true로 변경
|
||||
|
||||
$(".layer_popup").each(function () {
|
||||
let popupId = $(this).attr("id"); // 현재 팝업의 ID 가져오기
|
||||
console.log('popupId : ', popupId);
|
||||
if (getMainCookie("hidePopup_" + popupId)) {
|
||||
$(this).hide(); // 쿠키가 존재하면 해당 팝업 숨김 처리
|
||||
} else {
|
||||
$(this).show(); // 쿠키가 없으면 해당 팝업 표시
|
||||
showPopup = true; // 팝업이 하나라도 보이면 true 설정
|
||||
}
|
||||
});
|
||||
|
||||
// 쿠키에 의해 숨겨지지 않은 팝업이 하나라도 있다면 `.eventLayerPop`을 표시
|
||||
if (showPopup) {
|
||||
$(".eventLayerPop").show();
|
||||
} else {
|
||||
$(".eventLayerPop").hide();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 닫기 버튼 클릭 시 해당 팝업 숨김 처리
|
||||
*/
|
||||
$(".popup_close").on("click", function () {
|
||||
$(this).closest(".layer_popup").hide(); // 가장 가까운 `.layer_popup` 요소 숨김
|
||||
hidePopupByCookie(); // 전체 팝업 표시 여부 다시 확인
|
||||
});
|
||||
|
||||
|
||||
/* ********************************************************
|
||||
* //쿠키설정
|
||||
******************************************************** */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function leadingZeros(n, digits) {
|
||||
var zero = '';
|
||||
n = n.toString();
|
||||
@ -345,90 +356,6 @@ function leadingZeros(n, digits) {
|
||||
return zero + n;
|
||||
}
|
||||
|
||||
// 슬라이드 이미지 변경
|
||||
function setMainSlideImgChange() {
|
||||
var parentsDayShow = false;
|
||||
var rsvDate = "2023-10-10";
|
||||
var now = new Date();
|
||||
now = leadingZeros(now.getFullYear(), 4) + '-' + leadingZeros(now.getMonth() + 1, 2) + '-' + leadingZeros(now.getDate(), 2);
|
||||
if (now >= rsvDate) {
|
||||
parentsDayShow = true;
|
||||
}
|
||||
|
||||
// 석가탄신일 => 현충일 이미지로 변경
|
||||
if (parentsDayShow == true) {
|
||||
$("#mainSlideImg_1001").attr("src", "/publish/images/main/f_visual_01_20231006.jpg");
|
||||
$("#mainSlideImg_1001").attr("alt", "문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 Halloween 즐겁고 유쾌한 할로윈데이 보내세요 가을엔 독서 같이 책읽으실래요?");
|
||||
$("#mainSlideImg_1002").attr("src", "/publish/images/main/f_visual_03_20231006.jpg");
|
||||
$("#mainSlideImg_1002").attr("alt", "다른 사이트에는 없다! 오직 문자온에만 있다! 최고의 디자이너가 직접 제작하는 그림문자 맞춤제작을 통해 나만의 문자를 디자인 해보세요. 가을은 캠핑의 계절! 낭만캠핑 캠핑하기 좋은 계절, 가을이 돌아왔습니다. 즐거운 캠핑을 떠나고 싶으신가요? 지금 이벤트에 참여하시면, 캠핑 지원금을 드립니다. 지금 바로 참여하세요! 즐거운 캠핑 지원금 문자온에서 확인해보세요! HALLOWEEN 할로윈이벤트 이벤트에 참여하시고 무시무시한 혜택을 받아보세요 이벤트 기간 2099.10.01 10.31 이벤트 대상 10,000원 이상 구매한 모든 고객 event 01 5만원 이상 구매시 5,000원할인쿠폰 증정! event02 이벤트 기간동안 무료배송! event03 어플 설치 시 10% 추가 할인 쿠폰 증정! HALLOWEEN 할로윈 코스튬 할로윈 분위기에 맞게 코스튬을 하고 와요! 할로윈 CAKE 할로윈을 맞이하여 호박케이크를 만들어봐요! 문자온 영어학원 T.031.123.4567");
|
||||
|
||||
// Main Visual Swiper
|
||||
getMainVisualSwiper();
|
||||
}
|
||||
}
|
||||
|
||||
//슬라이드 이미지 변경 => Double
|
||||
// 9월 30일 개천절
|
||||
// 10월 4일 한글날
|
||||
function setMainSlideImgChangeDouble() {
|
||||
var showMainSlideImg1 = false;
|
||||
var showMainSlideImg2 = false;
|
||||
var rsvDate1 = "2023-09-30";
|
||||
var rsvDate2 = "2023-10-04";
|
||||
var now = new Date();
|
||||
now = leadingZeros(now.getFullYear(), 4) + '-' + leadingZeros(now.getMonth() + 1, 2) + '-' + leadingZeros(now.getDate(), 2);
|
||||
if (now >= rsvDate2) {
|
||||
showMainSlideImg2 = true;
|
||||
}
|
||||
else if (now >= rsvDate1) {
|
||||
showMainSlideImg1 = true;
|
||||
}
|
||||
|
||||
if (showMainSlideImg1 == true) {
|
||||
$("#mainSlideImg_1001").attr("src", "/publish/images/main/f_visual_01_20230930.jpg");
|
||||
$("#mainSlideImg_1001").attr("alt", "문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 책과 함께 하는 가을 여행 10월 9일 한글날 아름다운 우리말을 사용하며, 행복한 한글날 보내시길 바랍니다.");
|
||||
$("#mainSlideImg_1002").attr("src", "/publish/images/main/f_visual_03_20230930.jpg");
|
||||
$("#mainSlideImg_1002").attr("alt", "다른 사이트에는 없다! 오직 문자온에만 있다! 최고의 디자이너가 직접 제작하는 그림문자 맞춤제작을 통해 나만의 문자를 디자인 해보세요. AUTUMN 가을맞이 정기세일 9.15-10.15 가을맞이 특별한 세일 전품목 최대 70% 할인의 기회를 누리세요! 10월 3일(화) 휴진 개천절 휴진안내 예약 및 내원에 착오 없으시길 바랍니다. 건강한 10월 보내세요 S M T W T F S 1 2-3(휴진) 4 5 6 7 10월 3일은 개천절은 하늘이 열린날 개천절 휴/진/안/내");
|
||||
|
||||
// Main Visual Swiper
|
||||
getMainVisualSwiper();
|
||||
}
|
||||
|
||||
if (showMainSlideImg2 == true) {
|
||||
$("#mainSlideImg_1001").attr("src", "/publish/images/main/f_visual_01_20231004.jpg");
|
||||
$("#mainSlideImg_1001").attr("alt", "문자는 이제, 문자온! 단 한번, 국내 최저가! 인생 최저가! 첫결제 단문 7.5원 장문 32원 그림 59원 책과 함께 하는 가을 여행 10월 9일 한글날 아름다운 우리말을 사용하며, 행복한 한글날 보내시길 바랍니다.");
|
||||
$("#mainSlideImg_1002").attr("src", "/publish/images/main/f_visual_03_20231004.jpg");
|
||||
$("#mainSlideImg_1002").attr("alt", "다른 사이트에는 없다! 오직 문자온에만 있다! 최고의 디자이너가 직접 제작하는 그림문자 맞춤제작을 통해 나만의 문자를 디자인 해보세요. Fall in Music Autumn Concert 09/15(토) 출연가수 온밴드, 온스파, 온와이스, 온뱅, 문자아이들, 온마이걸 주관: 문자온 코리아 협찬: 문자온추진위원회 후원 : 문자온추진위원회 한글날 한글날 이벤트 3행시 짓기 #한글날 #쿠폰 #이벤트 #좋아요 #댓글 이벤트 기간 2023.10.01 ~ 2023.10.06 당첨상품 음료 기프티콘 쿠폰(200명) 100% 국내산 유기농 우리김치 김장김치 예약판매 최적의 산지에서 수확한 신선한 배추와 엄선된 양념으로 보다 깊은 감칠맛을 선사합니다. 행사기간 2029.10.20~11.7");
|
||||
|
||||
// Main Visual Swiper
|
||||
getMainVisualSwiper();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Main Visual Swiper
|
||||
function getMainVisualSwiper() {
|
||||
var mainSwiper = new Swiper('.visual_swiper', {
|
||||
effect: "fade",
|
||||
slidesPerView: 1,
|
||||
spaceBetween: 0,
|
||||
speed : 400,
|
||||
loop: true,
|
||||
autoplay: {
|
||||
delay: 3000,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
clickable: true,
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.visual_swiper .swiper-button-next',
|
||||
prevEl: '.visual_swiper .swiper-button-prev',
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//http => https 로 이동
|
||||
function httpsRedirect() {
|
||||
@ -483,6 +410,8 @@ function addrRecvListAjax() {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Show Html
|
||||
function getAddrRecvListShow(jsonList, addrRecvListSize) {
|
||||
var addrGrpId = "";
|
||||
@ -758,14 +687,6 @@ function fnPhotoListAjax() {
|
||||
});
|
||||
}
|
||||
|
||||
//메인화면 첫 로딩시 인기장문문자 히든 시켜두기
|
||||
function fnLongLetterListBlind(){
|
||||
fnLetterListAjax();
|
||||
$("#photoLoad").css('display','block')
|
||||
$("#letterLoad").css('display','none')
|
||||
|
||||
}
|
||||
|
||||
|
||||
//장문, 단문 문자 샘플 로드
|
||||
function fnLetterListAjax() {
|
||||
@ -874,65 +795,7 @@ function fn_egov_inqire_notice(bbsId, nttId) {
|
||||
document.searchForm.submit();
|
||||
}
|
||||
|
||||
/* ********************************************************
|
||||
* 쿠키설정
|
||||
******************************************************** */
|
||||
//쿠키설정
|
||||
function fnSetCookieEventPopup(name, value, expiredays) {
|
||||
|
||||
console.log("cash name ::: " + name);
|
||||
var todayDate = new Date();
|
||||
todayDate.setDate(todayDate.getDate() + expiredays);
|
||||
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
|
||||
}
|
||||
|
||||
//쿠키정보 가져오기
|
||||
function fnGetCookie(name) {
|
||||
|
||||
var prefix = name + "=";
|
||||
var cookieStartIndex = document.cookie.indexOf(prefix);
|
||||
if (cookieStartIndex == -1) return null;
|
||||
var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
|
||||
if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length;
|
||||
return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
|
||||
}
|
||||
|
||||
|
||||
/* ********************************************************
|
||||
* 체크버튼 클릭시
|
||||
******************************************************** */
|
||||
function fnPopupChk(popupId , typeFlag) {
|
||||
var pcVal = $('#'+popupId).is(':checked');
|
||||
|
||||
if(pcVal){
|
||||
fnSetCookieEventPopup(typeFlag+"_"+popupId , "done" , 3);
|
||||
}
|
||||
|
||||
if(popupId == 'cookieDelPop'){
|
||||
console.log(popupId);
|
||||
$('.cookieDelPopClose').click(); //팝업 자동으로 닫기
|
||||
}
|
||||
|
||||
if(popupId == 'evntPayPop'){
|
||||
console.log(popupId);
|
||||
$('.evntPayPopClose').click(); //팝업 자동으로 닫기
|
||||
}
|
||||
|
||||
if(popupId == 'pointPop'){
|
||||
console.log(popupId);
|
||||
$('.pointPopClose').click(); //팝업 자동으로 닫기
|
||||
}
|
||||
|
||||
if(popupId == 'agreePrivatePop'){
|
||||
console.log(popupId);
|
||||
$('.agreePrivatePopClose').click(); //팝업 자동으로 닫기
|
||||
}
|
||||
//fn_layerClose(popupId);
|
||||
//레이어 팝업이 하나도 없으면 배경도 안보이도록 처리
|
||||
if($(".layer_popup:visible").length == 0){
|
||||
$(".layer_popup_wrap").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function fnMainImgSendMsg(atchFileId, fileSn, strImgPath){
|
||||
|
||||
@ -1012,7 +875,7 @@ function popScrCloseSetting(){
|
||||
|
||||
|
||||
//이벤트 팝업 호출
|
||||
function remoteEventPayPop(payCount) {
|
||||
/* function remoteEventPayPop(payCount) {
|
||||
if (fnGetCookie('layer_evntPayPop') != null) { //첫결제 이벤트 팝업 3일 안보기 체크
|
||||
console.log("이벤트 쿠키 있음 : HIDE");
|
||||
|
||||
@ -1029,9 +892,9 @@ function remoteEventPayPop(payCount) {
|
||||
window.open("about:blank", 'eventPayPop', 'width=700, height=700, top=100, left=100, fullscreen=no, menubar=no, status=no, toolbar=no, titlebar=yes, location=no, scrollbar=no');
|
||||
document.eventForm.action = "<c:url value='/web/event/selectEventPopAjax.do'/>";
|
||||
document.eventForm.target = "eventPayPop";
|
||||
document.eventForm.submit(); */
|
||||
document.eventForm.submit();
|
||||
}
|
||||
|
||||
*/
|
||||
function fnEventLoginChk(){
|
||||
|
||||
var userId = '${userId}';
|
||||
@ -1179,32 +1042,41 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
||||
</form>
|
||||
|
||||
<!-- 이벤트 팝업 -->
|
||||
<div class="layer_popup_wrap eventLayerPop" style="display:none;">
|
||||
<div class="layer_popup_wrap eventLayerPop" style="display:none; ">
|
||||
<!-- <div class="layer_popup_wrap eventLayerPop"> -->
|
||||
<div class="popup_inner">
|
||||
<c:forEach var="result" items="${mainPopupList}" varStatus="status">
|
||||
<div class="layer_popup" id="<c:out value='${result.popId}'/>">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/cmm/fms/getImage.do?atchFileId=<c:out value='${result.mainzoneImageFile}'/>"
|
||||
alt="<c:out value='${result.content}'/>"
|
||||
<c:if test="${not empty result.mainPopupLinkList}"> usemap="#<c:out value='${result.popId}'/>map"</c:if> />
|
||||
<c:if test="${not empty result.mainPopupLinkList }">
|
||||
<map name="${result.popId }map">
|
||||
<c:forEach var="low" items="${result.mainPopupLinkList }">
|
||||
<area href="${low.mlink }" coords="${low.coords }" shape="rect">
|
||||
</c:forEach>
|
||||
</map>
|
||||
</c:if>
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="label${status.index }"
|
||||
onclick="javascript:fnPopupChk('<c:out value='${result.popId}'/>')">
|
||||
<label for="label${status.index }">3일간 열지 않음</label>
|
||||
|
||||
<button type="button" class="popup_close <c:out value='${result.popId}'/>Close">
|
||||
<img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기">
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</c:forEach>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<%-- <div class="layer_popup pointPop chusPopup">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup03.jpg" alt="[추석 연휴 고객센터 운영 안내] 풍성하고 넉넉한 한가위 되시길 기원하며, 추석 연휴 동안의 고객센터 운영에 대하여 안내드립니다. 연휴기간 : 09월 16일(월) ~ 09월 18일(수) - 고객센터(1551-8011)를 통한 전화상담은 운영되지 않습니다. - 온라인(카카오톡/홈페이지1:1문의/E-mail) 상담은 24시간 접수 가능합니다. - 접수된 문의는 순차적으로 처리되며 빠른 시일 내에 답변드리도록 하겠습니다. 감사합니다">
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="pointPop" name="pointPop" onclick="javascript:fnPopupChk('pointPop' , 'layer')"><label for="pointPop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close pointPopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div> --%>
|
||||
|
||||
<!-- 20241101 작업공지 팝업 -->
|
||||
<div class="layer_popup pointPop">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup05_241101.jpg" alt="작업공지 문자온 대표전화 서비스 일시 중단 안내 ARS시스템 점검으로 인하여 다음과 같이 대표전화 서비스가 일시 중단되오니 서비스 이용에 참고하시기 바랍니다.작업일시 : 2024.11.01(금), 15:00 ~ 17:30 작업내용 : ARS시스템 정기점검 작업영향 : 작업시간 동안 고객센터(1551-8011)를 통한 전화상담 중지 ※ 온라인(카카오톡/홈페이지1:1문의/E-mail) 상담은 가능하며, 접수된 문의는 빠른 시일 내에 순차적으로 답변드리도록 하겠습니다. 감사합니다.">
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="pointPop" name="pointPop" onclick="javascript:fnPopupChk('pointPop' , 'layer')"><label for="pointPop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close pointPopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 20241028 이용약관, 개인정보처리방침 팝업 -->
|
||||
<div class="layer_popup agreePrivatePop" id="agreePrivatePop_20241105" style="display: none;">
|
||||
<!-- <div class="layer_popup agreePrivatePop" id="agreePrivatePop_20241105">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup04_241028.jpg" alt="이용약관, 개인정보처리방침 개정 안내 변함없는 문자온 서비스 이용에 감사의 말씀 드립니다. 당사 이용약관 및 개인정보처리방침이 개정되오니 서비스 이용에 참고하시기 바랍니다. 이용약관 공지사항 개인정보처리방침 공지사항 항상 최선의 서비스를 제공할 수 있도록 노력하겠습니다. 감사합니다." usemap="#popup-service-map">
|
||||
<map name="popup-service-map">
|
||||
@ -1216,70 +1088,15 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
||||
<input type="checkbox" id="agreePrivatePop" name="agreePrivatePop" onclick="javascript:fnPopupChk('agreePrivatePop' , 'layer')"><label for="agreePrivatePop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close agreePrivatePopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 20241105 이용약관 팝업 -->
|
||||
<div class="layer_popup agreePrivatePop" id="agreePrivatePop_20241106" style="display: none;">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup04_241105.jpg" alt="이용약관 개정 안내 변함없는 문자온 서비스 이용에 감사의 말씀 드립니다. 당사 이용약관이 개정되오니 서비스 이용에 참고하시기 바랍니다. 이용약관 공지사항 항상 최선의 서비스를 제공할 수 있도록 노력하겠습니다. 감사합니다." usemap="#popup-use-map">
|
||||
<map name="popup-use-map">
|
||||
<area href="https://www.munjaon.co.kr/web/cop/bbs/NoticeDetail.do?bbsId=BBSMSTR_000000000721&nttId=700" coords="35,295,378,352" shape="rect">
|
||||
</map>
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="agreePrivatePop" name="agreePrivatePop" onclick="javascript:fnPopupChk('agreePrivatePop' , 'layer')"><label for="agreePrivatePop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close agreePrivatePopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 세로가 짧은 팝업 2개일때 -->
|
||||
<!-- <div class="popup_range" id="agreePrivatePop_20241129">
|
||||
20241119 보안강화 인증 수단 도입 안내 팝업
|
||||
<div class="layer_popup agreePrivatePop" style="margin: 0 0 20px 30px;" id="agreePrivatePop_20241121">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup06_241119.jpg" alt="보안강화 인증수단 도입 안내 2024년11월 17일자로 보안강화를 위해 서비스 로그인시 휴대폰 본인인증 기능을 도입하였으니 서비스 이용에 참고하시기 바랍니다." usemap="#popup-user-map1" style="height:220px; width:413px;">
|
||||
<map name="popup-user-map1">
|
||||
<area href="https://www.munjaon.co.kr/web/cop/bbs/NoticeDetail.do?bbsId=BBSMSTR_000000000723&nttId=720" coords="65,148,345,182" shape="rect">
|
||||
</map>
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="agreePrivatePop" name="agreePrivatePop" onclick="javascript:fnPopupChk('agreePrivatePop' , 'layer')"><label for="agreePrivatePop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close agreePrivatePopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
20241122 보안강화 인증 수단 도입 안내 팝업
|
||||
<div class="layer_popup agreePrivatePop" style="margin: 0 0 20px 30px;" id="agreePrivatePop_20241122">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup06_241122.jpg" alt="보안로그인 서비스 안내 계정 보안 강화를 위해 도입한 기존 보안로그인 서비스를 2024년 11월 22일자로 개선 및 추가하오니 이용에 참고하시기 바랍니다." usemap="#popup-user-map2" style="height:220px; width:413px;">
|
||||
<map name="popup-user-map2">
|
||||
<area href="https://www.munjaon.co.kr/web/cop/bbs/NoticeDetail.do?bbsId=BBSMSTR_000000000723&nttId=726&seCmmnCdId=&frstRegisterId=&viewsYn=&menuNo=&searchBgnDe=&searchEndDe=&pageIndex=1&searchSortCnd=&searchSortOrd=&searchCnd=&searchWrd=&pageUnit=10" coords="65,148,345,182" shape="rect">
|
||||
</map>
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="agreePrivatePop" name="agreePrivatePop" onclick="javascript:fnPopupChk('agreePrivatePop' , 'layer')"><label for="agreePrivatePop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close agreePrivatePopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
20241119 이용약관 팝업
|
||||
<div class="layer_popup agreePrivatePop">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup04_241119.jpg" alt="이용약관 개정 안내 변함없는 문자온 서비스 이용에 감사의 말씀 드립니다. 당사 이용약관이 개정되오니 서비스 이용에 참고하시기 바랍니다." usemap="#popup-use-map1" style="height:220px; width:413px;">
|
||||
<map name="popup-use-map1">
|
||||
<area href="https://www.munjaon.co.kr/web/cop/bbs/NoticeDetail.do?bbsId=BBSMSTR_000000000721&nttId=700" coords="65,148,345,182" shape="rect">
|
||||
</map>
|
||||
</div>
|
||||
<div class="popup_btm">
|
||||
<input type="checkbox" id="agreePrivatePop" name="agreePrivatePop" onclick="javascript:fnPopupChk('agreePrivatePop' , 'layer')"><label for="agreePrivatePop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close agreePrivatePopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!--// 세로가 짧은 팝업 2개일때 -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- 20241224 브라우저 쿠키 삭제 방법 안내 팝업 -->
|
||||
<!--
|
||||
|
||||
20241224 브라우저 쿠키 삭제 방법 안내 팝업
|
||||
<div class="layer_popup delCookiePop">
|
||||
<div class="layer_popup_cont">
|
||||
<img src="/publish/images/main/popup07.jpg" alt="브라우저 쿠키 삭제 방법 안내 2024. 12. 23.자로 사이트 일부가 개편됨에 따라, 원활한 서비스 이용을 위한 “쿠키 및 기타 사이트 데이터”삭제 방법을 다음과 같이 안내해 드립니다. ※ 버튼 클릭 시 기능이 작동하지 않는 경우 해당 조치 필요 항상 최선의 서비스를 제공할 수 있도록 노력하겠습니다. 감사합니다." usemap="#popup-use-map7">
|
||||
@ -1292,7 +1109,7 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
||||
<button type="button" class="popup_close cookieDelPopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
<!--// 20241224 브라우저 쿠키 삭제 방법 안내 팝업 -->
|
||||
// 20241224 브라우저 쿠키 삭제 방법 안내 팝업
|
||||
|
||||
<div class="layer_popup payEventPop">
|
||||
<div class="layer_popup_cont">
|
||||
@ -1305,7 +1122,7 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
||||
<input type="checkbox" id="evntPayPop" name="evntPayPop" onclick="javascript:fnPopupChk('evntPayPop' , 'layer')"><label for="evntPayPop">3일간 열지 않음</label>
|
||||
<button type="button" class="popup_close evntPayPopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<%-- <div class="layer_popup pointPop">
|
||||
<div class="layer_popup_cont">
|
||||
@ -1318,8 +1135,6 @@ function fn_click_banner_add_stat(bannerMenuCode){
|
||||
<button type="button" class="popup_close pointPopClose"><img src="/publish/images/main/btn_popup_close01.png" alt="팝업닫기"></button>
|
||||
</div>
|
||||
</div> --%>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 신고 알림 팝업 -->
|
||||
<div class="tooltip-wrap">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user