Skip to content

Commit cc08105

Browse files
authored
Merge pull request #406 from 80001/patch-6
Update task.md
2 parents dd86756 + 5010106 commit cc08105

File tree

1 file changed

+7
-7
lines changed
  • 2-ui/1-document/09-size-and-scroll/4-put-ball-in-center

1 file changed

+7
-7
lines changed

2-ui/1-document/09-size-and-scroll/4-put-ball-in-center/task.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ importance: 5
22

33
---
44

5-
# Place the ball in the field center
5+
# Помістіть м'яч у центр поля
66

7-
Here's how the source document looks:
7+
Ось як має виглядати документ:
88

99
[iframe src="source" edit link height=180]
1010

11-
What are coordinates of the field center?
11+
Які координати центру поля?
1212

13-
Calculate them and use to place the ball into the center of the green field:
13+
Обчисліть їх і використайте, щоб помістити м'яч у центр зеленого поля:
1414

1515
[iframe src="solution" height=180]
1616

17-
- The element should be moved by JavaScript, not CSS.
18-
- The code should work with any ball size (`10`, `20`, `30` pixels) and any field size, not be bound to the given values.
17+
- Елемент має бути переміщено за допомогою JavaScript, а не CSS.
18+
- Код повинен працювати з будь-яким розміром кулі (`10`, `20`, `30` пікселів) і будь-якого розміру поля, ваше рішення не має залежити від якихось конкретних значень.
1919

20-
P.S. Sure, centering could be done with CSS, but here we want exactly JavaScript. Further we'll meet other topics and more complex situations when JavaScript must be used. Here we do a "warm-up".
20+
P.S. Звичайно, центрування можна виконати за допомогою CSS, але тут нам потрібен саме JavaScript. Далі ми познайомимося з іншими темами та більш складними ситуаціями, коли необхідно використовувати JavaScript. Тут ми робимо "розминку".

0 commit comments

Comments
 (0)