Skip to content

Hi Beth, I removed some extra </body> tags in a few documents (there were 2 closing body tags..) #1

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

Open
wants to merge 1 commit into
base: master
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
1 change: 0 additions & 1 deletion chapter1/birthday.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>Happy Birthday</title>
</head>
<body>
</body>
<script>
var name = "Joe";
var i = 0;
Expand Down
24 changes: 12 additions & 12 deletions chapter1/generic.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Just a Generic Page</title>
<script>
setTimeout(wakeUpUser, 5000);
function wakeUpUser() {
alert("Are you going to stare at this boring page forever?");
}
</script>
<meta charset="utf-8">
<title>Just a Generic Page</title>
<script>
setTimeout(wakeUpUser, 5000);
function wakeUpUser() {
alert("Are you going to stare at this boring page forever?");
}
</script>
</head>
<body>
<h1>Just a generic heading</h1>
<p>Not a lot to read about here. I'm just an obligatory paragraph living
in an example in a JavaScript book. I'm looking for something to make my
life more exciting.</p>
<h1>Just a generic heading</h1>
<p>Not a lot to read about here. I'm just an obligatory paragraph living
in an example in a JavaScript book. I'm looking for something to make my
life more exciting.</p>
</body>
</html>

5 changes: 2 additions & 3 deletions chapter1/howdy.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
<title>Howdy</title>
</head>
<body>
</body>
<script>
message = "Howdy" + " " + "partner";
console.log(message);
message = "Howdy" + " " + "partner";
console.log(message);
</script>
</body>
</html>
1 change: 0 additions & 1 deletion chapter1/icecream.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<title>Icecream!</title>
</head>
<body>
</body>
<script src="code.js"></script>
<!--
<script>
Expand Down
34 changes: 17 additions & 17 deletions chapter1/index.html
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My First JavaScript</title>
<meta charset="utf-8">
<title>My First JavaScript</title>
</head>
<body>
<script>
var word = "bottles";
var count = 99;
while (count > 0) {
console.log(count + " " + word + " of beer on the wall");
console.log(count + " " + word + " of beer,");
console.log("Take one down, pass it around,");
count = count - 1;
if (count > 0) {
console.log(count + " " + word + " of beer on the wall.");
} else {
console.log("No more " + word + " of beer on the wall.");
}
}
<script>
var word = "bottles";
var count = 99;
while (count > 0) {
console.log(count + " " + word + " of beer on the wall");
console.log(count + " " + word + " of beer,");
console.log("Take one down, pass it around,");
count = count - 1;
if (count > 0) {
console.log(count + " " + word + " of beer on the wall.");
} else {
console.log("No more " + word + " of beer on the wall.");
}
}

</script>
</script>
</body>
</html>

24 changes: 12 additions & 12 deletions chapter1/kids.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>For Kids Only</title>
<script>
var age = 25;
var name = "Owen";
if (age > 14) {
alert("Sorry this page is for kids only!");
} else {
alert("Welcome " + name + "!");
}
</script>
<meta charset="utf-8">
<title>For Kids Only</title>
<script>
var age = 25;
var name = "Owen";
if (age > 14) {
alert("Sorry this page is for kids only!");
} else {
alert("Welcome " + name + "!");
}
</script>
</head>
<body>
<h1>This page is for kids only!</h1>
<h1>This page is for kids only!</h1>
</body>
</html>