Skip to content
Snippets Groups Projects
Commit 4d149979 authored by Silas Meister's avatar Silas Meister
Browse files

Update JS

parent 0667297d
Branches
Tags
No related merge requests found
let slideNumber = 0; 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 newsImageSources = ['../img/nasa_news_1.jpg', '../img/nasa_news_2.jpg', '../img/nasa_news_3.jpg'];
const newsTitles = ['Space Station', 'Earth', 'NASA Goddard']; 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']; 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() { document.addEventListener("DOMContentLoaded", function() {
onload(); onload();
}); });
...@@ -18,8 +14,6 @@ function onload() { ...@@ -18,8 +14,6 @@ function onload() {
setInterval(slideImage, 30000); setInterval(slideImage, 30000);
setHoverForOverlay(); setHoverForOverlay();
setHoverForOverlay();
} }
function slideImage() { function slideImage() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment