Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEst #9

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 69 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,80 @@
<meta name="viewport" content="width=device-width">
<title>Astronauts</title>
<link href="style.css" rel="stylesheet" type="text/css" />
window.addEventListener("load", function(){
????
</head>
<body>
<script src="script.js"></script>
<h1>Astronauts</h1>
<div id="container">
<!-- List of astronauts will be added here dynamically -->
<div class="astronaut">
<div class="bio">
<h3>Frederick Gregory</h3>
<ul>
<li>Hours in space: 455</li>
<li>Active: false</li>
<li>Skills: Information Systems, Shuttle Pilot, Figher Pilot, Helicopter Pilot, Colonel USAF</li>
</ul>
</div>
<img class="avatar" src="images/frederick-gregory.jpg">
</div>
<div class="astronaut">
<div class="bio">
<h3>Ellen Ochoa</h3>
<ul>
<li>Hours in space: 979</li>
<li>Active: false</li>
<li>Skills: Physics, Electrical Engineer</li>
</ul>
</div>
<img class="avatar" src="images/ellen-ochoa.jpg">
</div>
<div class="astronaut">
<div class="bio">
<h3>Guion Bluford</h3>
<ul>
<li>Hours in space: 686</li>
<li>Active: false</li>
<li>Skills: Aerospace Engineer, Philosophy, Physics, Colonel USAF, Figher Pilot</li>
</ul>
</div>
<img class="avatar" src="images/guion-bluford.jpg">
</div>
<div class="astronaut">
<div class="bio">
<h3>Sally Ride</h3>
<ul>
<li>Hours in space: 343</li>
<li>Active: false</li>
<li>Skills: Physicist, Astrophysics</li>
</ul>
</div>
<img class="avatar" src="images/sally-ride.jpg">
</div>
<div class="astronaut">
<div class="bio">
<h3>Kjell Lindgren</h3>
<ul>
<li>Hours in space: 15</li>
<li>Active: true</li>
<li>Skills: Physician, Surgeon, Emergency Medicine</li>
</ul>
</div>
<img class="avatar" src="images/kjell-lindgren.jpg">
</div>
<div class="astronaut">
<div class="bio">
<h3>Jeanette Epps</h3>
<ul>
<li>Hours in space: 0</li>
<li>Active: true</li>
<li>Skills: Physicist, Philosophy, Aerospace Engineer</li>
</ul>
</div>
<img class="avatar" src="images/jeanette-epps.jpg">
</div>
</div>
</body>
</html>
</html>
6 changes: 5 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// TODO: add code here
// TODO: add code here
const astronauts = https://handlers.education.launchcode.org/static/astronauts.json

const fetchPromise = fetch(astronauts);