Update 1.js
This commit is contained in:
@@ -47,7 +47,6 @@ async function getCurrentYear() {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
const currentYear = now.getFullYear();
|
const currentYear = now.getFullYear();
|
||||||
const currentMonth = now.getMonth() + 1;
|
const currentMonth = now.getMonth() + 1;
|
||||||
|
|
||||||
let age = currentYear - 2006;
|
let age = currentYear - 2006;
|
||||||
|
|
||||||
if(currentMonth < 3){age -= 1;}
|
if(currentMonth < 3){age -= 1;}
|
||||||
@@ -63,7 +62,6 @@ getCurrentYear().then(age => {
|
|||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const textContainer = document.getElementById('animatedTextContainer');
|
const textContainer = document.getElementById('animatedTextContainer');
|
||||||
|
|
||||||
// Eğer container yoksa hata almamak için kontrol et
|
|
||||||
if (!textContainer) return;
|
if (!textContainer) return;
|
||||||
|
|
||||||
// Split text into words and wrap each word in a span
|
// Split text into words and wrap each word in a span
|
||||||
|
|||||||
Reference in New Issue
Block a user