Assignment: One last update to what you’ve been doing for the museum. They would
ID: 3708107 • Letter: A
Question
Assignment: One last update to what you’ve been doing for the museum. They would like visitors to know how recently the page has been updated and to provide a message about the grand opening of this Computer Science Wing on January 1, 2018.
Task 1: Make a copy of the page you updated in Assignment 2. Create a container (div) near the top of the page. Set the id attribute of the container to a meaningful name, such as grandOpeaningAnnouncement or openingDate.
Task 2: Write a JavaScript function that calculates the number of HOURS until the exhibit opens. Attach a message explaining how many hours until the opening. Attach the message to the innerHTML of the container you created in Task 1.
Task 3: Create a second container (div) near the bottom of the page.
Task 4: Write a JavaScript function that attaches the last modified date to the innerHTML of this container. Task 5: Use the onLoad event handler to run both JavaScript functions.
Validate the page and fix any errors. Save a screenshot of the validation page. ..
1 2 V Computer Science History link rel-"stylesheet" type"text/css" href-"externalstyle.css"> 4 6 Names in Computer Science History 10 V 12 13 V 14 ? 15 16 V 17 Grace Hopper src="images/Grace . png" alt-"Grace Hopper Portrait" heights" 1188" 18 19 p>Grace Hopper was a woman of numerous talents. She is most honored for being a women computer scientists. Her most popular involvement was the creation of the first computer language compiler. She is one of the first programmers of the Harvard Mark I computer. Her hard work and skills has left a mark in the technology and gave her the title of First Lady of Software. 21 22 V 23 24 Hopper earned a PhD in math from Yale Her invention of a compiler led to the development of the programming language COBOL li>Born in 1906 and died in 1992 25 26 27 28 29 ? Ada Lovelace 31 32 33 ? 34 src="images/ADA . png" alt-"Ada Lovelace portrait art" height="1039" 35Explanation / Answer
If you have any doubts, please give me comment...
I updated code just static data... if you need timer to count time, give comment... bcz I have small doubt, you given date expired.... If we count, we will get negative countdown....
please give me comment....
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset = "UTF-8" />
<title>Computer Science and Engineering</title>
</head>
<body onload="opening();last_modified();">
<header>
Names in computer science history</header>
</body>
<script type="text/javascript">
function opening(){
var body_cont = document.body.innerHTML;
document.body.innerHTML ="<div id='grandOpeaningAnnouncement'>Exhibition open 8 hours</div>"+body_cont;
}
function last_modified(){
var body_cont = document.body.innerHTML;
document.body.innerHTML += "<div>last modified on 2018-04-15 08:00:00 AM</div>";
}
</script>
</html>
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.