Skip to content

Commit 1ec35e2

Browse files
committed
Translate Event: move-ball-field/task.md
1 parent 206dfa7 commit 1ec35e2

File tree

1 file changed

+10
-10
lines changed
  • 2-ui/2-events/01-introduction-browser-events/04-move-ball-field

1 file changed

+10
-10
lines changed

2-ui/2-events/01-introduction-browser-events/04-move-ball-field/task.md

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

33
---
44

5-
# Move the ball across the field
5+
# Pindahkan bola ke seberang lapangan
66

7-
Move the ball across the field to a click. Like this:
7+
Pindahkan bola ke seberang lapangan pada saat di klik. Seperti ini:
88

99
[iframe src="solution" height="260" link]
1010

11-
Requirements:
11+
Syarat-Syarat:
1212

13-
- The ball center should come exactly under the pointer on click (if possible without crossing the field edge).
14-
- CSS-animation is welcome.
15-
- The ball must not cross field boundaries.
16-
- When the page is scrolled, nothing should break.
13+
- Pusat bola harus berada tepat dibawah pointer pada saat di klik (jika memungkinkan tanpa melintasi ujung lapangan).
14+
- Animasi CSS jika memungkinkan.
15+
- Bola tidak boleh melintasi batas lapangan.
16+
- Saat halaman di digulir, tidak ada yang rusak.
1717

18-
Notes:
18+
Tambahan:
1919

20-
- The code should also work with different ball and field sizes, not be bound to any fixed values.
21-
- Use properties `event.clientX/event.clientY` for click coordinates.
20+
- Kode harus juga bekerja dengan bola yang berbeda dan berbagai ukuran lapangan, tidak hanya pada ukuran tertentu.
21+
- Gunakan properti `event.clientX/event.clientY` untuk koordinat klik.

0 commit comments

Comments
 (0)