Update 1.js

This commit is contained in:
FURK4NGG
2024-09-09 17:21:33 +03:00
committed by GitHub
parent fbea1995ce
commit cbe8f21424
-11
View File
@@ -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');