dynamicAnchorsDemo.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - Dynamic Anchors Demonstration - MooTools</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="mootools">
  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, MooTools 1.3.2 and MooTools More 1.3.2.1.</p>
  22. </div>
  23. <script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
  24. <script type="text/javascript" src="../js/mootools-1.3.2.1-more.js"></script>
  25. <script type='text/javascript' src='../js/mootools.jsPlumb-1.3.7-all-min.js'></script>
  26. <!-- demo code -->
  27. <script type="text/javascript" src="../js/dynamicAnchorsDemo.js"></script>
  28. <!-- demo helper code -->
  29. <script type="text/javascript" src="../js/demo-list.js"></script>
  30. <script type="text/javascript" src="../js/demo-helper-mootools.js"></script>
  31. </body>
  32. </html>