Skip to content

Commit 99761d6

Browse files
committed
Improved examples
1 parent c25b76b commit 99761d6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

drawLocal.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
xml = reader.result;
1616
config.groupInput = ($("input[name='o1']:checked").val()==='1') ? true : false;
1717
config.aH = parseInt($("#o2").val());
18+
config.aT = parseInt($("#o2b").val());
1819
config.itMode = parseInt($("#o3").val());
1920
config.viewDesc = ($("input[name='o4']:checked").val()==='1') ? true : false;
2021
drawFlowchartFromSource(xml,'#f',config);
@@ -61,14 +62,16 @@ <h1 class="noprint">Flowgorithm JS Viewer</h1>
6162
<label for="o1b">No<input type="radio" value="0" name="o1" id="o1b"></label>
6263
</div>
6364
<div class="row">
64-
<label for="o2">Distance between shapes: <input type="number" min="1" max="100" value="12" style="width:50px" name="groupInput" id="o2"></label>
65+
<label for="o2">Arrow length: <input type="number" min="5" max="100" value="12" style="width:50px" name="groupInput" id="o2"></label>
66+
</div>
67+
<div class="row">
68+
<label for="o2b">Arrow tip size: <input type="number" min="5" max="100" value="10" style="width:50px" name="groupInput" id="o2b"></label>
6569
</div>
6670
<div class="row">
6771
<label for="o3">Style of pre-conditional iterations:</label>
6872
<select name="o3" id="o3">
6973
<option value="2" selected>Flowgorithm style</option>
7074
<option value="3">Variant 1</option>
71-
<option value="1">Variant 2</option>
7275
</select>
7376
</div>
7477
<div class="row">

drawWeb.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
$(function(){
1515
drawFlowchartFromUrl(url1,'#f1',config);
1616
drawFlowchartFromUrl(url2,'#f2',config);
17+
//$('#xml1').load(url1);
1718
});
1819
</script>
1920
<style>
@@ -23,7 +24,13 @@
2324
</head>
2425
<body>
2526
<h1>FlowgorithmJS - Example of use</h1>
26-
<div id="f1" class="f"></div>
27-
<div id="f2" class="f"></div>
27+
<div class="f">
28+
<div id="f1"></div>
29+
<div id="xml1"></div>
30+
</div>
31+
<div class="f">
32+
<div id="f2"></div>
33+
<div id="xml2"></div>
34+
</div>
2835
</body>
2936
</html>

0 commit comments

Comments
 (0)