Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #30

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Develop #30

wants to merge 24 commits into from

Conversation

rolandjlevy
Copy link

No description provided.

const title = (article.title !== null) ? `<div><strong>${convertedTitle}</strong></div>` : "";
const convertedDescription = (article.description !== null) ? highlightFoundWords(article.description) : null;
const description = (article.description !== null) ? `<div>${convertedDescription}</div>` : "";
// const content = (article.content !== null) ? `<div>${article.content}</div>` : "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented out code can be removed

const separator = (author && source) ? ", " : "";
const publishedBy = `<div><cite>Published by: ${author}${separator}${source}</cite></div>`;
const readMoreURL = (article.url !== null) ? `<div><a href="${article.url}" target="_blank">READ FULL STORY...</a></div>` : "";
// const urlToImage = (article.urlToImage !== null) ? `<a href="${article.url}" target="_blank"><img src="${article.urlToImage}" class="article__image__src"></a>` : "";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be removed

// toggle show / hide images
imageDisplayNode.addEventListener("change", function(event){
event.preventDefault();
state = event.target.checked ? "block" : "none";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this is creating a global variable

@dmitrigrabov
Copy link
Contributor

Good work. I would be great to see an updated README which explains what the project does and highlights any stretch goals.

@rolandjlevy
Copy link
Author

OK, cool. I'll update the readme file.

I struggled with the articleTemplate function. It was clunky and long-winded.

By the way, I'm really enjoying the recent projects - thanks for the classes and your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants