makeTargetDemo.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. <!-- DEP -->
  36. <script type="text/javascript" src="../../js/lib/jquery-1.7.1-min.js"></script>
  37. <script type="text/javascript" src="../../js/lib/jquery-ui-1.8.13-min.js"></script>
  38. <!-- /DEP -->
  39. <!-- JS -->
  40. <!-- support lib for bezier stuff -->
  41. <script type="text/javascript" src="../../js/lib/jsBezier-0.3-min.js"></script>
  42. <!-- main jsplumb engine -->
  43. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-1.3.7-RC1.js"></script>
  44. <!-- connectors, endpoint and overlays -->
  45. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-defaults-1.3.7-RC1.js"></script>
  46. <!-- SVG renderer -->
  47. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-svg-1.3.7-RC1.js"></script>
  48. <!-- canvas renderer -->
  49. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-canvas-1.3.7-RC1.js"></script>
  50. <!-- vml renderer -->
  51. <script type="text/javascript" src="../../js/1.3.7/jsPlumb-renderers-vml-1.3.7-RC1.js"></script>
  52. <!-- jquery jsPlumb adapter -->
  53. <script type="text/javascript" src="../../js/1.3.7/jquery.jsPlumb-1.3.7-RC1.js"></script>
  54. <!-- /JS -->
  55. <!-- demo code -->
  56. <script type="text/javascript" src="../js/1.3.7/makeTargetDemo.js"></script>
  57. <!-- demo helper code -->
  58. <script type="text/javascript" src="../js/1.3.7/demo-helper-jquery.js"></script>
  59. </body>
  60. </html>