dynamicAnchorsDemo.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - Dynamic Anchors 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/dynamicAnchorsDemo.css">
  8. </head>
  9. <body onunload="jsPlumb.unload();" data-demo-id="dynamicAnchorsDemo" data-library="yui3">
  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 and YUI 3.3.0.</p>
  22. </div>
  23. <script type="text/javascript" src="http://yui.yahooapis.com/3.3.0/build/simpleyui/simpleyui-min.js"></script>
  24. <script type='text/javascript' src='../js/yui.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-yui3.js"></script>
  30. </body>
  31. </html>