Update index.html

This commit is contained in:
FURK4NGG
2024-09-09 16:26:08 +03:00
committed by GitHub
parent b0895850fc
commit 9bdd084dfa
+8 -10
View File
@@ -9,21 +9,19 @@
<meta name="robots" content="INDEX, FOLLOW">
<meta name="publisher" content="https://furk4ngg.github.io">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="CSS/1.css">
</head>
<body>
<div id="body_index"><div id="ref_div" align="center"><h1 id="ref">-You are being redirected to the homepage-</h1></div></div>
<script>
const userLang = navigator.language || navigator.userLanguage;
// Eğer tarayıcı dili Türkçe ise /tr/index.html sayfasına yönlendir
if (userLang.startsWith('tr')) {
window.location.href = 'hometr.html';
} else {
// Eğer İngilizceyse /en/index.html sayfasına yönlendir
window.location.href = 'home.html';
}
document.addEventListener('DOMContentLoaded', () => {
const userLang = navigator.language || navigator.userLanguage;
if (userLang.startsWith('tr')) {
window.location.href = 'hometr.html';
} else {
window.location.href = 'home.html';
}
});
const disabledKeys = ["c", "C", "x", "J", "u", "I"]; // keys that will be disabled
const showAlert = e => {