Update index.html
This commit is contained in:
+10
@@ -15,6 +15,16 @@
|
|||||||
<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>
|
||||||
|
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 = '/tr/index.html';
|
||||||
|
} else {
|
||||||
|
// Eğer İngilizceyse /en/index.html sayfasına yönlendir
|
||||||
|
window.location.href = '/en/index.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 => {
|
||||||
e.preventDefault(); // preventing its default behaviour
|
e.preventDefault(); // preventing its default behaviour
|
||||||
|
|||||||
Reference in New Issue
Block a user