-
Notifications
You must be signed in to change notification settings - Fork 0
/
Design-dependencies.html
370 lines (284 loc) · 15.2 KB
/
Design-dependencies.html
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
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> Design dependencies </title>
<!-- Font awesome css library for the icon on the right click (oncontext) menu on the node : http://fontawesome.io/icons/ -->
<link rel="stylesheet" href="./fontawesome/web-fonts-with-css/css/fontawesome-all.min.css">
<script src="./fontawesome/svg-with-js/js/fontawesome-all.min.js"></script>
<!-- Jquery ui library used for the autocomplete function -->
<link rel="stylesheet" href="./jquery/jquery-ui.min.css">
<script src="./jquery/jquery-1.12.4.js"></script>
<script src="./jquery/jquery-ui.js"></script>
<!-- javascript library select2 for the tags -->
<link rel="stylesheet" href="./select2/select2.min.css">
<script src="./select2/select2.min.js"></script>
<!-- initial data -->
<script src="dist/standardmodel.js"></script>
<!-- visjs library => docs : http://visjs.org/docs/network/ -->
<script type="text/javascript" src="dist/vis.js"></script>
<link type="text/css" rel="stylesheet" href="dist/vis-network.min.css">
<script type="text/javascript" src="dist/vis-network.min.js"></script>
<!-- javascript library for the graph to identify keys parameters -->
<script src="./highcharts/highcharts.js"></script>
<!-- css and js files -->
<link type="text/css" rel="stylesheet" href="dist/css_general.css">
<link type="text/css" rel="stylesheet" href="dist/css_buttons_right.css">
<link type="text/css" rel="stylesheet" href="dist/css_left_pane.css">
<link type="text/css" rel="stylesheet" href="dist/css_right_pane.css">
<link type="text/css" rel="stylesheet" href="dist/css_pop_up.css">
<link type="text/css" rel="stylesheet" href="dist/css_oncontext_menu.css">
<script type="text/javascript" src="dist/layout.js"></script>
<script type="text/javascript" src="dist/event_onclick.js"></script>
<script type="text/javascript" src="dist/oncontext_menu_function.js"></script>
<script type="text/javascript" src="dist/propagation.js"></script>
<script type="text/javascript" src="dist/left_pane.js"></script>
<script type="text/javascript" src="dist/main_configuration.js"></script>
<!-- favicon -->
<link rel="icon" type="image/png" sizes="36x36" href="./images/favicon.png">
<!-- javascript library for hierarchical layout -->
<script src="./dagre-master/dist/dagre.js"></script>
</head>
<body onload="model_analysis(); layout_hierarchical()">
<!-- XXXXXXXXXXXXXXXXXXXX Left pane XXXXXXXXXXXXXXXXXXXXXX -->
<div id="optionsContainer" style="text-align: center;"></div>
<div id="mynetwork"></div>
<div id="column_left">
<img src="./images/logo.png" alt="" id="photos">
<p></p>
<p></p>
<p></p>
<div>
<label for="tags" id="soustitre"> Search : </label>
<input id="tags">
</div>
<p><div class="mode" id="soustitre" >Mode :</div>
<div class="modebuttons"><button class="custom-checkbox" type="radio" name="mode" id="editgraph" onclick="edit_graph()" >Edit graph</button> </div>
<div class="modebuttons"><button class="custom-checkbox" type="radio" name="mode" id="modelanalysis" onclick="model_analysis()" >Model analysis</button> </div>
<p><div id="soustitre">Layout :</div>
<div class="modebuttons"><button class="custom-checkbox" type="radio" name="layout" id="physical" onclick="layout_physical()" >Physical</button> </div>
<div class="modebuttons"><button class="custom-checkbox" type="radio" name="layout" id="hierarchical" onclick="layout_hierarchical()">Hierarchical</button> </div>
<div>
<p><span id="soustitre">Tags :</span>
<select id="tagSelectBox" name="tagsFilters[]" multiple="multiple" style="width:95%"></select>
</div>
<button class="custom-identifykp" onclick="LocalStorage(); window.open('Open-graph.html')"><span>Identify keys parameters</span></button>
<button class="custom-rst" onclick="reset_parameters()"><span>Reset</span></button>
</div>
<!-- XXXXXXXXXXXXXXXXXXXX Top buttons XXXXXXXXXXXXXXXXXXXXXX -->
<div>
<div id="load_click">
<input type="image" alt="image" title="Import data" src="./images/import_icon.png"/>
</div>
<input type="file" name="load" id="file" accept=".json">
<div id="save_changes" onclick="save_changes()">
<input type="image" title="Save changes" alt="image" src="./images/save_img.png"/>
</div>
<div id="new_graph" onclick="reset_dataset()">
<input type="image" title="New graph" alt="image" src="./images/new_graph.png"/>
</div>
<script type="text/javascript">
$("#load_click").click(function () {
// console.log("load")
$("input[type='file']").trigger('click');
});
document.getElementById('file').onchange = function(){
var file = this.files[0];
var reader = new FileReader();
reader.onload = function(progressEvent){
// Entire file
console.log(typeof this.result);
var obj=JSON.parse(this.result);
console.log(obj);
nodesDataset = new vis.DataSet(obj.nodes);
edgesDataset = new vis.DataSet(obj.edges);
check_ifPresent_list=[];
$('#tagSelectBox').empty();
redrawAll();
layout_hierarchical();
for(var i in allNodes){
console.log()
}
updateLeftPane();
//add_tag();
};
reader.readAsText(file);
};
</script>
</div>
<!-- XXXXXXXXXXXXXXXXXXXX Right popup pane XXXXXXXXXXXXXXXXXXXXXX -->
<div id="attributepane">
<div class="text">
<div title="Close" class="left-close returntext" onclick="closeAttributePane();">
<div class="c cf"><span id="soustitre">Return to the full network</span></div>
</div>
<div class="headertext">
<span id="soustitre">Information Pane</span>
</div>
<br>
<span id="soustitre">Label :</span>
<p id="affichageLabel" class="soustitre"></p>
<span id="soustitre">Tags :</span>
<p id="affichageTag" class="soustitre"></p>
<span id="soustitre">Description :</span>
<p id="affichageDescription" class="soustitre"></p>
<div class="headertext">
<span id="soustitre" >Influencing factor</span>
</div>
<p id="influencing" class="soustitre"></p>
<div class="headertext">
<span id="soustitre" >Influenced factor</span>
</div>
<p id="influenced" class="soustitre"></p>
</div>
</div>
<!-- XXXXXXXXXXXXXXXXXXXX Right click on node menu XXXXXXXXXXXXXXXXXXXXXX -->
<menu class="menu" id="data-action">
<div id="toHide">
<li class="menu-item submenu">
<button type="button" class="menu-btn" id="source"> <i class="fa fa-caret-up" style="font-size:20px;"></i> <span class="menu-text">Set as source </span> </button>
<menu class="menu">
<li class="menu-item">
<button type="button" class="menu-btn" id="source_increase"> <i class="fa fa-arrow-up"></i> <span class="menu-text">Increasing</span> </button>
</li>
<li class="menu-item">
<button type="button" class="menu-btn" id="source_decrease"> <i class="fa fa-arrow-down"></i> <span class="menu-text">Decreasing</span> </button>
</li>
</menu>
</li>
<li class="menu-item submenu">
<button type="button" class="menu-btn" id="target"> <i class="fa fa-star"></i><span class="menu-text">Set as target</span> </button>
<menu class="menu">
<li class="menu-item">
<button type="button" class="menu-btn" id="target_increase"> <i class="fa fa-arrow-up"></i> <span class="menu-text">Increasing</span> </button>
</li>
<li class="menu-item">
<button type="button" class="menu-btn" id="target_decrease"> <i class="fa fa-arrow-down"></i> <span class="menu-text">Decreasing</span> </button>
</li>
</menu>
</li>
<li class="menu-item submenu">
<button type="button" class="menu-btn" id="assume"> <i class="fa fa-check"></i><span class="menu-text">Assume value</span> </button>
<menu class="menu">
<li class="menu-item">
<button type="button" class="menu-btn" id="assume_increase"> <i class="fa fa-arrow-up"></i> <span class="menu-text">Increasing</span> </button>
</li>
<li class="menu-item">
<button type="button" class="menu-btn" id="assume_decrease"> <i class="fa fa-arrow-down"></i> <span class="menu-text">Decreasing</span> </button>
</li>
</menu>
</li>
<li class="menu-item">
<button type="button" class="menu-btn" id="unset"> <i class="fa fa-eraser"></i> <span class="menu-text">Unset</span> </button>
</li>
</div>
<!-- <li class="menu-separator"></li> -->
<div id="toHide2">
<li class="menu-item">
<button type="button" class="menu-btn" id="edit"> <i class="fa fa-edit"></i> <span class="menu-text" id="editProperties">Edit</span> </button>
</li>
<li class="menu-item">
<button type="button" class="menu-btn" id="remove"> <i class="fa fa-trash"></i> <span class="menu-text">Delete</span> </button>
</li>
</div>
</menu>
<!-- XXXXXXXXXXXXXXXXXXXX Call the configuration function XXXXXXXXXXXXXXXXXXXXXX -->
<script type="text/javascript">
redrawAll();
</script>
<!-- XXXXXXXXXXXXXXXXXXXX AddNode/EditNode popup window XXXXXXXXXXXXXXXXXXXXXX -->
<div id="network-popUp">
<span id="titre">Set node properties</span> <br><br>
<span id="soustitre">Label </span><input type="text" style="white-space:nowrap;" id="node-label" value="new value" ><br><br>
<span id="soustitre">Tag </span><select id="tag-input" name="tagsFilters[]" multiple="multiple" style="width:60%"></select>
<div class="row">
<div id='col-md-12' >
<div class="toolbar">
<a href="#" data-command='undo' title='undo'><i class='fa fa-undo'></i></a>
<a href="#" data-command='redo' title='redo'><i class='fa fa-repeat'></i></a>
<div class="fore-wrapper"><i class='fa fa-font' style='color:#C96;' title='font color'></i>
<div class="fore-palette"></div>
</div>
<div class="back-wrapper"><i class='fa fa-font' style='background:#C96;' title='highlight color'></i>
<div class="back-palette"></div>
</div>
<a href="#" data-command='bold' title='bold'><i class='fa fa-bold'></i></a>
<a href="#" data-command='italic' title='italic'><i class='fa fa-italic'></i></a>
<a href="#" data-command='underline' title="underline"><i class='fa fa-underline'></i></a>
<a href="#" data-command='strikeThrough' title='strikethrough'><i class='fa fa-strikethrough'></i></a>
<a href="#" data-command='justifyLeft' title='justify left'><i class='fa fa-align-left'></i></a>
<a href="#" data-command='justifyCenter' title='justify center'><i class='fa fa-align-center'></i></a>
<a href="#" data-command='justifyFull' title='justify'><i class='fa fa-align-justify'></i></a>
<a href="#" data-command='indent' title='indent'><i class='fa fa-indent'></i></a>
<a href="#" data-command='outdent' title='outdent'><i class='fa fa-outdent'></i></a>
<a href="#" data-command='insertUnorderedList' title='insert unordered list'><i class='fa fa-list-ul'></i></a>
<a href="#" data-command='insertOrderedList' title='insert ordered list'><i class='fa fa-list-ol'></i></a>
<a href="#" data-command='h2' title='H2'>H2</a>
<a href="#" data-command='h4' title='H4'>H4</a>
<a href="#" data-command='h6' title='H6'>H6</a>
<a href="#" data-command='p' title='paragraph'>P</a>
<a href="#" data-command='createlink'><i class='fa fa-link'></i></a>
<a href="#" data-command='unlink'><i class='fa fa-unlink'></i></a>
</div>
</br>
<div contenteditable="true" id='node-description' ></div>
</div>
</div>
<script type="text/javascript" >
var colorPalette = ['FF0000', 'FFC000', 'FFFF00', '92D050', '00B050', '00B0F0', '0070C0', '7030A0', 'FFFFFF', '000000'];
var forePalette = $('.fore-palette');
var backPalette = $('.back-palette');
for (var i = 0; i < colorPalette.length; i++) {
forePalette.append('<a href="#" data-command="forecolor" data-value="' + '#' + colorPalette[i] + '" style="background-color:' + '#' + colorPalette[i] + ';" class="palette-item"></a>');
backPalette.append('<a href="#" data-command="backcolor" data-value="' + '#' + colorPalette[i] + '" style="background-color:' + '#' + colorPalette[i] + ';" class="palette-item"></a>');
}
$('.toolbar a').click(function(e) {
var command = $(this).data('command');
if (command == 'h1' || command == 'h2' || command == 'h3' || command == 'h4' || command == 'h5' || command == 'h6' ||command == 'p') {
document.execCommand('formatBlock', false, command);
}
if (command == 'forecolor' || command == 'backcolor') {
document.execCommand($(this).data('command'), false, $(this).data('value'));
}
if (command == 'createlink' || command == 'insertimage') {
url = prompt('Enter the link here: ', 'http:\/\/');
document.execCommand($(this).data('command'), false, url);
} else document.execCommand($(this).data('command'), false, null);
});
</script>
</br>
<input class="button_popup" type="button" value="Save" id="saveButton"/>
<input class="button_popup" type="button" value="Cancel" id="cancelButton"/>
</div>
<!-- XXXXXXXXXXXXXXXXXXXX AddEdge/EditEdge popup window XXXXXXXXXXXXXXXXXXXXXX -->
<div id=network-popUp_edge>
<span id="titre">Set edge properties</span> <br>
<br>
<label class="checkbox_edge"><input type="checkbox" name="label" class="boxplus"/> <span class="soustitre"> Same direction </span><span class="checkmark"></span></label><br>
<label class="checkbox_edge"><input type="checkbox" name="label" class="boxminus"/> <span class="soustitre"> Opposite direction </span><span class="checkmark"></span></label><br>
<br>
<input class="button_popup" type="button" value="Save" id="saveButton_edge" />
<input class="button_popup" type="button" value="Cancel" id="cancelButton_edge" />
</div>
<!-- XXXXXXXXXXXXXXXXXXXX Question mark button and popup window XXXXXXXXXXXXXXXXXXXXXX -->
<div id="questionMark-popUp">
<img src="./images/fancybox_sprite.png" alt="" id="button_close" onclick="close_questionmark_popup()">
<span id="titre">What usage scenario do you want to be guided through?</span> <br>
<ul>
<li><span id="usage_1" onclick="show_consequences()" class="usages">Show consequences of an increase/decrease of a source parameter</span> <br></li>
<br>
<li><span id="usage_2" onclick="show_compliance()" class="usages">Show compliance of an increase/decrease of a source parameter with predefined target parameters</span> <br></li>
<br>
<li><span id="usage_3" onclick="graph_navigate()" class="usages">Navigate through the causal relationships between parameters</span> <br></li>
<br>
<li><span id="usage_4" onclick="LocalStorage(); window.open('Open-graph.html')" class="usages">Identify keys parameters</span> <br></li>
</ul>
</div>
<div id="questionMark">
<input type="image" alt="image" src="./images/questionMark.png" onclick="questionMark_click()"/>
</div>
<div id="text_scenario_css">
<p id="text_scenario" class="usage_scenario"></p>
</div>
</body>
</html>