Skip to content

Instantly share code, notes, and snippets.

@ericf
Created January 6, 2010 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericf/270043 to your computer and use it in GitHub Desktop.
Save ericf/270043 to your computer and use it in GitHub Desktop.
YUI({
modules: {
'gallery-overlay-modal': {
fullpath: 'http://yui.yahooapis.com/gallery-2009.12.08-22/build/gallery-overlay-modal/gallery-overlay-modal-min.js',
requires: ['overlay','plugin','event-focus'],
optional: [],
supersedes: []
}
}
}).use('gallery-overlay-modal', function(Y){
var alert = new Y.Overlay({
bodyContent : '<p>Alert Message</p>',
plugins : [{ fn: Y.Plugin.OverlayModal }]
}).render();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment