Skip to content

Commit f34dcf6

Browse files
committed
All of chapter 17
1 parent 89cedb3 commit f34dcf6

8 files changed

Lines changed: 746 additions & 6 deletions

File tree

17_http.txt

Lines changed: 715 additions & 4 deletions
Large diffs are not rendered by default.

html/example/bert.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "Bert",
3+
"spouse": "example/suzie.json"
4+
}

html/example/data.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is the content of data.txt

html/example/fruit.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{"banana": "yellow",
2+
"lemon": "yellow",
3+
"cherry": "red"}

html/example/fruit.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<fruits>
2+
<fruit name="banana" color="yellow"/>
3+
<fruit name="lemon" color="yellow"/>
4+
<fruit name="cherry" color="red"/>
5+
</fruits>

html/example/message.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
<!doctype html>
2-
<title>Message received</title>
2+
<title>Example form target</title>
3+
4+
<body style="font-family: arial">
5+
6+
<h1>Example form target</h1>
37

48
<div id="ok" style="display: none">
59
<p>Hello<span id="name"></span>, we've received your message:</p>
6-
<blockquote id="message"></blockquote>
10+
<blockquote id="message" style="font-style: italic; margin-left: 1.5em"></blockquote>
711
</div>
812
<div id="missing" style="display: none">
913
<p>No message received.</p>
1014
</div>
1115

16+
<p style="color: #777">(Note that this page is just an illustration. No actual message was delivered anywhere.)</p>
17+
1218
<script>
1319
function param(name) {
1420
var f = new RegExp("\\b" + name + "=([^&]+)").exec(document.location.search);
@@ -27,3 +33,5 @@
2733
document.querySelector("#missing").style.display = "";
2834
}
2935
</script>
36+
37+
</body>

html/example/muriel.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "Muriel"
3+
}

html/example/suzie.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "Suzie",
3+
"spouse": "example/bert.json",
4+
"mother": "example/muriel.json"
5+
}

0 commit comments

Comments
 (0)