forked from EmielH/jsplumb-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetting-started.html
54 lines (46 loc) · 1.05 KB
/
getting-started.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<html>
<head>
<script type="text/javascript" src="js/jquery-2.1.1.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.11.1.js"></script>
<script type="text/javascript" src="js/jquery.jsPlumb-1.6.3.js"></script>
<style type="text/css">
.item {
border: 1px solid black;
background-color: #ddddff;
width: 100px;
height: 100px;
}
#state1 {
position: absolute;
left: 100px;
top: 100px;
}
#state2 {
position: absolute;
left: 250px;
top: 100px;
}
#state3 {
position: absolute;
left: 100px;
top: 250px;
}
</style>
<title>Getting started with jsPlumb</title>
</head>
<body>
<div id="state1" class="item"></div>
<div id="state2" class="item"></div>
<div id="state3" class="item"></div>
<script type="text/javascript">
jsPlumb.ready(function() {
jsPlumb.makeSource($('.item'), {
connector: 'StateMachine'
});
jsPlumb.makeTarget($('.item'), {
anchor: 'Continuous'
});
});
</script>
</body>
</html>