diff --git a/frontend/js/hero_fx.js b/frontend/js/hero_fx.js index 7f694637..9b8cb202 100644 --- a/frontend/js/hero_fx.js +++ b/frontend/js/hero_fx.js @@ -22,7 +22,7 @@ document.addEventListener("DOMContentLoaded", () => { let decoded = 0; const interval = setInterval(() => { - titleSpan.innerText = targetText + titleSpan.textContent = targetText .split("") .map((letter, index) => { if (index < decoded) return targetText[index]; diff --git a/frontend/js/navbar.js b/frontend/js/navbar.js index f67e0349..e2f11547 100644 --- a/frontend/js/navbar.js +++ b/frontend/js/navbar.js @@ -4,7 +4,7 @@ document.addEventListener("DOMContentLoaded", () => { const currentPath = window.location.pathname; - nav.innerHTML = ` + nav.textContent = `