Skip to content

Commit

Permalink
added footer
Browse files Browse the repository at this point in the history
  • Loading branch information
vachan-maker committed Aug 18, 2024
1 parent 4a655f6 commit 790d638
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epic.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ <h3 id="epic-title"></h3>
<p id="epic-description"></p>
</article>
</main>
<footer>
<p>Data from <a href="https://api.nasa.gov">NASA Open API</a></p>
</footer>
<script>
async function fetchData() {
try {
Expand Down
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ <h3 id="apod-title"></h3>
<button onclick="fetchData()">Go!</button>
</section>
</main>
<footer>
<p>Data from <a href="https://api.nasa.gov">NASA Open API</a></p>
</footer>
<script>
async function fetchData() {
const user_date = document.getElementById("apod-dateInput").value || '';
Expand Down

0 comments on commit 790d638

Please sign in to comment.