Skip to content

Commit bd86ce0

Browse files
committed
aggiornata libreria jquery
aggiunti 2 nuovi parametir di configurazione
1 parent cf2a024 commit bd86ce0

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

drawLocal.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<title>FlowgorithmJS offline</title>
55
<meta charset="utf-8">
6-
<script src="lib/jquery-3.3.1.min.js"></script>
7-
<script src="flowgorithm.js?014"></script>
6+
<script src="lib/jquery-3.5.0.min.js"></script>
7+
<script src="flowgorithm.js?016"></script>
88
<script>
99
var config = {};
1010
var xml;
@@ -18,6 +18,13 @@
1818
config.aT = parseInt($("#o2b").val());
1919
config.itMode = parseInt($("#o3").val());
2020
config.viewDesc = ($("input[name='o4']:checked").val()==='1') ? true : false;
21+
config.labelTrue = $("#o5").val();
22+
config.labelFalse = $("#o6").val();
23+
/*$('#f').on("flowgorithmjs:preload",function(){
24+
alert('preload');
25+
}).on("flowgorithmjs:postload",function(){
26+
alert('postload');
27+
});*/
2128
drawFlowchartFromSource(xml,'#f',config);
2229
$('#choose').removeClass('big');
2330
$('body').addClass('view');
@@ -58,14 +65,14 @@ <h1 class="noprint">Flowgorithm JS Viewer</h1>
5865
<div id="chooseOption" class="noprint">
5966
<div class="row">
6067
Grouping consecutive input:
61-
<label for="o1">Yes<input type="radio" value="1" name="o1" id="o1" checked></label>
62-
<label for="o1b">No<input type="radio" value="0" name="o1" id="o1b"></label>
68+
<label for="o1">Yes<input type="radio" value="1" name="o1" id="o1"></label>
69+
<label for="o1b">No<input type="radio" value="0" name="o1" id="o1b" checked></label>
6370
</div>
6471
<div class="row">
6572
<label for="o2">Arrow length: <input type="number" min="5" max="100" value="12" style="width:50px" name="groupInput" id="o2"></label>
6673
</div>
6774
<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>
75+
<label for="o2b">Arrow tip size: <input type="number" min="5" max="100" value="7" style="width:50px" name="groupInput" id="o2b"></label>
6976
</div>
7077
<div class="row">
7178
<label for="o3">Style of pre-conditional iterations:</label>
@@ -79,6 +86,12 @@ <h1 class="noprint">Flowgorithm JS Viewer</h1>
7986
<label for="o4">Yes<input type="radio" value="1" name="o4" id="o4" checked></label>
8087
<label for="o4b">No<input type="radio" value="0" name="o4" id="o4b"></label>
8188
</div>
89+
<div class="row">
90+
<label for="o2b">Label True: <input type="text" value="True" style="width:50px" id="o5"></label>
91+
</div>
92+
<div class="row">
93+
<label for="o2b">Label False: <input type="text" value="False" style="width:50px" id="o6"></label>
94+
</div>
8295
</div>
8396
<div id="f"></div>
8497
</body>

0 commit comments

Comments
 (0)