-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·25 lines (25 loc) · 891 Bytes
/
index.html
File metadata and controls
executable file
·25 lines (25 loc) · 891 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JsFlowChart Demo</title>
<script src="JsFlowChart.js"></script>
</head>
<body>
<div id="flowchart"></div>
</body>
<script>
var flowcharts = new Flowcharts({
FirstNode: ["1"],
width:"800px",
height:"600px",
data: [
{data: "测试测试", type: "FilletRect", flag: "1", NextNode: ["2"]},
{data: "测试测试测试测试测试", type: "Rect", flag: "2", NextNode: ["3","4"], Tip: {data: "测试", type: "FilletRect"}},
{data: "测试测试测试", flag: "4", type: "FilletRect", NextNode: ["3"], Tip: {data: "测试"}},
{data: "测试测试测试测试", type: "Rect", flag: "3", Tip: {data: "测试测试", type: "FilletRect"}}
]
});
flowcharts.AddToDom(document.querySelector("#flowchart"));
</script>
</html>