Exercises
The challenge exercise may require the use of the official jQuery documentation athttp://api.jquery.com/:
- When the page loads, pull the body content of
exercises-content.htmlinto the content area of the page. - Rather than displaying the whole document at once, create tooltips for the letters in the left-hand column by loading just the appropriate letter's content from
exercises-content.htmlwhen the user's mouse is over the letter. - Add error handling for this page load, displaying the error message in the content area. Test this error handling code by changing the script to request
does-not-exist.htmlrather thanexercises-content.html. - Here's a challenge. When the page loads, send a JSONP request to GitHub and retrieve a list of repositories for a user. Insert the name and URL of each repository into the content area of the page. The URL to retrieve the jQuery project's repositories is https://api.github.com/users/jquery/repos.