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
isOpen
to the tooltip widget. This submethod should returntrue
if the tooltip is currently displayed andfalse
otherwise.
- Add code that listens for the
tooltipopen
event that our widget fires and logs a message to the console. - Challenge: Provide an alternative
content
option for the tooltip widget that fetches the content of the page that an anchor'shref
points to via Ajax, and displays that content as the tooltip text. - Challenge: Provide a new
effect
option for the tooltip widget that, if specified, applies the named jQuery UI effect (such...