benmcrae5 / lookup-by-ben-kara-kristin

1 stars 1 forks source link

add caption to the material box with additional data pulled from AstronomyAPI #49

Open kristinmoon opened 3 years ago

kristinmoon commented 3 years ago

Jason had the suggestion of utilizing more of the data pulled from AstronomyAPI by using a tooltip. He mentioned displaying data like degrees from the horizon, ascension, etc.

Kara and I discussed adding this info into the material box caption instead of a tooltip: https://materializecss.com/media.html (scroll down to the "caption" section).

We thought we could add a .attr() action to the displayInformation <img> tag. We could concatenate a string for the add the "data-caption" tag on each image. Ex: .attr("data-caption", "Degrees from horizon: " + (keyword from API))

Would this work, @benmcrae5 ?