Skip to content

Commit ba434d9

Browse files
authored
Merge pull request #149 from fatmabadri/master
Ready for Review
2 parents 52cc7f8 + 505ab2e commit ba434d9

File tree

4 files changed

+136
-136
lines changed

4 files changed

+136
-136
lines changed

2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ importance: 5
44

55
# createTextNode vs innerHTML vs textContent
66

7-
We have an empty DOM element `elem` and a string `text`.
7+
Boş bir DOM elementimiz `elem` ve bir string metnimiz `text` var.
88

9-
Which of these 3 commands do exactly the same?
9+
Bu 3 komuttan hangisi tamamen aynıdır?
1010

1111
1. `elem.append(document.createTextNode(text))`
1212
2. `elem.innerHTML = text`

2-ui/1-document/07-modifying-document/11-append-to-list/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ importance: 5
44

55
# Insert the HTML in the list
66

7-
Write the code to insert `<li>2</li><li>3</li>` between two `<li>` here:
7+
Buraya iki `<li>` arasına `<li>2</li><li>3</li>` eklemek için kodu yazın:
88

99
```html
1010
<ul id="ul">
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
We'll create the table as a string: `"<table>...</table>"`, and then assign it to `innerHTML`.
1+
Tabloyu bir string olarak oluşturacağız: `"<table>...</table>"` ve ardından `innerHTML`'ye atayacağız.
22

3-
The algorithm:
3+
Algoritma:
44

5-
1. Create the table header with `<th>` and weekday names.
6-
1. Create the date object `d = new Date(year, month-1)`. That's the first day of `month` (taking into account that months in JavaScript start from `0`, not `1`).
7-
2. First few cells till the first day of the month `d.getDay()` may be empty. Let's fill them in with `<td></td>`.
8-
3. Increase the day in `d`: `d.setDate(d.getDate()+1)`. If `d.getMonth()` is not yet the next month, then add the new cell `<td>` to the calendar. If that's a Sunday, then add a newline <code>"&lt;/tr&gt;&lt;tr&gt;"</code>.
9-
4. If the month has finished, but the table row is not yet full, add empty `<td>` into it, to make it square.
5+
1. Tablo başlığını ve hafta içi gün isimlerini `<th>` ile oluşturun.
6+
1. Tarih nesnesini ile `d = new Date(year, month-1)` oluşturun. Bu, ayın ilk günüdür. (JavaScript'te ayların `1`den değil, `0`dan başladığını hesaba katarak)
7+
2. Ayın ilk gününe kadar ilk birkaç hücre `d.getDay()` boş olabilir. Onları `<td></td>` ile dolduralım.
8+
3. `d`: `d.setDate(d.getDate()+1)` içindeki günü artırın. Eğer `d.getMonth()` henüz gelecek ay değilse, ondan sonra takvime yeni hücre ekle. Eğer bu bir Pazar günüyse, yeni bir satır <code>"&lt;/tr&gt;&lt;tr&gt;"</code>'i ekleyin.
9+
4. Eğer ay bitmişse, ama tablo satırı henüz dolu değilse, onu kare yapmak için içine boş `<td>` ekleyin.

0 commit comments

Comments
 (0)