From 133e48727310b04aca093b7c2824fccf64cf8510 Mon Sep 17 00:00:00 2001 From: MarieMalarme Date: Thu, 18 Jun 2020 10:58:23 +0100 Subject: [PATCH] Specified the function to create + style class for `box` element. (#607) --- subjects/mouse-trap/README.md | 2 +- subjects/mouse-trap/index.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/subjects/mouse-trap/README.md b/subjects/mouse-trap/README.md index 32b6abc6..bfa6e422 100644 --- a/subjects/mouse-trap/README.md +++ b/subjects/mouse-trap/README.md @@ -8,7 +8,7 @@ Develop a trap to capture the elements when the mouse is getting too close to th - Create a function `moveCircle`: make it fire when the mouse moves, and get the last circle created and makes it move along with the mouse -- Set a box in the center of the page ; when a circle is inside that box, it has to be purple ; once a circle enters the box, it is trapped inside and cannot go out of it anymore. +- Create a function `setBox` which sets a box with the class `box` in the center of the page ; when a circle is inside that box, it has to be purple ; once a circle enters the box, it is trapped inside and cannot go out of it anymore. ### Notions diff --git a/subjects/mouse-trap/index.html b/subjects/mouse-trap/index.html index 90ca014c..856e78fa 100644 --- a/subjects/mouse-trap/index.html +++ b/subjects/mouse-trap/index.html @@ -52,8 +52,9 @@ body {