Skip to content

Commit 728fca5

Browse files
authored
Update solution.md
2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md
1 parent 0de582e commit 728fca5

File tree

1 file changed

+7
-7
lines changed
  • 2-ui/1-document/07-modifying-document/10-clock-setinterval

1 file changed

+7
-7
lines changed

2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
First, let's make HTML/CSS.
1+
İlk olarak, HTML/CSS yapalım.
22

3-
Each component of the time would look great in its own `<span>`:
3+
Zamanın her bir bileşeni kendi 'span'ının içinde harika görünecektir:
44

55
```html
66
<div id="clock">
77
<span class="hour">hh</span>:<span class="min">mm</span>:<span class="sec">ss</span>
88
</div>
99
```
1010

11-
Also we'll need CSS to color them.
11+
Ayrıca onları renklendirmek için CSS'ye ihtiyacımız olacak.
1212

13-
The `update` function will refresh the clock, to be called by `setInterval` every second:
13+
"Update" işlevi(function), her saniye "setInterval" tarafından çağrılmak üzere saati yeniler:
1414

1515
```js
1616
function update() {
@@ -32,9 +32,9 @@ function update() {
3232
}
3333
```
3434

35-
In the line `(*)` we every time check the current date. The calls to `setInterval` are not reliable: they may happen with delays.
35+
'(*)' Satırında, güncel tarihi kontrol ederiz. 'setInterval'a olan çağrılar güvenilir değildir: Onlar gecikmelere sebep olur.
3636

37-
The clock-managing functions:
37+
Saat yönetimi işlevleri:
3838

3939
```js
4040
let timerId;
@@ -50,4 +50,4 @@ function clockStop() {
5050
}
5151
```
5252

53-
Please note that the call to `update()` is not only scheduled in `clockStart()`, but immediately run in the line `(*)`. Otherwise the visitor would have to wait till the first execution of `setInterval`. And the clock would be empty till then.
53+
Lütfen not edin ki, 'update()'e olan çağrı sadece 'clockStart()'da planlanmamıştır, ama anında '(*)' satırında çalışmaya başlar. Yoksa, ziyaretçi `setInterval`in ilk uygulanmasına kadar beklemek zorunda olacaktır. Ve o zamana kadar da saat boş olacaktır.

0 commit comments

Comments
 (0)