Easy there, pal!
To access the Getting to know events challenges in the Deep dive in JavaScript for browsers, you need to sign up and subscribe first.
Muffin really liked the way you completed the assignment for the candy store. He is in a hurry to assign you a new task. This time you will need to write code for a handmade toy store. Here are the exact assignment specifications from the Boss.
Meow! You have been asked to program the user interaction.
The markup contains a popup (
popupclass).When the user clicks on the “Display details” button (
button-showclass), it should show the window on the page. Thepopup--openclass should appear for the popup.If the user clicks on the “X” in the popup body (with the
button-hideclass), then the window should disappear from the page. To do this, you need to delete thepopup--openclass from the popup.In addition, if the window is on the page and the user presses the ESC key, the popup should also disappear. The only action that should trigger the window to be closed is pressing this key. Pressing any other keys should not affect the position on the popup window.
And do not forget that the “Show details” button has been coded as a link. Don’t forget to disable this link from working.
I look forward to the finished project!
When you are ready, press Boss, here’s your program! to show what you have done to Muffin.
You’ve gone to a different page
Click inside the mini-browser to shift the focus onto this window.
To access the Getting to know events challenges in the Deep dive in JavaScript for browsers, you need to sign up and subscribe first.
Have you forgotten your password or lost access to your profile? Enter your email connected to your profile and we will send you a link to restore access.
Forgot to connect your email to the profile? Email us and we’ll help.