Open the HTML and JavaScript files provided as start up files (index.html and navigation.js).  Then, run the application and notice that when you click on a link in the sidebar, the page is scrolled so the information for the speaker associated with that link is displayed. In other words, this application works even if JavaScript is disabled. In the JavaScript file, add an event handler for the ready event method. Then, within the function for that event handler, add jQuery code that hides the heading and article for all but the first speaker. Add an event handler for the click event of the elements in the sidebar. Then, within the function for that event handler, add jQuery code that hides all the speaker information, gets the value of the href attribute of the link that was clicked, and then uses that value to display the heading and article for the speaker associated with that lin

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section3.2: Visual Overview: Page Layout Grids
Problem 6QC
icon
Related questions
Question
  1. Open the HTML and JavaScript files provided as start up files (index.html and navigation.js).  Then, run the application and notice that when you click on a link in the sidebar, the page is scrolled so the information for the speaker associated with that link is displayed. In other words, this application works even if JavaScript is disabled.
  2. In the JavaScript file, add an event handler for the ready event method. Then, within the function for that event handler, add jQuery code that hides the heading and article for all but the first speaker.
  3. Add an event handler for the click event of the <a> elements in the sidebar. Then, within the function for that event handler, add jQuery code that hides all the speaker information, gets the value of the href attribute of the link that was clicked, and then uses that value to display the heading and article for the speaker associated with that link.
2011-2012 Speakers
Fossil Threads in the Web of Life
October 19, 2011
Jeffrey Toobin
February 15, 2012
Scott Sampson
What's 75 million years old and brand
spanking new? A teenage Utahceratops!
Come to the Saroyan, armed with your
best dinosaur roar, when Scott Sampson,
November 16, 2011
Andrew Ross Sorkin
Research Curator at the Utah Museum of
January 18, 2012
Amy chua
Natural History, steps to the podium.
Sampson's research has focused on the
ecology and evolution of late Cretaceous
dinosaurs and he has conducted
February 15, 2012
Scott Sampson
fieldwork in a number of countries in
Aica
Scott Sampson is a Canadian-born
paleontologist who received his Ph.D. in
zoology from the University of Toronto. His doctoral work focused on two new
species of ceratopsids, or horned dinosaurs, from the Late Cretaceous of Montana,
as well as the growth and tunction of certopsid horns and frills.
Folowing graduation in 1993, Sampson spent a year working at the American
Museum of Natual History in New York City, followed by five years as assistant
professor of anatomy at the New York College of Osteopathic Medicine on Long
Island. He arived at the University of Utah accepting a dual position as assistant
professor in the Department of Geology and Geophysics and curator of vertebrate
paleontology at the Utah Museum of Natural History. His research interests largely
revolve around the phylogenetics, tunctional morphology, and evolution of Late
Cretaceous dinosaurs.
In addition to his museum and laboratory-based studies, Sampson has conducted
paleontological work in Zimbabwe, South Arica, and Madagascar, as well as the
United States and Canada. He was also the on-the-air host for the Discovery
Channe's Dinosaur Planet and recently completed a book, Dinosaur Odyssey: Fossil
Threads in the Web of Life, which is one of the most comprehensive surveys of
dinosaurs and their worlds to date
Back to top
Transcribed Image Text:2011-2012 Speakers Fossil Threads in the Web of Life October 19, 2011 Jeffrey Toobin February 15, 2012 Scott Sampson What's 75 million years old and brand spanking new? A teenage Utahceratops! Come to the Saroyan, armed with your best dinosaur roar, when Scott Sampson, November 16, 2011 Andrew Ross Sorkin Research Curator at the Utah Museum of January 18, 2012 Amy chua Natural History, steps to the podium. Sampson's research has focused on the ecology and evolution of late Cretaceous dinosaurs and he has conducted February 15, 2012 Scott Sampson fieldwork in a number of countries in Aica Scott Sampson is a Canadian-born paleontologist who received his Ph.D. in zoology from the University of Toronto. His doctoral work focused on two new species of ceratopsids, or horned dinosaurs, from the Late Cretaceous of Montana, as well as the growth and tunction of certopsid horns and frills. Folowing graduation in 1993, Sampson spent a year working at the American Museum of Natual History in New York City, followed by five years as assistant professor of anatomy at the New York College of Osteopathic Medicine on Long Island. He arived at the University of Utah accepting a dual position as assistant professor in the Department of Geology and Geophysics and curator of vertebrate paleontology at the Utah Museum of Natural History. His research interests largely revolve around the phylogenetics, tunctional morphology, and evolution of Late Cretaceous dinosaurs. In addition to his museum and laboratory-based studies, Sampson has conducted paleontological work in Zimbabwe, South Arica, and Madagascar, as well as the United States and Canada. He was also the on-the-air host for the Discovery Channe's Dinosaur Planet and recently completed a book, Dinosaur Odyssey: Fossil Threads in the Web of Life, which is one of the most comprehensive surveys of dinosaurs and their worlds to date Back to top
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
JQuery and Javascript
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning