Tap and refine your search

Diseases

Mental Health

404

This page could not be found.

; const imgData = []; blogData.forEach((b, index) => { let foundImage = null; // Find a matching image in imgData based on id or title imgData.forEach((m) => { if (m["title"] == b.id || m["title"] == b.title.rendered) { foundImage = m; } }); // Generate the blog element const imageUrl = foundImage ? foundImage.url : ""; const blogElement = generateBlogElement(b.link, imageUrl, b.title.rendered, b.excerpt.rendered, formatDateString(b.modified)); // Append the blog element to the appropriate div if (index % 2 === 0) { blogDiv1.appendChild(blogElement); } else { blogDiv2.appendChild(blogElement); } });