Exercises
The challenge exercises may require the use of the official jQuery documentation at http://api.jquery.com/.
- Create new plugin methods called
.slideFadeIn()and.slideFadeOut(), combining the opacity animations of.fadeIn()and.fadeOut()with the height animations of.slideDown()and.slideUp(). - Extend the customizability of the
.shadow()method so that the z-index of the cloned copies can be specified by the plugin user. - Add a new submethod called
isOpento the tooltip widget. This submethod should returntrueif the tooltip is currently displayed andfalseotherwise.
- Add code that listens for the
tooltipopenevent that our widget fires and logs a message to the console. - Challenge: Provide an alternative
contentoption for the tooltip widget that fetches the content of the page that an anchor'shrefpoints to via Ajax, and displays that content as the tooltip text. - Challenge: Provide a new
effectoption for the tooltip widget that, if specified, applies the named jQuery UI effect (such...