FAQ 에러, 팝업공지 이미지 미노출, 풋터 패밀리사이트 토글 기능 개선
This commit is contained in:
+34
-19
@@ -1200,27 +1200,42 @@ $(function () {
|
||||
$(".menu_my").mouseout(function () {
|
||||
$(".menu_my_list").hide();
|
||||
});
|
||||
|
||||
//footer family site toggle
|
||||
$(".family_btn").click(function (event) {
|
||||
event.stopPropagation(); // family_btn 클릭 시 이벤트 전파를 막음
|
||||
$(".family_list").toggleClass("family_on");
|
||||
$(".family_btn").toggleClass("family_on");
|
||||
});
|
||||
|
||||
// 화면 아무 곳이나 클릭했을 때 family_list를 제외한 영역 클릭 시 리스트 닫기
|
||||
$(document).click(function (event) {
|
||||
if (
|
||||
!$(event.target).closest(".family_list").length &&
|
||||
!$(event.target).closest(".family_btn").length
|
||||
) {
|
||||
// family_list와 family_btn 외의 영역을 클릭한 경우
|
||||
$(".family_list").removeClass("family_on");
|
||||
$(".family_btn").removeClass("family_on");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (!window.__egbimFamilySiteToggleBound) {
|
||||
window.__egbimFamilySiteToggleBound = true;
|
||||
|
||||
document.addEventListener(
|
||||
"click",
|
||||
function (event) {
|
||||
const familyButton = event.target.closest(".family_btn");
|
||||
|
||||
if (familyButton) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
event.stopImmediatePropagation();
|
||||
|
||||
const shouldOpen = !familyButton.classList.contains("family_on");
|
||||
document
|
||||
.querySelectorAll(".family_btn, .family_list")
|
||||
.forEach((element) => {
|
||||
element.classList.toggle("family_on", shouldOpen);
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
if (!event.target.closest(".family_wrap")) {
|
||||
document
|
||||
.querySelectorAll(".family_btn, .family_list")
|
||||
.forEach((element) => {
|
||||
element.classList.remove("family_on");
|
||||
});
|
||||
}
|
||||
},
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 마우스 스크롤 마크 표시하기
|
||||
// 사용 클래스 : js__mouse_mark , js__mouse_area
|
||||
// + TODO 진슬 추가_ addEventListener error debugging
|
||||
|
||||
@@ -268,19 +268,6 @@ echo '<div id="faq_hhtml">'.conv_content($fm['fm_head_html'], 1).'</div>';
|
||||
|
||||
<!-- 상단(헤더) 스크립트 구문 -->
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -113,19 +113,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -375,19 +375,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -202,19 +202,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -223,19 +223,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
<script type="text/javascript" src="<?php echo G5_URL ?>/js/jquery-3.6.1.min.js"></script>
|
||||
|
||||
<script type="text/javascript" src="<?php echo G5_URL ?>/js/jquery.mousewheel.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo G5_URL ?>/js/common.js"></script>
|
||||
<script type="text/javascript" src="<?php echo G5_URL ?>/js/include.js"></script>
|
||||
<script type="text/javascript" src="<?php echo G5_URL ?>/js/popup.js?v=20260723"></script>
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
|
||||
|
||||
<!--popup_wrap-->
|
||||
|
||||
@@ -167,19 +167,6 @@ include_once __DIR__ . '/asset_urls.php';
|
||||
</script>
|
||||
</body>
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<?php include_once __DIR__ . '/asset_urls.php'; ?>
|
||||
<!--popup_wrap-->
|
||||
<div id="pop_noti" class="popup_wrap popup-notice" style="display:none">
|
||||
<link
|
||||
@@ -86,10 +87,10 @@
|
||||
<picture>
|
||||
<source
|
||||
media="(max-width: 721px)"
|
||||
srcset="./img/main_popup/251128_main_popup_m.png"
|
||||
srcset="<?php echo egbim_img_url('main_popup/251128_main_popup_m.png'); ?>"
|
||||
/>
|
||||
<img
|
||||
src="./img/main_popup/251128_main_popup.png"
|
||||
src="<?php echo egbim_img_url('main_popup/251128_main_popup.png'); ?>"
|
||||
alt="EG-BIM X 의왕도시공사 민관 상호 협력 성장 지원을 위한 업무 협약 체결"
|
||||
/>
|
||||
</picture>
|
||||
@@ -103,10 +104,10 @@
|
||||
<picture>
|
||||
<source
|
||||
media="(max-width: 721px)"
|
||||
srcset="./img/main_popup/260703_popup_mo.png"
|
||||
srcset="<?php echo egbim_img_url('main_popup/260703_popup_mo.png'); ?>"
|
||||
/>
|
||||
<img
|
||||
src="./img/main_popup/260703_popup.png"
|
||||
src="<?php echo egbim_img_url('main_popup/260703_popup.png'); ?>"
|
||||
alt="EG-BIM 로그인 방식 변경 안내"
|
||||
/>
|
||||
</picture>
|
||||
|
||||
@@ -318,19 +318,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -17,9 +17,6 @@ if (!isset($register_action_url)) {
|
||||
<link rel="stylesheet" href="../css/style.css" />
|
||||
<script src="../js/jquery-3.6.1.min.js"></script> -->
|
||||
<!-- </head> -->
|
||||
<script src="<?php echo G5_URL ?>/js/common.js"></script>
|
||||
<script src="<?php echo G5_URL ?>/js/popup.js?v=20260723"></script>
|
||||
|
||||
<!-- 회원가입약관 동의 시작 { -->
|
||||
<!-- <body>
|
||||
<div class="register"> -->
|
||||
|
||||
@@ -256,19 +256,6 @@
|
||||
</body>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -648,19 +648,6 @@ foreach ($partials as $p) {
|
||||
</html>
|
||||
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
@@ -321,19 +321,6 @@ function getQueryString(name){
|
||||
if (writer) writer.addEventListener('change', submitForm);
|
||||
})();
|
||||
|
||||
// Footer family site toggle
|
||||
$(function(){
|
||||
$('.family_btn').on('click', function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).on('click', function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Cookie helpers (기존 로직 유지)
|
||||
function deleteCookie(name){
|
||||
document.cookie = name+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/egbim;";
|
||||
|
||||
@@ -363,19 +363,6 @@
|
||||
|
||||
<!-- 상단(헤더) 스크립트 구문 -->
|
||||
<script>
|
||||
$(function(){
|
||||
// footer family site toggle
|
||||
$('.family_btn').click(function(e){
|
||||
e.stopPropagation();
|
||||
$('.family_list, .family_btn').toggleClass('family_on');
|
||||
});
|
||||
$(document).click(function(e){
|
||||
if(!$(e.target).closest('.family_wrap').length){
|
||||
$('.family_list, .family_btn').removeClass('family_on');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 회원 탈퇴
|
||||
function member_leave() {
|
||||
if (confirm("회원에서 탈퇴 하시겠습니까?"))
|
||||
|
||||
Reference in New Issue
Block a user