subject

Create a web page dynamically show content based on user choice Using conditions and comparisons to take a user choice and dynamically load content on the web page. This can be whatever content and choices your want. An example would be to let the user choose between 3 foods, then render an image and description about that food after they have chosen one.

Requirements:

Use an external CSS & JS file, no internal or inline styles & scripts
Please comment your JS to break down your understanding of what is happening
Use the Window Prompt method (Links to an external site.) to offer the user at least 3 choices
Make sure you normalizes their inputs by converting their string text to lowercase using the string method of the same name
Make sure you create a default choice if the users input does not match any you have defined
Create a JS conditional statement that the compares the user inputs to your choices, depending on the condition render different content on the web page. You can use an if/else statement or switch statement it is up to you
HINT the CSS display property (Links to an external site.) can make this very simple
Web page content
Provide either an image or video for each content choice
Create a description of the content
Create a heading for the content that says "You Chose (input value)"
Style your page
Font, color, spacing and layout should be intentional and not default for all other elements on the page
Use classes for styling
As always no CSS frameworks all custom creations from your original self

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:00
The word β€˜play’ comes with many different interpretations and a variety of definitions. discuss some of the various meanings tied to the word play. why is the concept of play thought to be an important addition to the workplace? do some (brief) research online and give an example of how play in the workplace is being done right.
Answers: 2
question
Computers and Technology, 22.06.2019 15:00
Which of the following has not been attributed at least in part to social media a. drug addiction b. depression c. kidnapping d. murder
Answers: 2
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
You know the right answer?
Create a web page dynamically show content based on user choice Using conditions and comparisons to...
Questions
question
History, 04.12.2019 09:31
question
English, 04.12.2019 09:31