Update index.html

This commit is contained in:
FURK4NGG
2024-09-09 17:14:51 +03:00
committed by GitHub
parent 4cdece6239
commit fbea1995ce
+4 -12
View File
@@ -17,21 +17,13 @@
document.addEventListener('DOMContentLoaded', () => {
const userLang = navigator.language || navigator.userLanguage;
// İçeriği dil tercihine göre yükleme
// İçeriği dil tercihine göre yönlendirme
if (userLang.startsWith('tr')) {
fetch('/hometr.html')
.then(response => response.text())
.then(html => {
document.documentElement.innerHTML = html; // Türkçe içeriği yükle
});
window.location.href = '/hometr.html'; // Türkçe içerik
} else {
fetch('/home.html')
.then(response => response.text())
.then(html => {
document.documentElement.innerHTML = html; // İngilizce içeriği yükle
});
window.location.href = '/home.html'; // İngilizce içerik
}
});
});
const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled
const showAlert = e => {