Skip to content

Commit 5f92f02

Browse files
committed
Update screenshot and styles for Chapter 21
1 parent 3dd3ac1 commit 5f92f02

File tree

3 files changed

+15
-35
lines changed

3 files changed

+15
-35
lines changed

21_skillsharing.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ delete talks, and comment on existing talks. Whenever the user makes
5151
such a change, the client makes an ((HTTP)) ((request)) to tell the
5252
server about it.
5353

54-
FIXME: update the screenshot
55-
5654
{{figure {url: "img/skillsharing.png", alt: "Screenshot of the skill-sharing website",width: "10cm"}}}
5755

5856
{{index "live view", "user experience", "pushing data", connection}}
@@ -100,12 +98,12 @@ answer when it has nothing new to report.
10098

10199
As long as the client makes sure it constantly has a polling request
102100
open, it will receive information from the server quickly after it
103-
becomes available. For example, if Alice has our skill-sharing
101+
becomes available. For example, if Fatma has our skill-sharing
104102
application open in her browser, that browser will have made a request
105-
for updates and be waiting for a response to that request. When Bob
103+
for updates and be waiting for a response to that request. When Iman
106104
submits a talk on Extreme Downhill Unicycling, the server will notice
107-
that Alice is waiting for updates and send information about the new
108-
talk as a response to her pending request. Alice's browser will
105+
that Fatma is waiting for updates and send information about the new
106+
talk as a response to her pending request. Fatma's browser will
109107
receive the data and update the screen to show the talk.
110108

111109
{{index robustness, timeout}}
@@ -148,7 +146,7 @@ A `GET` request to `/talks` returns a JSON document like this:
148146

149147
```{lang: "application/json"}
150148
[{"title": "Unituning",
151-
"presenter": "Carlos",
149+
"presenter": "Jamal",
152150
"summary": "Modifying your cycle for extra style",
153151
"comment": []}]}
154152
```
@@ -179,7 +177,7 @@ PUT /talks/How%20to%20Idle HTTP/1.1
179177
Content-Type: application/json
180178
Content-Length: 92
181179
182-
{"presenter": "Dana",
180+
{"presenter": "Maureen",
183181
"summary": "Standing still on a unicycle"}
184182
```
185183

@@ -197,7 +195,7 @@ POST /talks/Unituning/comments HTTP/1.1
197195
Content-Type: application/json
198196
Content-Length: 72
199197
200-
{"author": "Alice",
198+
{"author": "Iman",
201199
"message": "Will you talk about raising a cycle?"}
202200
```
203201

@@ -882,7 +880,7 @@ function renderTalkForm(dispatch) {
882880
summary: summary.value});
883881
event.target.reset();
884882
}
885-
}, elt("h3", null, "Submit a talk"),
883+
}, elt("h3", null, "Submit a Talk"),
886884
elt("label", null, "Title: ", title),
887885
elt("label", null, "Summary: ", summary),
888886
elt("button", {type: "submit"}, "Submit"));
Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
1-
.talk {
2-
margin: 40px 0;
3-
}
1+
.talk { margin: 40px 0; }
42

5-
h2 button {
6-
vertical-align: bottom;
7-
}
3+
.comment { font-style: italic; margin: 0; }
4+
.comment strong { font-style: normal; }
85

9-
h3 {
10-
margin: 0.5em 0;
11-
}
6+
.talk h2 { font-size: 130%; margin-bottom: 0; }
7+
.talk h2 button { vertical-align: bottom; }
128

13-
.name {
14-
font-weight: bold;
15-
}
9+
h1, h3 { margin-bottom: 0.33em; }
1610

17-
.comment {
18-
font-style: italic;
19-
}
20-
21-
.talk h2 {
22-
margin: 0;
23-
font-size: 130%;
24-
}
25-
26-
label input {
27-
display: block;
28-
width: 30em;
29-
}
11+
label input { display: block; width: 30em; }

img/skillsharing.png

2.84 KB
Loading

0 commit comments

Comments
 (0)