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 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
You know the right answer?
Create a web page dynamically show content based on user choice Using conditions and comparisons to...
Questions
question
Mathematics, 05.03.2021 22:00
question
Mathematics, 05.03.2021 22:00
question
Arts, 05.03.2021 22:00
Questions on the website: 13722367