Menu

412-335-8990

window.addEventListener('load', function() { const gridItems = document.querySelectorAll('.grid-item'); gridItems.forEach((item) => { const orgnrElements = item.querySelectorAll('.orgnr'); if (orgnrElements.length > 0) { orgnrElements.forEach((orgnrElement) => { if (orgnrElement.innerHTML === "Certifierat företag") { orgnrElement.innerHTML = "CERTIFIERAT FÖRETAG ⭐"; console.log("test"); } console.log("test outside"); }); } else { console.log('No elements with class "orgnr" found within the grid item.'); } }); });