Update index.html

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