123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <!doctype html>
- <html>
- <head>
- <title>jsPlumb 1.3.7 - State Machine Demonstration - jQuery</title>
- <link rel="stylesheet" href="../css/jsPlumbDemo.css">
- <link rel="stylesheet" href="../css/stateMachineDemo.css">
- </head>
- <body onunload="jsPlumb.unload()" data-demo-id="stateMachineDemo" data-library="jquery">
- <div style="position:absolute">
- <div id="demo">
- <div class="w" id="opened">begin<div class="ep"></div></div>
- <div class="w" id="olga">phone interview 1<div class="ep"></div></div>
- <div class="w" id="nicola">phone interview 2<div class="ep"></div></div>
- <div class="w" id="inperson">in person<div class="ep"></div></div>
- <div class="w" id="rejected">rejected<div class="ep"></div></div>
- </div>
- </div>
- <div id="explanation">
- <p>This is a demonstration of the StateMachine connector type, and of 'Continuous' anchors, which are anchors whose location is calculated based
- on the location of all other connected elements.
- </p>
- <p>These behave in a similar way to 'Dynamic' anchors, which have been in jsPlumb for a while now,
- but Continuous anchors do not require a list of possible locations, and they guarantee that every Connection has its own anchor.
- </p>
- <p>Click and drag new Connections from the red div in each element; the main elements in the UI are configured to be Connection targets. You can
- drag from one of these divs onto its parent element to create a 'loopback' connection.</p>
- <p>Click on a Connection to delete it.</p>
- <p>makeSource is used in a special way in this demonstration: it is provided with a 'parent' parameter, which tells jsPlumb which element should
- be the eventual source of a newly created connection. So although you drag from the red divs, the connection sources are always configured to be the
- main divs in the UI.</p>
- <p>This demonstration uses jsPlumb 1.3.7, jQuery 1.7.1 and jQuery UI 1.8.13.</p>
- </div>
-
- <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>
-
- <script type='text/javascript' src='../js/jquery.jsPlumb-1.3.7-all-min.js'></script>
- <!-- demo code -->
- <script type="text/javascript" src="../js/stateMachineDemo.js"></script>
- <script type="text/javascript" src="../js/stateMachineDemo-jquery.js"></script>
-
- <script type="text/javascript" src="../js/demo-list.js"></script>
- <script type="text/javascript" src="../js/demo-helper-jquery.js"></script>
- </body>
- </html>
|