dynamicAnchorsDemo.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <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>
  24. <script type='text/javascript' src='../js/jquery.jsPlumb-1.3.7-all-min.js'></script>
  25. <!-- demo code -->
  26. <script type="text/javascript" src="../js/dynamicAnchorsDemo.js"></script>
  27. <!-- demo helper code -->
  28. <script type="text/javascript" src="../js/demo-list.js"></script>
  29. <script type="text/javascript" src="../js/demo-helper-jquery.js"></script>
  30. </body>
  31. </html>