From b8712430cfca06d3401fe6dd0d71cbc2aa31fcba Mon Sep 17 00:00:00 2001 From: Abdelilah SADIQUI <143453064+sadiqui@users.noreply.github.com> Date: Fri, 11 Oct 2024 08:16:23 +0100 Subject: [PATCH 1/2] Fix typo and syntax --- subjects/mouse-trap/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subjects/mouse-trap/README.md b/subjects/mouse-trap/README.md index 70db3f2f79..d7b6f0396c 100644 --- a/subjects/mouse-trap/README.md +++ b/subjects/mouse-trap/README.md @@ -1,4 +1,4 @@ -****## Mouse trap +## Mouse trap ### Instructions @@ -17,7 +17,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: From b2feacd3278caf0c7d2a78fbf282fd258117d3c4 Mon Sep 17 00:00:00 2001 From: Harry <14015057+HarryVasanth@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:43:46 +0000 Subject: [PATCH 2/2] docs(mouse-trap): fmt with prettier --- subjects/mouse-trap/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/subjects/mouse-trap/README.md b/subjects/mouse-trap/README.md index d7b6f0396c..c842eaae85 100644 --- a/subjects/mouse-trap/README.md +++ b/subjects/mouse-trap/README.md @@ -5,6 +5,7 @@ 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.