Skip to content
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Answer: **1 and 3**.
Cevap: **1 ve 3**.

Both commands result in adding the `text` "as text" into the `elem`.
Her iki komut da 'metin'i(`text`) "elem" e 'metin olarak' eklemeyle sonuçlanır.

Here's an example:
İşte bir örnek:

```html run height=80
<div id="elem1"></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
First, let's make HTML/CSS.
İlk olarak, HTML/CSS yapalım.

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

```html
<div id="clock">
<span class="hour">hh</span>:<span class="min">mm</span>:<span class="sec">ss</span>
</div>
```

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

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

```js
function update() {
Expand All @@ -32,9 +32,9 @@ function update() {
}
```

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

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

```js
let timerId;
Expand All @@ -50,4 +50,4 @@ function clockStop() {
}
```

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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ importance: 4

# Colored clock with setInterval

Create a colored clock like here:
Buradaki gibi renklendirilmiş bir saat oluşturun:

[iframe src="solution" height=60]

Use HTML/CSS for the styling, JavaScript only updates time in elements.
Şekillendirmek için HTML/CSS, sadece elementlerdeki zaman için Javascript kullanın.
16 changes: 8 additions & 8 deletions 2-ui/1-document/07-modifying-document/6-create-list/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ importance: 4

---

# Create a list
# Bir Liste Olustur

Write an interface to create a list from user input.
Kullanıcı girdisinden bir liste oluşturmak için bir arayüz yazın.

For every list item:
Her liste maddesi için:

1. Ask a user about its content using `prompt`.
2. Create the `<li>` with it and add it to `<ul>`.
3. Continue until the user cancels the input (by pressing `key:Esc` or CANCEL in prompt).
1. 'Komut istem'(`prompt`)i kullanarak bir kullanıcıya içeriği hakkında sorun.
2.Onunla `<li>`yi yarat ve onu `<ul>`ye ekle. Create the `<li>` with it and add it to `<ul>`.
3. Kullanıcı girişi iptal edene kadar devam edin (komut isteminde `tuş:Esc` veya CANCEL'a basarak).

All elements should be created dynamically.
Tüm elenetler dinamik olarak oluşturulmalıdır.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elementler.


If a user types HTML-tags, they should be treated like a text.
Eğer bir kullanıcı HTML etiketleri(tags) yazıyorsa, metin gibi davranılmalıdır.

[demo src="solution"]
12 changes: 6 additions & 6 deletions 2-ui/1-document/07-modifying-document/9-calendar-table/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ importance: 4

---

# Create a calendar
# Create a calendar

Write a function `createCalendar(elem, year, month)`.
Bir işlev(function) yazın: `createCalendar(elem, year, month)`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sizce fonksiyon işlev olarak mı çevirilmeli? Bu konuda ne düşünüyorsunuz?

@fatmabadri fatmabadri Jan 19, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sahinyanlik
Aslında fonksiyon kelimesi, 'function' kelimesinin Fransızca olarak söylenişidir. Bu kelime Fransızca'dan Türkçe'ye girmiştir. Türkçe'ye de 'işlev' olarak çevrilmiştir. Görmek isterseniz, size birkaç kaynak sunabilirim.
Peki siz ne düşünüyorsunuz?
Tercih ederseniz, 'işlev' kelimesini 'fonksiyon' kelimesi ile değiştirebilirsiniz.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ben aslında fonksiyon kelimesinin doğru olacağını düşünüyorum. Doğruluğundan ziyade kullanım olarak yazılım dünyasında çokça kullanılmakta ve anlam olarak işlevden farklı bir anlam içermekte. Lise yazılım kitaplarında dahi işlev diye çevrilirken görmemiştim. Fonksiyon olarak kullanalım isterseniz.


The call should create a calendar for the given year/month and put it inside `elem`.
Çağrı, belirtilen yıl/ay için bir takvim oluşturmalıdır ve onu `elem` içine koymalıdır.

The calendar should be a table, where a week is `<tr>`, and a day is `<td>`. The table top should be `<th>` with weekday names: the first day should be Monday, and so on till Sunday.
Takvim, bir haftanın `<tr>` ve bir günün `<td>` olduğu bir tablo olmalıdır. Üst tablo hafta içi isimleriyle `<th>` olmalıdır: ilk gün Pazartesi olmalı, ve Pazar gününe kadar böyle devam etmeli.

For instance, `createCalendar(cal, 2012, 9)` should generate in element `cal` the following calendar:
Örneğin, `createCalendar(cal, 2012, 9)`, element `cal`da aşağidaki takvimi oluşturmalıdır.

[iframe height=210 src="solution"]

P.S. For this task it's enough to generate the calendar, should not yet be clickable.
Not(P.S.-PostScript) Bu görev için takvimi oluşturmak yeterlidir, henüz tıklanabilir olmamalıdır.