Bakerfranke - Github.io Codeprint
Bakerfranke - Github.io Codeprint
io/codePrint/
https://bakerfranke.github.io/codePrint/ 1/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
setScreen("uranusView");
});
onEvent("backToWheel7", "click", function( ) {
setScreen("PlanetPicker");
});
onEvent("planetVisit8", "click", function( ) {
setScreen("neptuneView");
});
onEvent("backToWheel8", "click", function( ) {
setScreen("PlanetPicker");
});
//planet pictures:
//mercury: https://www.pngall.com/mercury-planet-png/ or https://www.pngall.com/wp-content/upload
//venus:https://static.vecteezy.com/system/resources/previews/032/325/107/original/venus-planet-is
//Earth:https://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Earth_Western_Hemisphere_transpa
//Mars:https://www.pngall.com/wp-content/uploads/13/Mars-PNG-Picture.png
//Jupiter:https://static.vecteezy.com/system/resources/previews/027/294/102/original/jupiter-plane
//Satern:https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/3D_Saturn.png/640px-3D_Saturn.p
//Uranus:https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ44dj6qkkbeMUBDvzHL6I1KSWiiKDdOJgDV
//Neptune:https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTrg6ZjI8_uxj_C4IoyFKK1s_SqOtd1nWu0
//the below functions help with showing the right directional arrow when a certain planet is click
function togglePlanetVisit(buttonId, arrowIndex) {
hideAllArrows();
showArrow(buttonId, arrowIndex);
}
function hideAllArrows() {
for (var i = 1; i <= 8; i++) {
setProperty("arrowdirect" + i, "hidden", true);
}
}
function showArrow(buttonId, arrowIndex) {
https://bakerfranke.github.io/codePrint/ 2/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
https://bakerfranke.github.io/codePrint/ 3/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
}
function mercuryInfo3() {
var mercuryMoons = PlanetMoons[0];
var mercuryTemperature = PlanetTemp[0];
setText("mdescription3", ((("The number of moons Mercury has is " + mercuryMoons) + " and Mercury'
}
onEvent("mFlagButton1", "click", function( ) {
showMercuryInfo(0);
});
onEvent("mFlagButton2", "click", function( ) {
showMercuryInfo(1);
});
onEvent("mFlagButton3", "click", function( ) {
showMercuryInfo(2);
});
https://bakerfranke.github.io/codePrint/ 4/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
https://bakerfranke.github.io/codePrint/ 5/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
https://bakerfranke.github.io/codePrint/ 6/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
});
onEvent("jFlagButton2", "click", function( ) {
showJupiterInfo(1);
});
onEvent("jFlagButton3", "click", function( ) {
showJupiterInfo(2);
});
https://bakerfranke.github.io/codePrint/ 7/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
https://bakerfranke.github.io/codePrint/ 8/9
4/26/24, 7:33 PM bakerfranke.github.io/codePrint/
450
}
451
function neptuneInfo3() {
452
var neptuneMoons = PlanetMoons[7];
453
var neptuneTemperature = PlanetTemp[7];
454
setText("ndescription3", ((("The number of moons Neptune has is " + neptuneMoons) + " and Neptune'
455
}
456
onEvent("nFlagButton1", "click", function( ) {
457
showNeptuneInfo(0);
458
});
459
onEvent("nFlagButton2", "click", function( ) {
460
showNeptuneInfo(1);
});
onEvent("nFlagButton3", "click", function( ) {
showNeptuneInfo(2);
});
https://bakerfranke.github.io/codePrint/ 9/9