Skip to content

Commit f5d5e2a

Browse files
committed
Merge pull request #130 from mrjamesriley/gh-pages
minor corrections to the JS Lesson 3 tutorial
2 parents d331e76 + 30e0003 commit f5d5e2a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/lesson3/tutorial.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Refresh the page and run `addToList("build a website")` again.
195195

196196
###Setting items to complete
197197

198-
When we click on the Pending label, we want to set items to complete. We will do that by adding a CSS class `.complete` to the list item (use `addClass()`), **append** a new label `<span class='label success'>Done!</span>` and **remove** the item we've just clicked so that we can't trigger the event again.
198+
When we click on the Pending label, we want to set items to complete. We will do that by adding a CSS class `.completed` to the list item (use `addClass()`), **append** a new label `<span class='label success'>Done!</span>` and **remove** the item we've just clicked so that we can't trigger the event again.
199199

200200
> Use `$(this)` to access the element that the event was triggered from.
201201
@@ -283,7 +283,7 @@ Handle the `keydown keyup` and `keypress` events of the `#color` input. Pass the
283283

284284
###Set the color value
285285

286-
Extend `setPreviewColor()` to also set the value of `.color-code` to the `background-color` of the `.preview` div.
286+
Extend `setPreviewColor()` to also set the text of `.color-code` to the `background-color` of the `.preview` div.
287287
As the color code is converted to *rgb* when set, that is the value the we will be displaying.
288288

289289
![](assets/images/color-codes.png)
@@ -293,7 +293,7 @@ As the color code is converted to *rgb* when set, that is the value the we will
293293
Retrieve the color from the input field and add a box to the start of the `#colors` div every time the **Add to favorites** button is pressed, by handling the **click** event.
294294

295295
```javascript
296-
"<div class='item' style='background-color: " + color + ";'><div>"
296+
"<div class='item' style='background-color: " + color + ";'></div>"
297297
```
298298

299299
###Create a function that adds the box to `#colors`

0 commit comments

Comments
 (0)