minor fixes

This commit is contained in:
Ilya Kantor 2021-11-03 16:16:33 +03:00
parent 15f7acfc2a
commit 4541b7af75
4 changed files with 11 additions and 23 deletions

View file

@ -81,7 +81,7 @@ Here's the full list:
| Character | Description | | Character | Description |
|-----------|-------------| |-----------|-------------|
|`\n`|New line| |`\n`|New line|
|`\r`|Carriage return: not used alone. Windows text files use a combination of two characters `\r\n` to represent a line break. | |`\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`. |
|`\'`, `\"`|Quotes| |`\'`, `\"`|Quotes|
|`\\`|Backslash| |`\\`|Backslash|
|`\t`|Tab| |`\t`|Tab|

View file

@ -45,7 +45,7 @@
function clockStart() { function clockStart() {
// set a new interval only if the clock is stopped // set a new interval only if the clock is stopped
// otherwise we would rewrite the timerID reference to the running interval and wouldn't be able to stop the clock ever again // otherwise we would rewrite the timerID reference to the running interval and wouldn't be able to stop the clock ever again
if (!timerId) { if (!timerId) {
timerId = setInterval(update, 1000); timerId = setInterval(update, 1000);
} }
update(); // <-- start right now, don't wait 1 second till the first setInterval works update(); // <-- start right now, don't wait 1 second till the first setInterval works
@ -56,7 +56,6 @@
timerId = null; // <-- clear timerID to indicate that the clock has been stopped, so that it is possible to start it again in clockStart() timerId = null; // <-- clear timerID to indicate that the clock has been stopped, so that it is possible to start it again in clockStart()
} }
clockStart();
</script> </script>
<!-- click on this button calls clockStart() --> <!-- click on this button calls clockStart() -->

View file

@ -4,16 +4,6 @@ body {
font: 75%/120% sans-serif; font: 75%/120% sans-serif;
} }
h2 {
font: bold 190%/100% sans-serif;
margin: 0 0 .2em;
}
h2 em {
font: normal 80%/100% sans-serif;
color: #999999;
}
#largeImg { #largeImg {
border: solid 1px #ccc; border: solid 1px #ccc;
width: 550px; width: 550px;

View file

@ -4,16 +4,6 @@ body {
font: 75%/120% sans-serif; font: 75%/120% sans-serif;
} }
h2 {
font: bold 190%/100% sans-serif;
margin: 0 0 .2em;
}
h2 em {
font: normal 80%/100% sans-serif;
color: #999999;
}
#largeImg { #largeImg {
border: solid 1px #ccc; border: solid 1px #ccc;
width: 550px; width: 550px;
@ -32,4 +22,13 @@ h2 em {
#thumbs a:hover { #thumbs a:hover {
border-color: #FF9900; border-color: #FF9900;
}
#thumbs li {
list-style: none;
}
#thumbs {
margin: 0;
padding: 0;
} }