Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use JavaScript Dom. 1. Make each link direct the user to its respective website (see id) 2 .Disable the Pluto Planet of Residency option. (Pluto

use JavaScript Dom.

1. Make each link direct the user to its respective website (see id)

2 .Disable the Pluto Planet of Residency option. (Pluto isnt a planet!!)

3. Define a function alienText() which shows the hidden element displaying an alien message. When any planet other than Earth is selected, execute this function.

4. When the submit button is pressed, get the values from all of the input into a new row in the table below. Make sure no input is empty, check that first and last name are at least two letters each. Validate for valid phone number and email structure. This should continue to work for multiple entries and rows.

5.Create a function openDetails() which opens the details element. Invoke this function when the details summary is moused over. The details should be hidden when the mouse is removed from the summary.

6.Create a function that concatenates the inner HTML of all of the span elements and prints the results to the console.

7.Create a function that displays the current time on earth in the span with id earth_time. Invoke this function when Earth time button is clicked.

8.Create two other functions which calculates and displays the time passed on Mars and Alpha Centauri b if the onset of January 1st, 1970 occured at the same time. Invoke the respective functions when their time buttons are clicked. An orbital period for Mars is 687 Earth days. Using an external api to get the orbital period for Alpha Centauri b. (try http://www.astropical.space/astrodb/apiref.php) Provide an implementation for getting this value using both AJAX and the fetch API.

9.Three seconds after a user clicks on the Intergalactic Directory heading, the background color should change to a random color. Make sure this color is never black so we can still read our black text! (there are other dark colors it could change to where we also couldnt see the text but its enough to just accomodate for a black background)

10.When inputs with id n1 and n2 have valid numerical input, perform the operation specified in the select. Display the result in the element with id result.

11 .Define function walkTheDom(node, func)

This function should traverse every node in the DOM.

Use recursion. On each node, calle func(node).

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

Step: 3

blur-text-image

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago