Skip to content

Commit 2a64dc1

Browse files
authored
Merge branch 'LaunchCodeEducation:main' into main
2 parents 68f83c4 + 6578185 commit 2a64dc1

File tree

36 files changed

+399
-0
lines changed

36 files changed

+399
-0
lines changed

.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! */

dom-and-events/exercises/index.html

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+
}
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!

dom-and-events/studio/styles.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#shuttleBackground {
2+
background-color: green;
3+
display: inline-block;
4+
height: 80%;
5+
width: 40%;
6+
position: relative;
7+
}
8+
9+
#flightStatus {
10+
color: green;
11+
}
12+
13+
#flightDisplay {
14+
text-align: center;
15+
height: 400px;
16+
width: 100%;
17+
}
18+
19+
#spaceShuttleHeight {
20+
display: inline-block;
21+
}
22+
23+
.center-block {
24+
text-align: center;
25+
display: inline-block;
26+
}
27+
28+
.centered {
29+
text-align: center;
30+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Launch Status</title>
6+
<script>
7+
window.addEventListener("load", function() {
8+
fetch("https://handlers.education.launchcode.org/static/weather.json").then( function(response) {
9+
console.log(response);
10+
} );
11+
});
12+
</script>
13+
</head>
14+
<body>
15+
<h1>Launch Status</h1>
16+
Weather Conditions
17+
<div id="weather-conditions">
18+
<!-- TODO: dynamically add html about weather using data from API -->
19+
</div>
20+
</body>
21+
</html>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Launch Status</title>
6+
<script>
7+
window.addEventListener("load", function() {
8+
fetch("https://handlers.education.launchcode.org/static/weather.json").then( function(response) {
9+
// Access the JSON in the response
10+
response.json().then( function(json) {
11+
console.log(json);
12+
});
13+
});
14+
});
15+
</script>
16+
</head>
17+
<body>
18+
<h1>Launch Status</h1>
19+
Weather Conditions
20+
<div id="weather-conditions">
21+
<!-- TODO: dynamically add html about weather using data from API -->
22+
</div>
23+
</body>
24+
</html>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Launch Status</title>
6+
<script>
7+
window.addEventListener("load", function() {
8+
fetch("https://handlers.education.launchcode.org/static/weather.json").then( function(response) {
9+
// Access the JSON in the response
10+
response.json().then( function(json) {
11+
const div = document.getElementById('weather-conditions');
12+
div.innerHTML = `
13+
<ul>
14+
<li>Temp ${json.temp}</li>
15+
<li>Wind Speed ${json.windSpeed}</li>
16+
<li>Status ${json.status}</li>
17+
<li>Chance of Precip ${json.chanceOfPrecipitation}</li>
18+
</ul>
19+
`;
20+
});
21+
});
22+
});
23+
</script>
24+
</head>
25+
<body>
26+
<h1>Launch Status</h1>
27+
Weather Conditions
28+
<div id="weather-conditions">
29+
<!-- TODO: dynamically add html about weather using data from API -->
30+
</div>
31+
</body>
32+
</html>

fetch/studio/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>Astronauts</title>
7+
<link href="style.css" rel="stylesheet" type="text/css" />
8+
</head>
9+
<body>
10+
<script src="script.js"></script>
11+
<h1>Astronauts</h1>
12+
<div id="container">
13+
<!-- List of astronauts will be added here dynamically -->
14+
</div>
15+
</body>
16+
</html>

fetch/studio/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//TODO: Add Your Code Below

fetch/studio/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.avatar {
2+
border-radius: 50%;
3+
height: 100px;
4+
float:right;
5+
}
6+
7+
.astronaut {
8+
border: 1px solid black;
9+
display: flex;
10+
justify-content: space-between;
11+
width: 500px;
12+
align-items: center;
13+
padding: 5px;
14+
margin-bottom: 20px;
15+
border-radius: 6px;
16+
}

html/exercises/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>HTML Exercise</title>
7+
<link href="style.css" rel="stylesheet" type="text/css" />
8+
<!-- DON'T TOUCH ANYTHING ABOVE THIS LINE -->
9+
</head>
10+
<body>
11+
<!-- h1 goes here -->
12+
<!-- ol goes here -->
13+
<!-- a goes here -->
14+
<!-- p goes here -->
15+
</body>
16+
</html>

terminal-commands/launchcode_courses/data_analysis/cities.sql

Whitespace-only changes.

terminal-commands/launchcode_courses/data_analysis/final_project/.empty_file.txt

Whitespace-only changes.

terminal-commands/launchcode_courses/data_analysis/lakes.json

Whitespace-only changes.

terminal-commands/launchcode_courses/lc_101/unit_1/about_me.html

Whitespace-only changes.

terminal-commands/launchcode_courses/lc_101/unit_1/hello_world.js

Whitespace-only changes.

terminal-commands/launchcode_courses/lc_101/unit_1/styles.css

Whitespace-only changes.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width">
6+
<title>repl.it</title>
7+
<link href="style.css" rel="stylesheet" type="text/css" />
8+
</head>
9+
<body>
10+
<form action="https://handlers.education.launchcode.org/request-parrot" method="post">
11+
12+
<!-- single checkbox -->
13+
<label>crew<input type="checkbox" name="crewReady"/></label>
14+
15+
<!-- group with different name -->
16+
<h3>Activities</h3>
17+
<label>cooking<input type="checkbox" name="cooking"/></label>
18+
<label>running<input type="checkbox" name="running"/></label>
19+
<label>movies<input type="checkbox" name="movies"/></label>
20+
21+
<!-- group all with same name -->
22+
<h3>Ingredients</h3>
23+
<label>Onion<input type="checkbox" name="ingredient" value="onion"/></label>
24+
<label>Butter<input type="checkbox" name="ingredient" value="butter"/></label>
25+
<label>Rice<input type="checkbox" name="ingredient" value="rice"/></label>
26+
27+
<button>Send Report</button>
28+
</form>
29+
</body>
30+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Add Your Code Below
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*/ Add Your Code Below /*/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Form POST</title>
6+
<style>
7+
label {
8+
display: block;
9+
padding-bottom: 10px;
10+
}
11+
body {
12+
padding: 25px;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<!-- Because method and action are set, a POST request will be sent to the action addess, with a message containing the field values.-->
18+
<form action="https://handlers.education.launchcode.org/request-parrot" method="POST">
19+
<label>Username <input type="text" name="username"></label>
20+
<label>Team Name <input type="text" name="teamName">
21+
</label>
22+
<button>Submit</button>
23+
</form>
24+
</body>
25+
</html>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Form Example</title>
6+
<style>
7+
label {
8+
display: block;
9+
padding-bottom: 10px;
10+
}
11+
body {
12+
padding: 25px;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<!-- Form will use default action value and submit form to current page. -->
18+
<form action="">
19+
<label>Username <input type="text" name="username"></label>
20+
<label>Team Name <input type="text" name="team">
21+
</label>
22+
<button>Submit</button>
23+
</form>
24+
</body>
25+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Form Validation</title>
6+
<style>
7+
label {display: block;}
8+
body {padding: 25px;}
9+
</style>
10+
</head>
11+
<script>
12+
window.addEventListener("load", function() {
13+
let form = document.querySelector("form");
14+
form.addEventListener("submit", function(event) {
15+
alert("submit clicked");
16+
});
17+
});
18+
</script>
19+
<body>
20+
<form method="POST" action="https://handlers.education.launchcode.org/request-parrot">
21+
<label>Username <input type="text" name="username"></label>
22+
<label>Team Name <input type="text" name="team"></label>
23+
<button>Submit</button>
24+
</form>
25+
</body>
26+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//Add Your Code Below
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/*/ Add your Code Below /*/

0 commit comments

Comments
 (0)