amhnews/yui3 — comment on commit 8d1b319266cfadd16e94cc674d9fd785dd3c9a06
File:  line 0
By amhnews:

// Put the YUI seed file on your page.

YUI().use('node', function (Y) {
// Access DOM nodes.
var oneElementById = Y.one('#foo'),
oneElementByName = Y.one('body'),
allElementsByClass = Y.all('.bar');

// Create DOM nodes.
var contentNode = Y.Node.create('

'),
listNode = Y.Node.create('

'),
footerNode = Y.Node.create('

');

contentNode.setContent('

Node makes it easy to add content.

');
listNode.insert('
Buy milk
');
footerNode.prepend('

Footer Content

');

// Manipulate DOM nodes.
Y.all('.important').addClass('highlight');

Y.one('#close-button').on('click', function () {
contentNode.hide();
});
});
YUI().use('transition', function (Y) {
// Fade away.
Y.one('#fademe').transition({
duration: 1, // seconds
opacity : 0
});

// Shrink to nothing.
Y.one('#shrinkme').transition({
duration: 1, // seconds
width : 0,
height : 0
});
});
YUI().use('node-load', function (Y) {
// Replace the contents of the #content node with content.html.
Y.one('#content').load('content.html');
});