Suscríbete

Últimas noticias en Cúcuta, Colombia y el mundo. Entérate de lo último en deportes, economía, política y más hoy en La Opinión.

Exclusivo para nuestros suscriptores
Recomendados para ti
Mundo
${article?.field_seccion}
${article?.title}
` }) elBlock.insertAdjacentElement("beforeend", blockChildren); } if (index === 2) { let blockFeatured = document.createElement('div') let blockContent = document.createElement('article') let blockChildren = document.createElement('ul') const elBlock = document.querySelector(`.section #section_clindren_02 .section_children`); document.querySelector(`.section #section_clindren_02`).style.display = 'flex'; const imgFeatured = content?.dataFeatured?.field_featured_image const titleFeatured = content?.dataFeatured?.title blockFeatured.classList.add('content_featured'); blockChildren.classList.add('content_list'); blockFeatured.innerHTML = ` ` blockContent.appendChild(blockFeatured) blockContent.appendChild(blockChildren) content?.dataList.forEach(article => { blockChildren.innerHTML += `
  • ${article?.field_featured_image}
    ${article?.field_seccion}
    ${article?.title}
  • ` }) elBlock.insertAdjacentElement("beforeend", blockContent); featured = false } const summary = document.querySelector(`#section_clindren_0${index} summary`); summary.innerText = section.name; index++ } })(); }; await fetchChildren('section_parent_id', 'section_children_id'); })();