<!-- PRELOADER -->
const lines = [
"Initializing system...",
"Loading structure...",
"Applying visual language...",
"Building interface...",
"System ready."
];
const el = document.getElementById("loaderText");
let lineIndex = 0;
let charIndex = 0;
function typeLine() {
if (lineIndex < lines.length) {
if (charIndex < lines[lineIndex].length) {
el.innerHTML += lines[lineIndex].charAt(charIndex);
charIndex++;
setTimeout(typeLine, 30);
} else {
el.innerHTML += "\n";
lineIndex++;
charIndex = 0;
setTimeout(typeLine, 300);
}
} else {
setTimeout(() => {
document.getElementById("preloader").style.opacity = "0";
setTimeout(() => {
document.getElementById("preloader").style.display = "none";
}, 500);
}, 500);
}
}
typeLine();