Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created October 8, 2009 20:37
Show Gist options
  • Select an option

  • Save lsmith/205397 to your computer and use it in GitHub Desktop.

Select an option

Save lsmith/205397 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>YUI3 Sandbox</title>
</head>
<body>
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>
<script>
// common cfg object containing all custom YUI modules
// needed by all maple modules on the page
var YUICfg = {
modules: {
"yui2-yahoo": {
fullpath: "http://l.yimg.com/us.js.yimg.com/lib/yui/2.8.0r4/buil
d/yahoo/yahoo-min.js"
},
"yui2-dom": {
fullpath: "http://l.yimg.com/us.js.yimg.com/lib/yui/2.8.0r4/buil
d/dom/dom-min.js",
requires: ["yui2-yahoo"]
},
"yui2-event": {
fullpath: "http://l.yimg.com/us.js.yimg.com/lib/yui/2.8.0r4/buil
d/event/event-min.js",
requires: ["yui2-yahoo"]
},
"yahoo-dom-event": {
fullpath: "http://l.yimg.com/us.js.yimg.com/lib/yui/2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js",
supersedes: ["yui2-yahoo", "yui2-dom", "yui2-event"],
rollup: 1
}
},
allowRollup: true
};
YUI(YUICfg).use('yui2-dom','yui2-event', function (Y) {
Y.log('loaded');
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment