Fix : 회사 설명 두번 나오는거 변경
This commit is contained in:
parent
3ae4189b10
commit
7041bb5c14
@ -36,8 +36,15 @@ async function loadComponents() {
|
||||
const response = await fetch('components/footer.html');
|
||||
const html = await response.text();
|
||||
footerPlaceholder.innerHTML = html;
|
||||
|
||||
// 동적 푸터 로드 성공 시 백업 푸터 숨기기
|
||||
const backupFooter = document.querySelector('footer[style*="background:#222"]');
|
||||
if (backupFooter) {
|
||||
backupFooter.style.display = 'none';
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Error loading footer:', error);
|
||||
// 동적 푸터 로드 실패 시 백업 푸터 유지
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user