Skip to content

Commit 636e7e7

Browse files
authored
Update index.html
1 parent 0450bc0 commit 636e7e7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

index.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@
7171
document.querySelectorAll('.lang-section').forEach(el => el.style.display = 'none');
7272
document.querySelectorAll('.lang-' + lang).forEach(el => el.style.display = 'block');
7373
}
74+
75+
window.addEventListener('DOMContentLoaded', () => {
76+
const userLang = navigator.language || navigator.userLanguage;
77+
if (userLang.startsWith('ko')) {
78+
switchLang('ko');
79+
} else {
80+
switchLang('en');
81+
}
82+
});
7483
</script>
7584
</head>
7685
<body>
@@ -142,6 +151,5 @@ <h2>🌟 주요 기능</h2>
142151
<p>문의: <a href="mailto:j4docsearch@gmail.com">j4docsearch@gmail.com</a></p>
143152
</footer>
144153
</div>
145-
146154
</body>
147155
</html>

0 commit comments

Comments
 (0)