Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Create the Pets.html HTML page that implements the simple web stores display using JavaScript. The page must contain a drop-down box for selecting cats, dogs,

Create the Pets.html HTML page that implements the simple web stores display using JavaScript.

The page must contain a drop-down box for selecting cats, dogs, or birds.

When a pet category is selected from the drop-down box, the page should update to display all of the pets in that selected category. Display an image, name, birthdate, age, description, and availability for each pet.

Include an adopt button to allow the user to adopt a pet in the list. When the button is clicked, the pets availability should change to adopted.

Javacript:

The information used in the display should come from JavaScript objects stored in an array inside your page.

Use JavaScript to implement the interactive behavior of the page.

You will need at least 10 pets for each category (dogs, cats, birds) including images for each pet, which should be stored in an images folder.

Create an array to store JavaScript objects that represent a pet. The JavaScript pet object will contain the name of the pet, birthdate, age, description, availability (adopted or needs a home), and the URL for the pets image file.

The selection of a category from the drop-down box should update the page to display the list of pets in that category along with their information.

Implement the ability to allow the user to adopt one or more pets. The pets availability should change after its adopted. Also, you need to keep track of all the pets the user adopted during the single use of your page.

Display a message on the page that shows all the pets that were adopted by the user during that session.

Extra credit opportunity: Implement the ability to remember all the pets that a user adopted across multiple sessions.

Display the pets they adopted and the information for each pet the next time they visit the page.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students explore these related Databases questions