1 Star 0 Fork 0

kontais/flowchart.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
<!doctype html>
<html lang="en">
<head>
<title>Demo page</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
</head>
<body>
<div id="chart">
st=>start: Start|past:>http://www.google.com[blank]
e=>end: End:>http://www.google.com
op1=>operation: My Operation|past:$myFunction
op2=>operation: Stuff|current
sub1=>subroutine: My Subroutine|invalid
cond=>condition: Yes
or No?|approved:>http://www.google.com
c2=>condition: Good idea|rejected
io=>inputoutput: catch something...|request
para=>parallel: parallel tasks
st->op1(right)->cond
cond(yes, right)->c2
cond(no)->para
c2(true)->io->e
c2(false)->e
para(path1, bottom)->sub1(left)->op1
para(path2, right)->op2->e
</div>
<script>
function myFunction(event, node) {
console.log("You just clicked this node:", node);
}
</script>
<script src="/node_modules/jquery/dist/jquery.js"></script>
<script src="/node_modules/raphael/raphael.js"></script>
<script src="/release/flowchart.js"></script>
<script>
$('#chart').flowChart();
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kontais/flowchart.js.git
git@gitee.com:kontais/flowchart.js.git
kontais
flowchart.js
flowchart.js
master

搜索帮助