Skip to content

Commit 2d7359c

Browse files
committed
removing extra </body> tags and adding some readability
1 parent aae038f commit 2d7359c

File tree

6 files changed

+43
-46
lines changed

6 files changed

+43
-46
lines changed

chapter1/birthday.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>Happy Birthday</title>
66
</head>
77
<body>
8-
</body>
98
<script>
109
var name = "Joe";
1110
var i = 0;

chapter1/generic.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<title>Just a Generic Page</title>
6-
<script>
7-
setTimeout(wakeUpUser, 5000);
8-
function wakeUpUser() {
9-
alert("Are you going to stare at this boring page forever?");
10-
}
11-
</script>
4+
<meta charset="utf-8">
5+
<title>Just a Generic Page</title>
6+
<script>
7+
setTimeout(wakeUpUser, 5000);
8+
function wakeUpUser() {
9+
alert("Are you going to stare at this boring page forever?");
10+
}
11+
</script>
1212
</head>
1313
<body>
14-
<h1>Just a generic heading</h1>
15-
<p>Not a lot to read about here. I'm just an obligatory paragraph living
16-
in an example in a JavaScript book. I'm looking for something to make my
17-
life more exciting.</p>
14+
<h1>Just a generic heading</h1>
15+
<p>Not a lot to read about here. I'm just an obligatory paragraph living
16+
in an example in a JavaScript book. I'm looking for something to make my
17+
life more exciting.</p>
1818
</body>
1919
</html>
2020

chapter1/howdy.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
<title>Howdy</title>
66
</head>
77
<body>
8-
</body>
98
<script>
10-
message = "Howdy" + " " + "partner";
11-
console.log(message);
9+
message = "Howdy" + " " + "partner";
10+
console.log(message);
1211
</script>
1312
</body>
1413
</html>

chapter1/icecream.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>Icecream!</title>
66
</head>
77
<body>
8-
</body>
98
<script src="code.js"></script>
109
<!--
1110
<script>

chapter1/index.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<title>My First JavaScript</title>
4+
<meta charset="utf-8">
5+
<title>My First JavaScript</title>
66
</head>
77
<body>
8-
<script>
9-
var word = "bottles";
10-
var count = 99;
11-
while (count > 0) {
12-
console.log(count + " " + word + " of beer on the wall");
13-
console.log(count + " " + word + " of beer,");
14-
console.log("Take one down, pass it around,");
15-
count = count - 1;
16-
if (count > 0) {
17-
console.log(count + " " + word + " of beer on the wall.");
18-
} else {
19-
console.log("No more " + word + " of beer on the wall.");
20-
}
21-
}
8+
<script>
9+
var word = "bottles";
10+
var count = 99;
11+
while (count > 0) {
12+
console.log(count + " " + word + " of beer on the wall");
13+
console.log(count + " " + word + " of beer,");
14+
console.log("Take one down, pass it around,");
15+
count = count - 1;
16+
if (count > 0) {
17+
console.log(count + " " + word + " of beer on the wall.");
18+
} else {
19+
console.log("No more " + word + " of beer on the wall.");
20+
}
21+
}
2222

23-
</script>
23+
</script>
2424
</body>
2525
</html>
2626

chapter1/kids.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!doctype html>
22
<html>
33
<head>
4-
<meta charset="utf-8">
5-
<title>For Kids Only</title>
6-
<script>
7-
var age = 25;
8-
var name = "Owen";
9-
if (age > 14) {
10-
alert("Sorry this page is for kids only!");
11-
} else {
12-
alert("Welcome " + name + "!");
13-
}
14-
</script>
4+
<meta charset="utf-8">
5+
<title>For Kids Only</title>
6+
<script>
7+
var age = 25;
8+
var name = "Owen";
9+
if (age > 14) {
10+
alert("Sorry this page is for kids only!");
11+
} else {
12+
alert("Welcome " + name + "!");
13+
}
14+
</script>
1515
</head>
1616
<body>
17-
<h1>This page is for kids only!</h1>
17+
<h1>This page is for kids only!</h1>
1818
</body>
1919
</html>
2020

0 commit comments

Comments
 (0)