fix year calc
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user