Update 1.js
This commit is contained in:
@@ -1,14 +1,3 @@
|
|||||||
// Kullanıcının tarayıcı dilini al
|
|
||||||
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/home.html';
|
|
||||||
} else {
|
|
||||||
// Eğer İngilizceyse /en/index.html sayfasına yönlendir
|
|
||||||
window.location.href = 'home.html';
|
|
||||||
}
|
|
||||||
|
|
||||||
/*SCROLL REVEALING*/
|
/*SCROLL REVEALING*/
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const textContainer = document.getElementById('animatedTextContainer');
|
const textContainer = document.getElementById('animatedTextContainer');
|
||||||
|
|||||||
Reference in New Issue
Block a user