test
This commit is contained in:
32
index.html
32
index.html
@ -1,32 +0,0 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Přesměrování na základě jazyka</title>
|
||||
<style>
|
||||
body {
|
||||
background-image: url('img/apollonvim.jpg');
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
background-position: center;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
// Funkce pro přesměrování na základě jazyka prohlížeče
|
||||
function redirectBasedOnLanguage() {
|
||||
const userLang = navigator.language || navigator.userLanguage;
|
||||
if (userLang.startsWith('en')) {
|
||||
window.location.href = '/en/index.html';
|
||||
} else {
|
||||
window.location.href = '/cz/index.html';
|
||||
}
|
||||
}
|
||||
// Přesměrování při načtení stránky
|
||||
window.onload = redirectBasedOnLanguage;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!--<p>Prosím, čekejte... přesměrovávám na příslušnou jazykovou verzi.</p>-->
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user