diff --git a/functions.js b/functions.js index e7ff1f64f555115185304e9ed7d51c9a7094a1a7..17b3aacf7858edefe2a8a8ee93ff82843ee19cd6 100644 --- a/functions.js +++ b/functions.js @@ -1,13 +1,9 @@ let slideNumber = 0; -const newsImageSources = ['../img/nasa_news_1.jpg', '../img/nasa_news_2.jpg', '../img/nasa_news_3.jpg']; const newsImageSources = ['../img/nasa_news_1.jpg', '../img/nasa_news_2.jpg', '../img/nasa_news_3.jpg']; const newsTitles = ['Space Station', 'Earth', 'NASA Goddard']; const newsSubtitles = ['Expedition 48 Crew Lands Safely on Earth', 'NASA Announces Summer 2023 Hottest on Record', 'NASA\'s Webb Snaps Supersonic Outflow of Young Star']; -document.addEventListener("DOMContentLoaded", function() { - onload(); -}); document.addEventListener("DOMContentLoaded", function() { onload(); }); @@ -18,8 +14,6 @@ function onload() { setInterval(slideImage, 30000); setHoverForOverlay(); - - setHoverForOverlay(); } function slideImage() {