Fix : 회사 설명 두번 나오는거 변경

This commit is contained in:
KINDNICK 2025-09-14 00:55:26 +09:00
parent 3ae4189b10
commit 7041bb5c14

View File

@ -36,8 +36,15 @@ async function loadComponents() {
const response = await fetch('components/footer.html'); const response = await fetch('components/footer.html');
const html = await response.text(); const html = await response.text();
footerPlaceholder.innerHTML = html; footerPlaceholder.innerHTML = html;
// 동적 푸터 로드 성공 시 백업 푸터 숨기기
const backupFooter = document.querySelector('footer[style*="background:#222"]');
if (backupFooter) {
backupFooter.style.display = 'none';
}
} catch (error) { } catch (error) {
console.error('Error loading footer:', error); console.error('Error loading footer:', error);
// 동적 푸터 로드 실패 시 백업 푸터 유지
} }
} }
} }