Skip to content

Commit 4541b7a

Browse files
committed
minor fixes
1 parent 15f7acf commit 4541b7a

File tree

4 files changed

+11
-23
lines changed
  • 1-js/05-data-types/03-string
  • 2-ui
    • 1-document/07-modifying-document/10-clock-setinterval/solution.view

4 files changed

+11
-23
lines changed

‎1-js/05-data-types/03-string/article.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Here's the full list:
8181
| Character | Description |
8282
|-----------|-------------|
8383
|`\n`|New line|
84-
|`\r`|Carriage return: not used alone. Windows text files use a combination of two characters `\r\n`to represent a line break. |
84+
|`\r`|In Windows text files a combination of two characters `\r\n`represents a new break, while on non-Windows OS it's just `\n`. That's for historical reasons, most Windows software also understands `\n`. |
8585
|`\'`, `\"`|Quotes|
8686
|`\\`|Backslash|
8787
|`\t`|Tab|

‎2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.view/index.html‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
functionclockStart(){
4646
// set a new interval only if the clock is stopped
4747
// otherwise we would rewrite the timerID reference to the running interval and wouldn't be able to stop the clock ever again
48-
if(!timerId){
48+
if(!timerId){
4949
timerId=setInterval(update,1000);
5050
}
5151
update();// <-- start right now, don't wait 1 second till the first setInterval works
@@ -56,7 +56,6 @@
5656
timerId=null;// <-- clear timerID to indicate that the clock has been stopped, so that it is possible to start it again in clockStart()
5757
}
5858

59-
clockStart();
6059
</script>
6160

6261
<!-- click on this button calls clockStart() -->

‎2-ui/2-events/04-default-browser-action/3-image-gallery/solution.view/gallery.css‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ body{
44
font:75%/120% sans-serif;
55
}
66

7-
h2{
8-
font: bold 190%/100% sans-serif;
9-
margin:00.2em;
10-
}
11-
12-
h2em{
13-
font: normal 80%/100% sans-serif;
14-
color:#999999;
15-
}
16-
177
#largeImg{
188
border: solid 1px#ccc;
199
width:550px;

‎2-ui/2-events/04-default-browser-action/3-image-gallery/source.view/gallery.css‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ body{
44
font:75%/120% sans-serif;
55
}
66

7-
h2{
8-
font: bold 190%/100% sans-serif;
9-
margin:00.2em;
10-
}
11-
12-
h2em{
13-
font: normal 80%/100% sans-serif;
14-
color:#999999;
15-
}
16-
177
#largeImg{
188
border: solid 1px#ccc;
199
width:550px;
@@ -32,4 +22,13 @@ h2 em{
3222

3323
#thumbsa:hover{
3424
border-color:#FF9900;
25+
}
26+
27+
#thumbsli{
28+
list-style: none;
29+
}
30+
31+
#thumbs{
32+
margin:0;
33+
padding:0;
3534
}

0 commit comments

Comments
(0)