Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EXTERNAL] Fix typo and syntax mouse-trap #2770

Merged
merged 4 commits into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions subjects/mouse-trap/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
****## Mouse trap
## Mouse trap

### Instructions

Develop a trap to capture the elements when the mouse is getting too close to the center of the page.

Create the following functions:

- `createCircle`: make it fire on every click on the page, and create a `div` at the position of the mouse on the screen, setting its `background` to `white` and its class to `circle`.

- `moveCircle`: make it fire when the mouse moves, and get the last circle created and makes it move along with the mouse.
Expand All @@ -17,7 +18,7 @@ Create the following functions:

### Files

You only need to create & submit the JS file `mouse-trap.js`; we're providing you the following file to download and test locally:
You only need to create & submit the JS file `mouse-trap.js`, we're providing you the following files to download and test locally:

- the HTML file [mouse-trap.html](./mouse-trap.html) to open in the browser, which includes:

Expand Down
Loading