Submitted
What are you most proud of, and what would you do differently next time?
I am most proud of using the template tag again.
What challenges did you encounter, and how did you overcome them?
I had issue with accessing the the dismiss button in the template tag.
When I console.log
the button I would get null.
In my index.html
file placed a data attribute of [data-js-reset]
on the button.
Dismiss message
I created returnToForm function in JavaScript.
// return to the Newsletter form
function returnToForm(e) {
if (e.target.hasAttribute("data-js-reset")) {
location.reload();
}
}
What specific areas of your project would you like help with?
N/A