dragAnimDemo.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - animated draggable connectors demonstration - jQuery</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="jquery">
  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, jQuery 1.7.1 and jQuery UI 1.8.13.</p>
  23. </div>
  24. <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script><script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js'></script>
  25. <script type='text/javascript' src='../js/jquery.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-jquery.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-jquery.js"></script>
  32. </body>
  33. </html>