forked from adrai/flowchart.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
424 lines (381 loc) · 23.5 KB
/
index.html
File metadata and controls
424 lines (381 loc) · 23.5 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="https://fonts.googleapis.com/css?family=Architects+Daughter" rel="stylesheet" type="text/css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" />
<title>flowchart.js</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next/19.4.1/i18next.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/locize/i18next-locize-backend/i18nextLocizeBackend.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-i18next/1.2.1/jquery-i18next.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/i18next-browser-languagedetector/4.0.2/i18nextBrowserLanguageDetector.min.js"></script>
</head>
<body>
<header>
<h1 data-i18n="title" data-i18n-options='{"defaultValue": "flowchart.js"}'></h1>
<p data-i18n="description" data-i18n-options='{"defaultValue": "Draws simple SVG flow chart diagrams from textual representation of the diagram"}'></p>
<a href="https://github.com/chetabahana/flowchart">
<img class="gh-forkme" src="https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" alt="Fork me on GitHub">
</a>
<ul>
<li><a href="https://raw.githubusercontent.com/adrai/flowchart.js/master/release/flowchart.js"><span data-i18n="file" data-i18n-options='{"defaultValue": "File "}'></span><strong data-i18n="download" data-i18n-options='{"defaultValue": "Download"}'></strong></a></li>
<li><a href="https://raw.githubusercontent.com/adrai/flowchart.js/master/release/flowchart.min.js"><span data-i18n="file" data-i18n-options='{"defaultValue": "File "}'></span><strong data-i18n="download-min" data-i18n-options='{"defaultValue": "minified version"}'></strong></a></li>
<li><a href="https://github.com/adrai/flowchart.js"><span data-i18n="view" data-i18n-options='{"defaultValue": "View On "}'></span><strong data-i18n="github" data-i18n-options='{"defaultValue": "GitHub"}'></strong></a></li>
</ul>
</header>
<div id="main">
<section id="demo1">
<table align="center" class="inner">
<tr>
<td style="vertical-align: top;">
<h3 data-i18n="demo1" data-i18n-options='{"defaultValue": "Demo 1. Try editing me below"}'></h3>
<div class="editor-wrapper">
<div class="editor editor1">st=>start: Start:>http://www.google.com[blank]
e=>end:>http://www.google.com
op1=>operation: My Operation
sub1=>subroutine: My Subroutine
cond=>condition: Yes
or No?:>http://www.google.com
io=>inputoutput: catch something...
para=>parallel: parallel tasks
st->op1->cond
cond(yes)->io->e
cond(no)->para
para(path1, bottom)->sub1(right)->op1
para(path2, top)->op1</div>
</div>
<!-- Theme:
<select class="theme">
<option value="simple">Simple</option>
<option value="hand" selected>Hand drawn</option>
</select> -->
</td>
<td class="diagram diagram1">This should be a diagram! If you do not see it you need Javascript enabled</td>
</tr>
</table>
</section>
<br />
<hr />
<br />
<b data-i18n="conditions" data-i18n-options='{"defaultValue": "Conditions can also be redirected like cond(yes, bottom) or cond(yes, right)"}'></b>
<br />
<b data-i18n="conditions_2" data-i18n-options='{"defaultValue": "... and the other symbols too... like sub1(right)"}'></b>
<div class="inner">
<section id="usage">
<h3 data-i18n="usage" data-i18n-options='{"defaultValue": "Usage"}'></h3>
<p><span data-i18n="depend" data-i18n-options='{"defaultValue": "flowchart.js depends on "}'></span><a href="http://www.raphaeljs.com/">Raphaël</a><br/><b data-i18n="to_use" data-i18n-options='{"defaultValue": "To use include the following:"}'></b>
</p>
<pre><script src="<a href="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.3.0/raphael.min.js">raphael-min.js</a>"><
<script src="<a href="flowchart-latest.js">flowchart-latest.js</a>"></script>
</pre>
<p data-i18n="parse" data-i18n-options='{"defaultValue": "You can parse the text:"}'></p>
<pre>
<div id="diagram"></div>
<script>
var diagram = flowchart.parse("the code definition");
diagram.drawSVG('diagram');
// you can also try to pass options:
diagram.drawSVG('diagram', {
'x': 0,
'y': 0,
'line-width': 3,
'line-length': 50,
'text-margin': 10,
'font-size': 14,
'font-color': 'black',
'line-color': 'black',
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no',
'arrow-end': 'block',
'scale': 1,
// style symbol types
'symbols': {
'start': {
'font-color': 'red',
'element-color': 'green',
'fill': 'yellow'
},
'end':{
'font-color': 'red',
'element-color': 'green',
'class': 'end-element'
}
},
// even flowstate support ;-)
'flowstate' : {
'past' : { 'fill' : '#CCCCCC', 'font-size' : 12},
'current' : {'fill' : 'yellow', 'font-color' : 'red', 'font-weight' : 'bold'},
'future' : { 'fill' : '#58C4A3', 'font-weight' : 'bold'},
'request' : { 'fill' : 'blue'},
'invalid': {'fill' : '#444444'},
'approved' : { 'fill' : '#58C4A3', 'font-size' : 12, 'yes-text' : 'DITERIMA', 'no-text' : 'DITOLAK' },
'rejected' : { 'fill' : '#C45879', 'font-size' : 12, 'yes-text' : 'LULUS', 'no-text' : 'TIDAK LULUS' }
}
});
</script>
</pre>
<section id="demo2">
<table align="center" class="inner">
<tr>
<td style="vertical-align: top;">
<h3 data-i18n="demo2" data-i18n-options='{"defaultValue": "Demo 2 with color coding (flowstate). Try editing me below"}'></h3>
<div class="editor-wrapper">
<div class="editor editor2">st=>start: Get|past
e=>end: Set|past
op1=>operation: Input|future
op2=>operation: Output|future
sub1=>subroutine: Let Query|current
sub2=>subroutine: Let Result|current
uji1=>condition: Uji Query|rejected
uji2=>condition: Uji Result|approved
io1=>inputoutput: Fix Query|invalid
io2=>parallel: Fix Result|invalid
st->op1(right)->sub1
sub1(right)->uji1(yes, right)->sub2
uji1(no)->io1(left)->sub1
sub2->uji2(yes, right)->op2
uji2(no)->io2(path1, left)->io1
io2(path2, right)->sub2
op2->e</div>
<!-- Theme:
<select class="theme">
<option value="simple">Simple</option>
<option value="hand" selected>Hand drawn</option>
</select> -->
</td>
<td class="diagram diagram2">This should be a diagram! If you do not see it you need Javascript enabled</td>
</tr>
</table>
</section>
<br />
<hr />
<br />
<section id="demo3">
<table align="center" class="inner">
<tr>
<td style="vertical-align: top;">
<h3 data-i18n="[html]demo3" data-i18n-options='{"defaultValue": "Demo 3 tribute to {{- link}}", "link": "<a href=\"https://locize.com\">locize</a>"}'></h3>
<div class="editor-wrapper">
<div class="editor editor3" style="height: 480px;">st=>start: Improve your
l10n process!
e=>end: Continue to have fun!:>https://youtu.be/YQryHo1iHb8[blank]
op1=>operation: Go to locize.com:>https://locize.com[blank]
sub1=>subroutine: Read the awesomeness
cond(align-next=no)=>condition: Interested to
getting started?
io=>inputoutput: Register:>https://www.locize.app/register[blank]
sub2=>subroutine: Read about improving
your localization workflow
or another source:>https://medium.com/@adrai/8-signs-you-should-improve-your-localization-process-3dc075d53998[blank]
op2=>operation: Login:>https://www.locize.app/login[blank]
cond2=>condition: valid password?
cond3=>condition: reset password?
op3=>operation: send email
sub3=>subroutine: Create a demo project
sub4=>subroutine: Start your real project
io2=>inputoutput: Subscribe
st->op1->sub1->cond
cond(yes)->io->op2->cond2
cond2(no)->cond3
cond3(no,bottom)->op2
cond3(yes)->op3
op3(right)->op2
cond2(yes)->sub3
sub3->sub4->io2->e
cond(no)->sub2(right)->op1
st@>op1({"stroke":"Red"})@>sub1({"stroke":"Red"})@>cond({"stroke":"Red"})@>io({"stroke":"Red"})@>op2({"stroke":"Red"})@>cond2({"stroke":"Red"})@>sub3({"stroke":"Red"})@>sub4({"stroke":"Red"})@>io2({"stroke":"Red"})@>e({"stroke":"Red","stroke-width":6,"arrow-end":"classic-wide-long"})</div>
</div>
<!-- Theme:
<select class="theme">
<option value="simple">Simple</option>
<option value="hand" selected>Hand drawn</option>
</select> -->
</td>
<td class="diagram diagram3">This should be a diagram! If you do not see it you need Javascript enabled</td>
</tr>
</table>
</section>
<br />
<b data-i18n="emphasize" data-i18n-options='{"defaultValue": "If you want to emphasize a specific path in your flowchart, you can additionally define it like shown above."}'></b>
<br />
<b data-i18n="conditions_3" data-i18n-options='{"defaultValue": "Use cond(align-next=no) to disable vertical align of symbols below as shown above."}'></b>
<br />
<hr />
<br />
<section id="demo4">
<table align="center" class="inner">
<tr>
<td style="vertical-align: top;">
<h3 data-i18n="[html]demo4" data-i18n-options='{"defaultValue": "Demo 4 tribute to {{- link}}", "link": "<a href=\"https://localistars.com\">localistars</a>"}'></h3>
<div class="editor-wrapper">
<div class="editor editor4">st=>start: Need something to be translated!:>https://www.localistars.com[blank]
e=>end: Be happy!:>https://youtu.be/e6Ede8hdU8c
cond=>condition: Are you a client
or a translator?
subc=>subroutine: Why should you choose a localistar?:>https://www.localistars.com/for-clients.html
subt=>subroutine: Why should you become a localistar?:>https://www.localistars.com/for-translators.html
op=>operation: Check out how it works!:>https://www.localistars.com/how-it-works.html
io=>inputoutput: Work together with your partner!:>https://www.localistars.app/login
st->cond
cond(no@client)->subc->op->io->e
cond(yes@translator)->subt->op->io->e</div>
</div>
<!-- Theme:
<select class="theme">
<option value="simple">Simple</option>
<option value="hand" selected>Hand drawn</option>
</select> -->
</td>
<td class="diagram diagram4">This should be a diagram! If you do not see it you need Javascript enabled</td>
</tr>
</table>
</section>
<br />
<b data-i18n="annotations" data-i18n-options='{"defaultValue": "If you want to have custom branch names, you can additionally define it like shown above."}'></b>
<footer>
</br>
<hr />
<div class="inner">
by <a href="https://github.com/adrai">Adriano Raiano</a> - <a href="https://twitter.com/adrirai">@adrirai</a>
</br>
</br>
<i data-i18n="internationalized" data-i18n-options='{"defaultValue": "internationalized with "}'></i><a href="http://i18next.com"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW8AAACJCAMAAADUiEkNAAAAq1BMVEX///8AlogATUAAkIEAk4QAjn+539zr9vUAkoTx+vluu7Lk9PIppJgkn5LB3dkAQDCm1c+8x8TT7etIbmWy3NeDxb4hopag080ASDo5qZ1bgHgAmYwAOyqZzsjg8vD1+Phds6rN6eZKraN4vrZlioOdranN2deOysRktaxEpZnq8O8TV0ve5uWmubWAnZdQenExZlzF09GIpJ4ANSOUrKcqYVZykYsGVUlHsaZLSlobAAANf0lEQVR4nO1da3viKhA2QpSoaVpXa2zUxKRb7cXudk+75/z/X3ZyIwyExMDay7a8z7MfFhMY3sDMMAO01zMwMDAwMDAwMDAwMDAwMD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VveghPf9q3EElrMt8KiH7s85HRIZnI7p74yPe4vqhsaMJbIKC2/lZB6xjdhM3npj4tyJmYKMiaTmvVQHc82THhm5lOHvpX105CowC8wcxtbAZuYg0b6eTcU0Qbr142KAVzjaJjt9RyTDZLz7FXzJ7T3CXix+BUdsGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgZvj/8BhUriEBcADR4AAAAASUVORK5CYII=" style="max-width: 80px; position: relative; top: 10px;" alt="http://i18next.com"></a> | <i data-i18n="localized" data-i18n-options='{"defaultValue": "localized by "}'></i><a href="https://locize.com"><img src="https://locize.com/img/locize_color.svg" style="max-width: 80px; position: relative; top: 7px;" alt="http://locize.com"></a> | <a href="?lng=en">en</a> <a href="?lng=de">de</a>
<a href="https://www.locize.com"><img src="https://img.shields.io/badge/dynamic/json.svg?style=plastic&color=2096F3&label=locize&query=%24.versions%5B%27latest%27%5D.translatedPercentage&url=https://api.locize.app/badgedata/8166472e-7ac6-44e5-a53f-96a6ca165e2b&suffix=%+translated&link=https://www.locize.com" style="position: absolute; right: 0px; bottom: 0px;" alt="http://locize.com"/></a>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<!-- Needed for the text editor -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="underscore-min.js"></script>
<script src="raphael-min.js"></script>
<script src="flowchart-latest.js"></script>
<script src="svginnerhtml.min.js"></script>
<script type="text/javascript">
function setup_editor(div, nr) {
var editor_div = div.find(".editor" + nr);
var diagram_div = div.find(".diagram" + nr);
var theme_div = div.find(".theme" + nr);
// Setup the editor diagram
var editor = ace.edit(editor_div.get(0));
editor.setTheme("ace/theme/crimson_editor");
editor.getSession().setMode("ace/mode/asciidoc");
editor.getSession().on('change', _.debounce(on_change, 100));
theme_div.change(on_change);
on_change();
function on_change() {
try {
var diagram = flowchart.parse(editor.getValue());
editor.getSession().setAnnotations([]);
// Clear out old diagram
diagram_div.html('');
// Draw
if (nr === 1 || nr === 3 || nr === 4) {
diagram.drawSVG(diagram_div.get(0));
} else if (nr === 2) {
diagram.drawSVG(diagram_div.get(0), {
"x": -10,
"y": -5,
"line-width": 3,
"line-length": 50,
"text-margin": 10,
"font-size": 12,
"font-color": "black",
"line-color": "black",
"element-color": "black",
"fill": "white",
"yes-text": "yes",
"no-text": "no",
"arrow-end": "block",
"scale": 1,
"symbols": {
"start": {
"font-color": "red",
"element-color": "green",
"class": "start-element"
},
"end":{
"font-color": "red",
"element-color": "green",
"class": "end-element"
}
},
"flowstate" : {
"past" : { "fill" : "#CCCCCC", "font-size" : 12},
"current" : {"fill" : "yellow", "font-weight" : "bold"},
"future" : { "fill" : "#58C4A3", "font-weight" : "bold"},
"invalid": {"fill" : "#444444", "font-color" : "white", "font-weight" : "bold"},
"approved" : { "fill" : "#C45879", "font-weight" : "bold", "yes-text" : "DITERIMA", "no-text" : "DITOLAK" },
"rejected" : { "fill" : "#C45879", "font-weight" : "bold", "yes-text" : "LULUS", "no-text" : "TIDAK LULUS" }
}
}
);
}
} catch(err) {
var annotation = {
type: "error", // also warning and information
column: 0,
row: 0,
text: err.message
};
if (err && err.loc) {
annotation.row = err.loc.first_line - 1;
annotation.column = err.loc.first_column;
}
editor.getSession().setAnnotations([annotation]);
throw err;
}
}
}
$(document).ready(function() {
// Example diagrams
// Setup all the editors
setup_editor($('#demo1'), 1);
setup_editor($('#demo2'), 2);
setup_editor($('#demo3'), 3);
setup_editor($('#demo4'), 4);
});
$(document).ready(function() {
var i18nextOptions = {
fallbackLng: 'en',
whitelist: ['en', 'de'],
backend: {
referenceLng: 'en',
projectId: '8166472e-7ac6-44e5-a53f-96a6ca165e2b'
}
};
window.i18next
.use(window.i18nextLocizeBackend)
.use(window.i18nextBrowserLanguageDetector)
.init(i18nextOptions, function (err) {
window.jqueryI18next.init(window.i18next, $, {
tName: 't', // --> appends $.t = i18next.t
i18nName: 'i18n', // --> appends $.i18n = i18next
handleName: 'localize', // --> appends $(selector).localize(opts);
selectorAttr: 'data-i18n', // selector for translating elements
targetAttr: 'i18n-target', // data-() attribute to grab target element to translate (if diffrent then itself)
optionsAttr: 'i18n-options', // data-() attribute that contains options, will load/set if useOptionsAttr = true
useOptionsAttr: true, // see optionsAttr
parseDefaultValueFromContent: true // parses default values from content ele.val or ele.text
});
$('body').localize();
});
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-42950201-1', 'auto');
ga('send', 'pageview');
ga('set', 'anonymizeIp', true);
</script>
</body>
</html>