-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
29 lines (20 loc) · 704 Bytes
/
Copy pathscript.js
File metadata and controls
29 lines (20 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
document.addEventListener("DOMContentLoaded", () => {
// Güncel yıl
const year = document.getElementById("year");
year.textContent = new Date().getFullYear();
// Sahte bakım ilerleme animasyonu
const progress = document.getElementById("progress");
const percentage = document.getElementById("percentage");
const target = 87;
let current = 0;
setTimeout(() => {
const interval = setInterval(() => {
current++;
progress.style.width = `${current}%`;
percentage.textContent = `${current}%`;
if (current >= target) {
clearInterval(interval);
}
}, 25);
}, 500);
});