[FO] 개인정보 변경 약관 팝업 작업
This commit is contained in:
@@ -36,24 +36,34 @@ etUI.utils.ready(function () {
|
||||
};
|
||||
|
||||
// [공통] container 클래스 업데이트
|
||||
etUI.pages.updateContainerClassByLayout = function () {
|
||||
const container = document.getElementById('container');
|
||||
if (!container) return;
|
||||
etUI.pages.updateContainerClassByLayout = function () {
|
||||
const container = document.getElementById('container');
|
||||
const modalcontainer = document.querySelector('.modal-container');
|
||||
if (!container) return;
|
||||
|
||||
const hasFixedBtns = document.querySelector('.component-btns.fixed');
|
||||
const hasFooter = document.querySelector('footer');
|
||||
const hasFixedBtns = document.querySelector('.component-btns.fixed');
|
||||
const hasFooter = document.querySelector('footer');
|
||||
|
||||
// 조건에 맞게 클래스 추가/제거
|
||||
if (hasFixedBtns) {
|
||||
container.classList.add('btm-fixbtn');
|
||||
} else {
|
||||
container.classList.remove('btm-fixbtn');
|
||||
// container 클래스 처리
|
||||
if (hasFixedBtns) {
|
||||
container.classList.add('btm-fixbtn');
|
||||
} else {
|
||||
container.classList.remove('btm-fixbtn');
|
||||
}
|
||||
|
||||
if (hasFooter) {
|
||||
container.classList.add('btm-footer');
|
||||
} else {
|
||||
container.classList.remove('btm-footer');
|
||||
}
|
||||
|
||||
if (hasFooter) {
|
||||
container.classList.add('btm-footer');
|
||||
} else {
|
||||
container.classList.remove('btm-footer');
|
||||
// modalcontainer 클래스 처리 (fixed 버튼만 체크)
|
||||
if (modalcontainer) {
|
||||
if (hasFixedBtns) {
|
||||
modalcontainer.classList.add('btm-fixbtn');
|
||||
} else {
|
||||
modalcontainer.classList.remove('btm-fixbtn');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user