dynamicAnchorsDemo.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - Dynamic Anchors 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/dynamicAnchorsDemo.css">
  8. </head>
  9. <body onunload="jsPlumb.unload();" data-demo-id="dynamicAnchorsDemo" data-library="jquery">
  10. <div id="demo">
  11. <div class="window" id="window1"><strong>1</strong><br/><br/></div>
  12. <div class="window" id="window2"><strong>2</strong><br/><br/></div>
  13. <div class="window" id="window3"><strong>3</strong><br/><br/></div>
  14. <div class="window" id="window4"><strong>4</strong><br/><br/></div>
  15. <div class="window" id="window5"><strong>5</strong><br/><br/></div>
  16. <div class="window" id="window6"><strong>6</strong><br/><br/></div>
  17. </div>
  18. <div id="explanation">
  19. <p>This is a demonstration of anchors that change position dependent on the location of the other element in a connection. Each connection is decorated with a jsPlumb.Overlays.Diamond, located halfway along the connector.</p>
  20. <p>You can drag new connections between blue endpoints.</p>
  21. <p>This demonstration uses jsPlumb 1.3.7, jQuery 1.7.1 and jQuery UI 1.8.13.</p>
  22. </div>
  23. <!-- DEP -->
  24. <script type="text/javascript" src="../../js/lib/jquery-1.7.1-min.js"></script>
  25. <script type="text/javascript" src="../../js/lib/jquery-ui-1.8.13-min.js"></script>
  26. <!-- /DEP -->
  27. <!-- JS -->
  28. <!-- support lib for bezier stuff -->
  29. <script type="text/javascript" src="../../js/lib/jsBezier-0.3-min.js"></script>
  30. <!-- main jsplumb engine -->
  31. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-1.3.7-RC1.js"></script>
  32. <!-- connectors, endpoint and overlays -->
  33. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-defaults-1.3.7-RC1.js"></script>
  34. <!-- state machine connectors -->
  35. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-connectors-statemachine-1.3.7-RC1.js"></script>
  36. <!-- SVG renderer -->
  37. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-svg-1.3.7-RC1.js"></script>
  38. <!-- canvas renderer -->
  39. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-canvas-1.3.7-RC1.js"></script>
  40. <!-- vml renderer -->
  41. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-vml-1.3.7-RC1.js"></script>
  42. <!-- jquery jsPlumb adapter -->
  43. <script type="text/javascript" src="../../js/1.3.7/jquery.jsPlumb-1.3.7-RC1.js"></script>
  44. <!-- layouts -->
  45. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-layout-0.1-RC1.js"></script>
  46. <!-- /JS -->
  47. <!-- demo code -->
  48. <script type="text/javascript" src="../js/dynamicAnchorsDemo.js"></script>
  49. <!-- demo helper code -->
  50. <script type="text/javascript" src="../js/demo-list.js"></script>
  51. <script type="text/javascript" src="../js/demo-helper-jquery.js"></script>
  52. </body>
  53. </html>