makeTargetDemo.html 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>jsPlumb 1.3.7 - connection targets demonstration</title>
  5. <meta http-equiv="content-type" content="text/html;charset=utf-8" />
  6. <link rel="stylesheet" href="/mp.css">
  7. <link rel="stylesheet" href="../css/jsPlumbDemo.css">
  8. <link rel="stylesheet" href="../css/makeTargetDemo.css">
  9. </head>
  10. <body>
  11. <div class="menu"><a href="../../doc/1.3.7/usage.html" class="mplink">view documentation</a>&nbsp;|&nbsp;<a href="../../apidocs">view api docs</a>&nbsp;|&nbsp;<a href="mailto:simon.porritt@gmail.com" class="mplink">contact me</a>&nbsp;|&nbsp;<a href="http://code.google.com/p/jsplumb/" class="mplink">jsPlumb on Google code</a></div>
  12. <div id="window1" class="window">
  13. This entire div is a connection target. When you drop a connection on this
  14. div, a new Endpoint is created and the connection is attached to it. The new
  15. Endpoint has a dynamic anchor with locations at each of the four corners of the div.
  16. </div>
  17. <div id="window2" class="window">
  18. This div has three source endpoints from which you can drag an unlimited
  19. number of connections.
  20. </div>
  21. <div id="window3" class="window">
  22. This div is a connection target. When you drop a connection on it, a new Endpoint is created and the connection is attached to it. The new
  23. Endpoint is located exactly where on the div you let go of the mouse button.
  24. </div>
  25. <!-- div id="window3" class="window">
  26. This blue section in this div is a connection target. When you drop a connection on there, a new Endpoint is created and the connection is attached to it. The new
  27. Endpoint is located exactly where on the div you let go of the mouse button.
  28. <div id="window3Target"></div>
  29. </div-->
  30. <div id="window4" class="window">
  31. This entire div is a connection target. When you drop a connection on this
  32. div, a new Endpoint is created and the connection is attached to it. The new
  33. Endpoint is snapped to a 2x3 grid.
  34. </div>
  35. <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>
  36. <script type='text/javascript' src='../js/jquery.jsPlumb-1.3.7-all-min.js'></script>
  37. <!-- demo code -->
  38. <script type="text/javascript" src="../js/1.3.7/makeTargetDemo.js"></script>
  39. <!-- demo helper code -->
  40. <script type="text/javascript" src="../js/1.3.7/demo-helper-jquery.js"></script>
  41. </body>
  42. </html>