-
-
- Test article title
-Lifestyle
-
- Test article title
-Lifestyle
-' + title + '
'); + $($popUpContent[1]).html('' + description + '
'); + $($popUpContent[2]).attr('href', url); + //console.log($popUpContent); + }) + if (imageUrl) { + var $featuredImage = $articleClone.children()[0]; + // to use API image of article: + $($featuredImage).find("img").attr('src', imageUrl); + } + // get the content w/in the html + var $articleContent = $articleClone.children()[1]; + // get the href and h6 + var $articleContentChildren = $($articleContent).children(); + // to avoid duplicate href, change only the attribute of selected object + $($articleContentChildren[0]).attr('href', url); + // change title + $($articleContentChildren[0]).html('