2521N/A<!
DOCTYPE HTML PUBLIC "-//
W3C//
DTD HTML 4.01//
EN" "
http://
www.w3.org/
TR/
html4/
strict.dtd">
4668N/A <
title>YUI: DragDrop</
title>
2521N/A <
style type=
"text/css" media=
"screen">
2892N/A<
input type=
"button" value=
"Add <?php echo($
count);
?> More Items" id=
"add"><
br>
2892N/A echo(
' <li class="item list-item1".(($
k %
2) ?
' disabled" :
'").
'">".$
k.
'</li>".
"\n");
2521N/A echo(
' <li class="item list-item2"><strong>[|]</strong> ".$
k.
'</li>".
"\n");
2521N/A<
script type=
"text/javascript" src=
"../../build/yui/yui-debug.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/ddm-base.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/ddm.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/ddm-drop.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/drag.js?bust=<?php echo(
mktime());
?>"></
script>
3998N/A<
script type=
"text/javascript" src=
"../dd/js/drop.js?bust=<?php echo(
mktime());
?>"></
script>
3998N/A<
script type=
"text/javascript" src=
"../dd/js/proxy.js?bust=<?php echo(
mktime());
?>"></
script>
2663N/A<
script type=
"text/javascript" src=
"../dd/js/constrain.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/dd-plugin.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/dd-drop-plugin.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"../dd/js/delegate.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript" src=
"js/sortable.js?bust=<?php echo(
mktime());
?>"></
script>
2521N/A<
script type=
"text/javascript">
2521N/AYUI(yConfig).use('dd-ddm', 'dd-drag', 'dd-proxy', 'dd-drop', 'dd-delegate', 'dd-constrain', 'dd-drop-plugin', 'event-mouseenter', 'sortable', 'yui-throttle', function(Y) {
2521N/A //Y.DD.DDM._debugShim = true;
2521N/A sel.plug(Y.Plugin.DDConstrained, {
2521N/A //console.log('sel: ', sel.get('id'));
3998N/A var sel2 = new Y.Sortable({
2521N/A sel2.plug(Y.Plugin.DDConstrained, {
2521N/A //console.log('sel2: ', sel2.get('id'));
2521N/A console.log(Y.DD.DDM.getDelegate(Y.one('#three')));
2521N/A console.log(Y.DD.DDM.getDelegate('#one'));
2521N/A console.log(Y.DD.DDM.getDelegate('#two'));
2892N/A console.log(Y.Sortable.getSortable(Y.one('#three')));
2521N/A console.log(Y.Sortable.getSortable('#one'));
2521N/A console.log(Y.Sortable.getSortable('#two'));
2521N/A Y.one('#add').on('click', function(e) {
2521N/A var node, one = Y.one('#one'), two = Y.one('#two'), three = Y.one('#three');
2521N/A for (var i = 1; i <
count + 1;
i++) {
2521N/A node =
Y.Node.create('<li class=
"item list-item1">(' + inc + ':1) ' + i + '</
li>');
2521N/A two.append(node.cloneNode(true).set('innerHTML', '<
strong>[|]</
strong> (' + inc + ':2) ' + i).addClass('list-item2').removeClass('list-item1'));
2521N/A //three.append(node.cloneNode(true).set('innerHTML', '(' + inc + ':3) ' + i));