-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: master
Are you sure you want to change the base?
Develop #30
Conversation
… articles isn't working
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>` : ""; |
There was a problem hiding this comment.
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>` : ""; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
Good work. I would be great to see an updated README which explains what the project does and highlights any stretch goals. |
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 |
… searchForMatches function
No description provided.