forked from cruzeneko/Boole-Web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
solucion.html
367 lines (331 loc) · 16.1 KB
/
solucion.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Boole Web</title>
<meta name="description" content="Boole Web">
<meta name="author" content="Weblab Deusto">
<link rel="stylesheet" href="css/styles.css">
<link rel="localization" hreflang="es" href="lang/es.json" type="application/vnd.oftn.l10n+json"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
<script src="js/modal-system.js"></script>
<script src="js/data-logic.js"></script>
<script src="js/tab-logic.js"></script>
<script src="js/solucion.js"></script>
<script src="js/logidrom_b.js"></script>
<script src="js/file-upload.js"></script>
<script src="js/internationalization.js"></script>
<script src="js/onload.js"></script>
<script src="js/control-facade.js"></script>
<script src="js/controller.js"></script>
<script src="js/onclick-handlers.js"></script>
<script src="js/parsers.js"></script>
<link rel="stylesheet" href="node_modules/quill/dist/quill.snow.css">
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.css">
<script src="bower_components/jspdf/dist/jspdf.min.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/jspdf-autotable/dist/jspdf.plugin.autotable.js"></script>
<script src="node_modules/quill/dist/quill.js"></script>
<script src="js/i18n.js"></script>
<script type="text/javascript" src="bower_components/canvg/rgbcolor.js"></script>
<script type="text/javascript" src="bower_components/canvg/StackBlur.js"></script>
<script type="text/javascript" src="bower_components/canvg/canvg.js"></script>
<script type="text/x-mathjax-config">MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]] } });</script>
<script src="bower_components/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="stylesheet" type="text/css" href="bower_components/slick-carousel/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="bower_components/slick-carousel/slick/slick-theme.css"/>
<script src='./karnaughmap.js'></script>
<script src='./qmc.js'></script>
</head>
<body>
<ul class="tab">
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab('Intro')" id="tabStart">Start</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab('Statement')" id="tabStatement">Statement and Configuration</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab('Table')" id="tabTable">Truth table</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab('VK')" id="tabVK">Karnaugh Maps</a></li>
<li><a href="javascript:void(0)" class="tablinks" onclick="openTab('Circuit')" id="tabCircuit">Circuit</a></li>
</ul>
<div id="Intro" tab="tabStart" class="tabcontent">
<div class="container">
<h3 id="hdgStart">Welcome to Boole-Web!</h3>
<p id="startPart1">
Boole-Web is a simple digital electronics and design educational tool developed at the University of Deusto
that will (hopefully) replace the outdated Boole-Deusto tool.
</p>
<p id="startPart2">
We hope that you are productive using this tool and ask you to report any issues you may find to [email protected],
</p><br><br><br><br><br><br><br>
<p>
Hint: try dropping a BDW file here!
</p><br><br><br><br><br><br><br>
<p>
P.S.: Si te ha gustado este software y quieres trabajar en algo similar el plazo de solicitud de Becas de Colaboracion esta
abierto. Mas informacion en:
</p>
<a href="http://www.deusto.es/cs/Satellite/deusto/es/universidad-deusto/admision-y-becas-1/becas-y-ayudas-4">
http://www.deusto.es/cs/Satellite/deusto/es/universidad-deusto/admision-y-becas-1/becas-y-ayudas-4
</a>
<div style="position: absolute; bottom: 10%; right: 10%;">
</div>
<button type="button" class="btn btn-primary pull-rignt" id="btnIntroNext" onclick="btnIntroNextHandler();" style="float: right">Next</button>
</div>
</div>
<div id="Statement" tab="tabStatement" class="tabcontent">
<div class="container">
<h3 id="hdgStatement">Statement</h3>
<div class="panel panel-primary">
<div class="panel-heading" id="subHdgStatement">Fill in the problem statement and the inputs and outputs</div>
<div class="panel-body">
<div class="col">
<div class="row-sm-6">
<div class="row form-group">
<label id="titlePrompt" class="col-sm-3 control-label">Title</label>
<div class="col-sm-4">
<input type="text" class="form-control" id="tbTitle" placeholder="Titulo"/>
</div>
</div>
</div>
<div id="editor" class="row-sm-6">
<p id="statementPrompt">You can write your statement here</p>
<p><br></p>
</div>
<script>
var quill = new Quill('#editor', {theme: 'snow'});
</script>
<div class="row-sm-6 panel panel-default">
<div class="panel-heading">Entradas y salidas</div>
<div class="panel-body">
<div class="row">
<div class="col-sm-6">
<p id="hdgInputCol">Inputs</p>
<div class="input_fields_wrap" id="add_input_wrap">
<button class="add_field_button" id="add_input">Add input</button>
<div><input type="text" class="form-control inputform" name="mytext[]" idx="0" id="input0"></div>
</div>
</div>
<div class="col-sm-6">
<p id="hdgOutputCol">Outputs</p>
<div class="input_fields_wrap" id="add_output_wrap">
<button class="add_field_button" id="add_output">Add output</button>
<div><input type="text" class="form-control outputform" name="mytext[]" idx="0" id="output0"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row" style="float:right">
<div class="col-sm-6">
<label class="btn btn-default btn-primary btn-file" style="float:right;">
<span id="btnUploadFile">Upload</span>
<input type="file" id="fileUploadInput" style="display: none;">
</label>
</div>
<div class="col-sm-6">
<button type="button" class="btn btn-primary pull-rignt" id="btnStatementNext" onclick="btnStatementNextHandler();" style="float: right">Next</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="Table" tab="tabTable" class="tabcontent">
<div class="container">
<h3 id="hdgTable">Truth Table</h3>
<!--PANEL FROM HERE-->
<div class="panel panel-primary">
<div id="subHdgTable" class="panel-heading">Fill in the truth table from the statement</div>
<div class="panel-body">
<div class="panel-container">
<div id="panel-enunciado-capturado" class="panel-left">
<p>Placeholder</p>
</div>
<div id="statementTableSplitter" class="splitter">
</div>
<div class="panel-right">
<div class="container-fluid">
<div class="col">
<div class="row-sm-3">
<div id="truthtable-panel">
</div>
</div>
<div class="row-sm-6"><p> </p></div>
<div class="row-sm-3">
<div class="text-center">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<button id="btnFill0" onclick="tableFillAllZeroesHandler()" type="button" class="btn btn-primary">0</button>
</div>
<div class="btn-group">
<button id="btnFill1" onclick="tableFillAllOnesHandler()" type="button" class="btn btn-primary">1</button>
</div>
<div class="btn-group">
<button id="btnFillX" onclick="tableFillAllIndeterminationsHandler()" type="button" class="btn btn-primary">X</button>
</div>
</div>
<div class="btn-group btn-group-justified">
<div class="btn-group">
<button id="btnClear" onclick="tableClearAllHandler()" type="button" class="btn btn-primary">Clear table</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="bower_components/slick-carousel/slick/slick.min.js"></script>
<script src="js/jquery-resizable.js"></script>
<script>
$("#panel-enunciado-capturado").resizable({
handleSelector: ".splitter",
resizeHeight: false
});
</script>
<div class="panel panel-default">
<div id="hdgFormulae" class="panel-heading">
<span id="displayedFormulaSelectPrompt">Select a formula to display:</span>
<div class="btn-group">
<button type="button" id="btnSony" class="btn btn-primary dropdown-toggle" data-toggle=dropdown>
<span id="displayedFormulaName">Select a formula to display</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="javascript:void(0);" id="liSumOfMinterms" onclick="displaySumOfMintermsBtnHandler();">Sum of minterms</a></li>
<li><a href="javascript:void(0);" id="liSumOfMaxterms" onclick="displaySumOfMaxtermsBtnHandler();">Product of maxterms</a></li>
<li><a href="javascript:void(0);" id="liSumForm" onclick="displaySumFormBtnHandler();">Standard sum of products</a></li>
<li><a href="javascript:void(0);" id="liProdForm" onclick="displayProductFormBtnHandler();">Standard product of sums</a></li>
</ul>
</div>
</div>
<div id="formulaeContainer" class="panel-body" >
</div>
</div>
<button type="button" class="btn btn-primary pull-rignt" id="btnTableNext" onclick="btnTableNextHandler();" style="float: right">Next</button>
</div>
</div>
<!--PANEL UNTIL HERE-->
</div>
</div>
<div id="VK" tab="tabVK" class="tabcontent">
<div class="container">
<h3 id="hdgVK">Karnaugh Map</h3>
<div class="panel panel-primary">
<div id="subHdgVK" class="panel-heading">Solve the Karnaugh maps below</div>
<div class="panel-body">
<div class="panel-container">
<div id="captured-truthtable-panel" class="panel-left">
</div>
<div class="asplitter"></div>
<div id="panel-vks" class="panel-right carousel slide">
<div id="vkSlider" class="carousel-inner" role="listbox">
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#panel-vks" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#panel-vks" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<button type="button" class="btn btn-primary pull-rignt" id="btnVKNext" onclick="btnVKNextHandler();" style="float: right">Next</button>
</div>
</div>
</div>
</div>
<div id="Circuit" tab="tabCircuit" class="tabcontent">
<div class="container">
<div class="panel panel-primary">
<div id="hdgCircuit" class="panel-heading">The logic circuits for the systems are listed below</div>
<div class="panel-body">
<h3 id="subHdgCircuit">Circuit</h3>
<div id="circuitPanel" class="panel panel-default">
<div class="panel-body" id="holaz">
</div>
<button type="button" class="btn" id="btnUnlinkedVHDL" type="button" onclick="downloadUnlinkedVHDLHandler()">Download VHDL</button>
<button type="button" class="btn" id="btnRestart" type="button" onclick="gotoTab('tabStatement')">Restart</button>
<button type="button" class="btn" id="btnPrintAll" type="button" onclick="printAll()">Download PDF</button>
<button type="button" class="btn" id="btnExternalSvc" data-toggle="modal" data-target="#integration-modal">Open external service</button>
<button type="button" class="btn" id="btnDownloadSystem" type="button" onclick="downloadSystemHandler()">Save system</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="integration-modal" role="dialog">
<div class="modal-dialog modal-lg" style="width: 90%">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 id="hdrLinkageModal" class="modal-title">System I/O to Real I/O linkage</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-3">
<div class="panel panel-primary">
<div id="hdrSysIoPanel" class="panel-heading">System I/O</div>
<div id="systemIOcol" class="panel-body"></div>
</div>
</div>
<div class="col-sm-9">
<div class="panel panel-primary">
<div id="hdrRealIoPanel" class="panel-heading">Real I/O</div>
<div id="realIOcol" class="panel-body"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="linkageModalCloseBtn" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-default" id="btnLinkedVHDL" onclick="downloadLinkedVHDLHandler()">Download VHDL</button>
<button type="button" class="btn btn-default" id="btnLaunchExternalSvc" onclick="callExternalServiceHandler()">
<span class="glyphicon glyphicon-flash"></span>
</button>
</div>
</div>
</div>
</div>
</div>
<script>
document.getElementById("tabStart").click();
</script>
<!-- Modals: info modal -->
<div class="modal fade" id="infoModal" role="dialog">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="infoModalTitle">Error</h4>
</div>
<div class="modal-body">
<p id="infoModalText"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="errorModalCloseBtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modals: warn modal-->
<div class="modal fade" id="dataLossWarnModal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="dataLossWarnModalTitle">Confirm Delete</h4>
</div>
<div class="modal-body" id="dataLossWarnModalText">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="dataLossWarnModalCancelButton" data-dismiss="modal">Cancel</button>
<a class="btn btn-default btn-ok" id="dataLossWarnModalProceedButton">Delete</a>
</div>
</div>
</div>
</body>
</html>