Fix: _t 전역 변수 중복 선언 에러 수정 (const → var)
contact.js와 main.js가 동시 로드되는 index 페이지에서 const _t 중복 선언으로 SyntaxError 발생 → main.js 전체 실행 실패 → 스크롤 애니메이션 등 모든 기능 동작 불가 문제 해결 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
98fdae3f48
commit
ae968e2fa5
@ -9,8 +9,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
initFormValidation();
|
initFormValidation();
|
||||||
});
|
});
|
||||||
|
|
||||||
// i18n 헬퍼
|
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
|
||||||
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
|
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
|
||||||
|
|
||||||
// 연락처 폼 초기화
|
// 연락처 폼 초기화
|
||||||
function initContactForm() {
|
function initContactForm() {
|
||||||
|
|||||||
@ -9,8 +9,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
initCustom360Viewers();
|
initCustom360Viewers();
|
||||||
});
|
});
|
||||||
|
|
||||||
// i18n 헬퍼
|
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
|
||||||
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
|
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
|
||||||
|
|
||||||
// 갤러리 초기화
|
// 갤러리 초기화
|
||||||
function initGallery() {
|
function initGallery() {
|
||||||
|
|||||||
@ -13,8 +13,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
initPortfolioTabs();
|
initPortfolioTabs();
|
||||||
});
|
});
|
||||||
|
|
||||||
// i18n 헬퍼
|
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
|
||||||
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
|
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
// 카운터 애니메이션
|
// 카운터 애니메이션
|
||||||
|
|||||||
@ -10,8 +10,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
initYouTubeAPI();
|
initYouTubeAPI();
|
||||||
});
|
});
|
||||||
|
|
||||||
// i18n 헬퍼
|
// i18n 헬퍼 (var 사용 — 여러 JS 파일에서 중복 선언 허용)
|
||||||
const _t = (key, fallback) => window.i18n?.t(key, fallback) ?? fallback;
|
var _t = _t || ((key, fallback) => window.i18n?.t(key, fallback) ?? fallback);
|
||||||
|
|
||||||
// ========================================
|
// ========================================
|
||||||
// 포트폴리오 탭 시스템
|
// 포트폴리오 탭 시스템
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user