|
|
@ -94,12 +94,13 @@ const handleClick = (event) => { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// If the eye is open, close it and update the button text |
|
|
|
// If the eye is open, close it and update the button text |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Toggle the 'eye-closed' class on the 'eye-left' div |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// register the event: |
|
|
|
// register the event: |
|
|
|
button.addEventListener('click', handleClick) |
|
|
|
button.addEventListener('click', handleClick) |
|
|
|
// here we ask the button to call our `handleClick` function |
|
|
|
// here we ask the button to call our `handleClick` function |
|
|
|
// on the 'click' event, so every time it's clicked |
|
|
|
// on the 'click' event, so every time it's clicked |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
**`Prompt Examples:`** |
|
|
|
**`Prompt Examples:`** |
|
|
|