fix year calc

This commit is contained in:
2025-07-04 22:38:51 +02:00
parent a6d1a0dfe4
commit 4c2a35829d
5 changed files with 12 additions and 4 deletions

View File

@ -158,6 +158,14 @@ document.addEventListener('DOMContentLoaded', function() {
var hoursEl = document.getElementById('hours-coded');
if (yearsEl) yearsEl.textContent = years + '+';
if (hoursEl) hoursEl.textContent = hoursCoded.toLocaleString() + '+';
// Update text content with {years} placeholder
var textElements = document.querySelectorAll('p, h1, h2, h3, h4, h5, h6, span, div');
textElements.forEach(function(element) {
if (element.textContent.includes('{years}')) {
element.textContent = element.textContent.replace(/{years}/g, years);
}
});
});
// Interactive Design Showcase
document.addEventListener('DOMContentLoaded', function() {