Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#!/usr/bin/env node
var sys = require('sys'),
YUI = require('yui3').YUI;
YUI().use('node',function(Y){
Y.one('body').append('<div id="ala">ala ma kota</div>');
var ala = Y.one('#ala');
Y.log(ala);
document = Y.Browser.document;
ala = document.getElementById('ala');
Y.log(ala);
var el = document.createElement('div');
document.body.appendChild(el);
el.id = 'ola';
var ola = Y.one('#ola');
Y.log(ola);
ola.set('innerHTML','ola ma psa');
sys.puts(document.outerHTML);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.