File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
2-ui/2-events/01-introduction-browser-events/04-move-ball-field Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments