Skip to content

Commit 1c58176

Browse files
committed
added new example
1 parent 1f60793 commit 1c58176

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

example/loadFile.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>flowchart.js · Playground</title>
6+
<style type="text/css">
7+
.end-element { background-color : #FFCCFF; }
8+
</style>
9+
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
10+
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
11+
<script src="../bin/flowchart-latest.js"></script>
12+
<script>
13+
$(document).ready(function() {
14+
$.ajax({
15+
url : "test.txt",
16+
dataType : "text",
17+
success : function(data) {
18+
var chart = flowchart.parse(data);
19+
chart.drawSVG('canvas');
20+
}
21+
});
22+
});
23+
</script>
24+
</head>
25+
<body>
26+
<div id="canvas"></div>
27+
</body>
28+
</html>

example/test.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
st=>start: Start:>http://www.google.com[blank]
2+
e=>end:>http://www.google.com
3+
op1=>operation: My Ooooperation
4+
sub1=>subroutine: My Subroutine
5+
cond=>condition: Yes
6+
or No?:>http://www.google.com
7+
io=>inputoutput: catch something...
8+
9+
st->op1->cond
10+
cond(yes)->io->e
11+
cond(no)->sub1(right)->op1

site

Submodule site updated from f02eefe to 23a57b0

0 commit comments

Comments
 (0)