dragAnimDemo.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - animated draggable connectors demonstration - YUI3</title>
  5. <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  6. <link rel="stylesheet" href="../css/jsPlumbDemo.css">
  7. <link rel="stylesheet" href="../css/dragAnimDemo.css">
  8. </head>
  9. <body onunload="jsPlumb.unload();" data-demo-id="dragAnimDemo" data-library="yui3">
  10. <div id="demo">
  11. <div class="bigdot" id="bd1"></div>
  12. <div class="bigdot" id="bd2"></div>
  13. <div class="bigdot" id="bd3"></div>
  14. <div class="bigdot" id="bd4"></div>
  15. </div>
  16. <div id="explanation">
  17. <p>This is a demonstration of jsPlumb's 'animate' method.</p>
  18. <p>Drag orange dots to create connections.</p>
  19. <p>Click on or near blue dots to make them move in that direction.</p>
  20. <p><a id="add" href="#" class="cmd">add a disc</a></p>
  21. <p><a id="clear" href="#" class="cmd">remove all connections</a></p>
  22. <p>This demo uses jsPlumb 1.3.7 and YUI 3.3.0..</p>
  23. </div>
  24. <script type="text/javascript" src="http://yui.yahooapis.com/3.3.0/build/simpleyui/simpleyui-min.js"></script>
  25. <script type='text/javascript' src='../js/yui.jsPlumb-1.3.7-all-min.js'></script>
  26. <!-- demo code -->
  27. <script type="text/javascript" src="../js/dragAnimDemo.js"></script>
  28. <script type="text/javascript" src="../js/dragAnimDemo-yui3.js"></script>
  29. <!-- demo helper code -->
  30. <script type="text/javascript" src="../js/demo-list.js"></script>
  31. <script type="text/javascript" src="../js/demo-helper-yui3.js"></script>
  32. </body>
  33. </html>