Skip to content

Commit

Permalink
Update starship.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCQ authored Aug 2, 2024
1 parent 09e29df commit d38fcff
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions starship.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const sunInfo = document.querySelector(".info-sun");
const uranusInfo = document.querySelector(".info-uranus");
const venusInfo = document.querySelector(".info-venus");

const hiddenArray = [ //meant to remain hidden until needed
const hiddenArray = [ //remains hidden until needed
auroraInfo, earthInfo, footer, hubble, hubbleName, iss, issName, jupiterInfo, marsInfo, mercuryInfo, moonInfo, nav, neptuneInfo, parker, parkerName, plutoInfo, saturnInfo, sunInfo, uranusInfo, venusInfo
];

Expand Down Expand Up @@ -618,29 +618,9 @@ function navigation() {
for(let i = 0; i < hiddenArray.length; i++) {
hiddenArray[i].style.visibility = "hidden";
}

// auroraInfo.style.visibility = "hidden";
// earthInfo.style.visibility = "hidden";
// footer.style.visibility = "hidden";
// hubble.style.visibility = "hidden";
// hubbleName.style.visibility = "hidden";
// iss.style.visibility = "hidden";
// issName.style.visibility = "hidden";
// jupiterInfo.style.visibility = "hidden";
// marsInfo.style.visibility = "hidden";
// mercuryInfo.style.visibility = "hidden";
// moonInfo.style.visibility = "hidden";
// nav.style.visibility = "hidden";
// neptuneInfo.style.visibility = "hidden";
// parker.style.visibility = "hidden";
// parkerName.style.visibility = "hidden";
// plutoInfo.style.visibility = "hidden";
// saturnInfo.style.visibility = "hidden";
// sunInfo.style.visibility = "hidden";
// uranusInfo.style.visibility = "hidden";
// venusInfo.style.visibility = "hidden";
}


function displayOn() {

let top = document.getElementById("top");
Expand Down Expand Up @@ -1165,6 +1145,9 @@ rightNav.addEventListener("click", () => {
case "Neptune":
visible(neptuneInfo);
break;
case "Pluto":
visible(plutoInfo);
break;
case "Saturn":
visible(saturnInfo);
break;
Expand Down

0 comments on commit d38fcff

Please sign in to comment.