Skip to content

Commit 15ccb99

Browse files
authored
Merge branch 'LaunchCodeEducation:main' into main
2 parents 8aa6ea3 + e9ee479 commit 15ccb99

18 files changed

Lines changed: 140 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

css/exercises/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>CSS Exercises</title>
7+
<link href="style.css" rel="stylesheet" type="text/css" />
8+
</head>
9+
<body>
10+
<script src="script.js"></script>
11+
<!-- You do not need to do anything with script.js right now! Later, we will learn how to add JavaScript to websites! --->
12+
<h1>My Very Cool Web Page</h1>
13+
<h2>Why this Website is Very Cool</h2>
14+
<ol>
15+
<li>I made it!</li>
16+
<li>This website is colorful!</li>
17+
</ol>
18+
<h2 id="cool-text">Why I love Web Development</h2>
19+
<p>Web Development is a very cool skill that I love learning!</p>
20+
<p>I love making websites because all I have to do is reload the page to see the changes I have made!</p>
21+
</body>
22+
</html>

css/exercises/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// You do not need to do anything with script.js right now! Later, we will learn how to add JavaScript to websites!

css/exercises/styles.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* Start adding your styling below! */
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Flight Simulator</title>
5+
<link rel="stylesheet" type="text/css" href="style.css"/>
6+
<script src = "script.js"></script>
7+
</head>
8+
<body>
9+
<h1>Flight Simulator</h1>
10+
<p id="statusReport">The shuttle is on the ground</p>
11+
<button id = "liftoffButton">Take off</button>
12+
<button id = "abortMission">Abort mission</button>
13+
</body>
14+
</html>

dom-and-events/exercises/script.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function init () {
2+
const missionAbort = document.getElementById("abortMission");
3+
const button = document.getElementById("liftoffButton");
4+
const paragraph = document.getElementById("statusReport");
5+
6+
// Put your code for the exercises here.
7+
8+
}
9+
10+
window.addEventListener("load", init);

dom-and-events/exercises/style.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1 {
2+
text-decoration: underline;
3+
}
16.8 KB
Loading

dom-and-events/studio/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Flight Simulator</title>
5+
<link rel = "stylesheet" type = "text/css" href = "styles.css" />
6+
<script src = "scripts.js"></script>
7+
</head>
8+
<body>
9+
<div class="centered">
10+
<h1>Flight Simulator</h1>
11+
<h2>Current Flight Status</h2>
12+
<p id = "flightStatus">Space shuttle ready for takeoff</p>
13+
<h2>Shuttle Trajectory</h2>
14+
</div>
15+
<div id="flightDisplay">
16+
<div class="center-block">
17+
<h3>Fuel Levels</h3>
18+
<p>Tank Full</p>
19+
<h3>Astronaut Chat</h3>
20+
<p>Houston, we are ready when you are!</p>
21+
</div>
22+
<div id = "shuttleBackground">
23+
<img src = "LaunchCode_rocketline_white.png" height = "75" width = "75" id = "rocket"/>
24+
</div>
25+
<div class="center-block">
26+
<button id="up">Up</button>
27+
<button id="down">Down</button>
28+
<button id="right">Right</button>
29+
<button id="left">Left</button>
30+
<h3>Space Shuttle Height</h3>
31+
<p id="spaceShuttleHeight">0</p><span> miles</span>
32+
</div>
33+
</div>
34+
<div class="centered">
35+
<button id = "takeoff">Take off</button>
36+
<button id = "landing">Land</button>
37+
<button id = "missionAbort">Abort Mission</button>
38+
</div>
39+
</body>
40+
</html>

dom-and-events/studio/scripts.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// Write your JavaScript code here.
2+
// Remember to pay attention to page loading!

0 commit comments

Comments
 (0)