From 97ac8797d6a29dec2399348377a074b2a838845d Mon Sep 17 00:00:00 2001 From: Marie Malarme Date: Fri, 5 Mar 2021 19:23:28 +0000 Subject: [PATCH] action-reaction: fix typo in instruction --- subjects/action-reaction/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/action-reaction/README.md b/subjects/action-reaction/README.md index 0235fa09..1c565f9a 100644 --- a/subjects/action-reaction/README.md +++ b/subjects/action-reaction/README.md @@ -25,7 +25,7 @@ button { In the JS file, get the HTML button element with [`querySelector`](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector), and [add an event listener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) on [`click` event](https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event#javascript), triggering a function that will: - change the [text content](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) of the button: if the eye is open, write "Click to close the left eye", if the eye is closed, write "Click to open the left eye" -- [toggle](https://css-tricks.com/snippets/javascript/the-classlist-api/) the class `eye-open` in the `classList` of the `eye-left` HTML element +- [toggle](https://css-tricks.com/snippets/javascript/the-classlist-api/) the class `eye-closed` in the `classList` of the `eye-left` HTML element - change the background color of the `eye-left`: if the eye is open, to "red", if the eye is closed, to "black" ### Expected output