Skip to content

Commit

Permalink
Update kpop-news.js
Browse files Browse the repository at this point in the history
  • Loading branch information
samridhivig authored Oct 16, 2020
1 parent 8ab9404 commit 50eccb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kpop-news.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ request.onload = function(){
const card = document.createElement('div');
card.setAttribute('class','news_card');

const thumbnail_container = document.createElement('div');
/* const thumbnail_container = document.createElement('div');
thumbnail_container.setAttribute('class','thumbnail_container');
const thumbnail = document.createElement('img');
thumbnail.src = thumbnail_array[i];
thumbnail.src = thumbnail_array[i];*/

const news_headline = document.createElement('div');
news_headline.setAttribute('class','news_headline');
Expand All @@ -46,9 +46,9 @@ request.onload = function(){
a.innerHTML = title_array[i];

container.appendChild(card);
card.appendChild(thumbnail_container);
//card.appendChild(thumbnail_container);
card.appendChild(news_headline);
thumbnail_container.appendChild(thumbnail);
//thumbnail_container.appendChild(thumbnail);
news_headline.appendChild(a);
}

Expand Down

0 comments on commit 50eccb4

Please sign in to comment.