Update index.html
This commit is contained in:
+2
-4
@@ -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 => {
|
||||||
|
|||||||
Reference in New Issue
Block a user