sortable-float-source-js.mustache revision 978333287299d3e6ed7cc4c8b60d14d082736e35
YUI().use('sortable', function(Y) {
var sortable = new Y.Sortable({
container: '#demo',
nodes: 'em',
opacity: '.1'
});
// Incrementally change the color of items. This is purely visual for the example.
// It has no effect on the sort.
var color = 0;
Y.all('#demo em').each(function (v, k){
v.setStyle('backgroundColor', 'rgb(' + 100 + ',' + 20 + ',' + (color += 25) + ')' );
});
});