-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·579 lines (506 loc) · 25.8 KB
/
index.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
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
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui"> -->
<meta name="description" content="Hospital flow simulator" />
<link rel="stylesheet" type="text/css" href="src/lib/bootstrap-4.1.2-dist/css/bootstrap.min.css">
<link href="css/style.css" rel="stylesheet" />
<title>Hospital flow simulation</title>
<script src="src/lib/seedrandom.min.js"></script>
<script src="src/lib/Chart.bundle.min.js"></script>
<script type="text/javascript" src="src/lib/underscore-min.js"></script>
<script src="src/lib/utils.js"></script>
<script type="text/javascript" src="src/lib/FastPriorityQueue.js"></script>
<!-- very simple config -->
<!-- <script type="text/javascript" src="src/config/ward_config.js"></script> -->
<!-- <script type="text/javascript" src="src/config/patient_config.js"></script> -->
<!-- <script type="text/javascript" src="src/config/simulation_config.js"></script> -->
<!-- first example config -->
<script type="text/javascript" src="src/config/ward_config_medium.js"></script>
<!-- <script type="text/javascript" src="src/config/ward_config_generated.js"></script> -->
<script type="text/javascript" src="src/config/patient_config_medium.js"></script>
<!-- <script type="text/javascript" src="src/config/patient_config_generated.js"></script> -->
<script type="text/javascript" src="src/config/simulation_config_medium.js"></script>
<script type="text/javascript" src="src/config/virtual_wards.js"></script>
<script type="text/javascript" src="src/Simulation.js"></script>
<script type="text/javascript" src="src/interactive_simulation.js"></script>
<script src="src/lib/cytoscape.js-2.7.14/cytoscape.min.js"></script>
<script type="text/javascript" src="src/lib/FileSaver.min.js"></script>
<script type="text/javascript" src="src/graph.js"></script>
<script type="text/javascript" src="src/config/patient_set_100_1-3-7.json.txt.js"></script>
<!-- set 1-3-7 gives ok performance but not efficient -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<center><h1 class="display-3">Patient Flow Simulator</h1></center>
<center><h4><a href="./index.html">Simulator</a> | <a href="./docs.html">Help</a> | <a href="./developer.html">Developer</a> | <a href="./about.html">About</a></h2></center>
<hr />
<div class="container-fluid" id="editor">
<h3>Ward management</h3>
<p>Distribute resources in your hospital and make policy decisions. Then click Run!</p>
<div class="row" id="config-editor">
<div class="col-md-4">
<div class="card card-default">
<h5 class="card-header">Ward list</h5>
<div class="card-body" id="ward-list-container">
<div class="list-group" id="ward-list">
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card card-default">
<h5 class="card-header" id="selected-ward-name">Select a ward to edit</h5>
<div class="card-body" id="ward-edit-content">
<input type="hidden" name="selected-ward" id="selected-ward" value="">
<div class="form-group">
<label for="ward-capacity">Beds</label>
<input type="text" min="1" class="form-control" id="ward-capacity">
</div>
<div class="form-group">
<label for="ward-resources">Resources</label>
<input type="text" min="1" class="form-control" id="ward-resources">
</div>
<div class="form-group">
<label for="ward-resources">Staff</label>
<input type="text" min="1" class="form-control" id="ward-attention">
</div>
<div class="form-group">
<label for="ward-resource-policy">Distribution of resources and staff</label>
<select class="form-control" id="ward-resource-policy">
<option value="divide_evenly">Equal</option>
<option value="highest_first">Highest first</option>
<option value="highest_first">Biased highest first</option>
<option value="lowest_first">Lowest first</option>
</select>
</div>
<div class="form-group">
<label for="ward-queue-policy">Queue policy</label>
<select class="form-control" id="ward-queue-policy">
<option value="SimpleQueue">First-come, first-served</option>
<option value="MaxPQ">Highest need first</option>
<option value="MinPQ">Lowest need first</option>
</select>
</div>
<div class="form-group">
<label for="ward-overflow-policy">Accept overflow</label>
<select class="form-control" id="ward-overflow-policy">
<option value="always">Always</option>
<option value="never">Never</option>
</select>
</div>
<div class="form-group">
<div id='board-from-container' class='hidden'>
<label for="ward-board-from">Begin boarding after</label>
<input type="text" min="1" class="form-control" id="ward-board-from">
</div>
</div>
<button class="btn btn-primary" type="button" id="save-ward-changes" onclick="save_ward_changes()">Save</button>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card card-default">
<h5 class="card-header">Simulation setup</h5>
<div class="card-body" id="simulation-edit-content">
<div class="form-group">
<label for="simulation-steps">Simulation steps</label>
<input type="text" min="1" class="form-control" id="simulation-steps">
</div>
<div class="form-group">
<label for="patient-creation-limit">Max patients</label>
<input type="text" min="1" class="form-control" id="patient-creation-limit">
</div>
<div class="form-group">
<label for="patient-batch-min">Min arrivals per step</label>
<input type="text" min="1" class="form-control" id="patient-batch-min">
</div>
<div class="form-group">
<label for="patient-batch-min">Expected arrivals per step</label>
<input type="text" min="1" class="form-control" id="patient-batch-lambda">
</div>
<div class="form-group">
<label for="patient-batch-max">Max arrivals per step</label>
<input type="text" min="1" class="form-control" id="patient-batch-max">
</div>
<div class="form-group">
<label for="simulation-emergency-target">Emergency wait target</label>
<input type="text" min="1" class="form-control" id="simulation-emergency-target">
</div>
<div class="form-group">
<label for="simulation-seconds-per-run">Wait between runs (s)</label>
<input type="number" min="1" class="form-control" id="simulation-seconds-per-run" value="2">
<small id="sim-s-per-help" class="form-text text-muted">Less powerful machines may need longer per iteration.</small>
</div>
<div>
<!-- <fieldset class="form-group">
<div class="row">
<legend class="col-form-label col-sm-3 pt-0">History</legend>
<div class="col-sm-9">
<div class="form-check">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="reset-sim-toggle" value="reset">
<label class="form-check-label" for="reset-sim-toggle">Clean slate</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="continue-sim-toggle" value="resume" checked>
<label class="form-check-label" for="continue-sim-toggle">Resume</label>
</div>
<div class="form-check disabled">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="repeat-sim-toggle" value="repeat">
<label class="form-check-label" for="repeat-sim-toggle">Repeat previous</label>
</div>
</div>
</div>
</fieldset> -->
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="row" id="sim-controls">
<div class="col-md-6 offset-md-3">
<div class="card card-default">
<h5 class="card-header">Simulation controls</h5>
<div class="card-body" id="sim-controls-container">
<div class="row">
<div class="col-md-6">
<div>
Simulation history:
<div class="form-check">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="reset-sim-toggle" value="reset">
<label class="form-check-label" for="reset-sim-toggle">Clean slate</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="continue-sim-toggle" value="resume" checked>
<label class="form-check-label" for="continue-sim-toggle">Resume</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="resume-mode-radios" id="repeat-sim-toggle" value="repeat">
<label class="form-check-label" for="repeat-sim-toggle">Repeat previous</label>
</div>
</div>
</div>
<div class="col-md-6">
<div>
Patients:
<div class="form-check">
<input class="form-check-input" type="radio" name="patient-mode-radios" id="random-patients-toggle" value="random" checked>
<label class="form-check-label" for="reset-sim-toggle">Generate</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="patient-mode-radios" id="load-patients-toggle" value="preset">
<label class="form-check-label" for="continue-sim-toggle">Preset</label>
</div>
</div>
</div>
</div>
<div class="row row-margin">
<div class="col-md-6">
<button id="change-hospital-btn" class="btn btn-info btn-margin" data-toggle="modal" data-target="#change-hospital-modal">Change hospital</button>
<button id="download-btn" class="btn btn-info btn-margin" onclick="download_current_config()" >Download config</button>
</div>
<div class="col-md-6">
<button class="btn btn-warning btn-margin" onclick="reset_interactive(patient_config, ward_config, 'cy')">Reset analysis</button>
</div>
</div>
<div class="row row-margin">
<div class="col-md-6">
<button class="btn btn-success btn-block btn-margin" type="button" id="run-multi-btn" onclick="toggle_running_state()"><span class="glyphicon glyphicon-play" aria-hidden="true"></span> Run</button>
</div>
<div class="col-md-6">
<button class="btn btn-success btn-block btn-margin" type="button" id="run-once-btn" onclick="run()">Run once</button>
</div>
</div>
<div class="row row-margin">
<div class="col-md-6" id='run-status'></div>
</div>
<div class="row row-margin">
<div class="col-md-12">
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" style="width: 0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" id='run-progress'></div>
</div>
</div>
</div>
</div> <!-- end of card body for simulation controls -->
</div>
</div>
</div> <!-- end of editor container -->
<div class="container-fluid">
<!-- Nav tabs -->
<div>
<hr />
<h3>Analysis</h3>
<p>Find out how well your hospital is performing.</p>
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item"><a href="#summary-tab" class="nav-link active" data-toggle="tab" role="tab">Summary</a></li>
<li class="nav-item"><a href="#history-tab" class="nav-link" data-toggle="tab" role="tab">History</a></li>
<li class="nav-item"><a href="#network-tab" class="nav-link" data-toggle="tab" role="tab">Network</a></li>
<li class="nav-item"><a href="#waiting-tab" class="nav-link" data-toggle="tab" role="tab">Waiting time</a></li>
<li class="nav-item"><a href="#occupancy-tab" class="nav-link" data-toggle="tab" role="tab">Occupancy</a></li>
<li class="nav-item"><a href="#top-paths-tab" class="nav-link" data-toggle="tab" role="tab">Top paths</a></li>
<li class="nav-item"><a href="#path-distribution-tab" class="nav-link" data-toggle="tab" role="tab">Path length</a></li>
<li class="nav-item"><a href="#queue-tab" class="nav-link" data-toggle="tab" role="tab">Queue length</a></li>
<li class="nav-item"><a href="#delay-tab" class="nav-link" data-toggle="tab" role="tab">Delays</a></li>
</ul>
</div>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane fade show active" role="tabpanel" id="summary-tab">
<!-- help text -->
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Summary statistics</div>
<div class="card-body">
<p class="card-text">Overall properties of the hospital and any patients admitted in the previous simualtion. Costs are shown per run, which is 1 day by default.</p>
</div>
</div>
</center>
<div class="card card-default" id="resource-summary">
<!-- Default card contents -->
<h5 class="card-header">Hospital summary</h5>
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">Total resources used: <div class="inline" id="total-resource-use"></div>
, cost £<div class="inline" id="total-resource-cost"></div></li>
<li class="list-group-item">Total bed capacity: <div class="inline" id="total-capacity"></div>
, cost £<div class="inline" id="total-capacity-cost"></div></li>
<li class="list-group-item">Total staff: <div class="inline" id="total-staff"></div>
, cost £<div class="inline" id="total-staff-cost"></div></li>
<li class="list-group-item">Total operating cost: £<div class="inline" id="total-cost"></div></li>
</ul>
</div>
<div class="card card-default" id="performance-summary">
<!-- Default card contents -->
<h5 class="card-header">Performance summary</h5>
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">Mean Emergency wait: <div class="inline" id="mean-wait-time"></div></li>
<li class="list-group-item">Emergency visits meeting target: <div class="inline" id="patients-on-target"></div></li>
<li class="list-group-item">Mean hospital occupancy: <div class="inline" id="mean-hosp-occ"></div></li>
</ul>
</div>
<div class="card card-default" id="simulation-summary">
<!-- Default card contents -->
<h5 class="card-header">Patient summary</h5>
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">Simulation complete: <div class="inline" id="simulation-complete"></div></li>
<li class="list-group-item">Patients simulated: <div class="inline" id="patients-simulated"></div></li>
<li class="list-group-item">Patients admitted: <div class="inline" id="patients-admitted"></div></li>
<li class="list-group-item">Patients discharged: <div class="inline" id="patients-discharged"></div></li>
<li class="list-group-item">Patients in hospital when simulation ended: <div class="inline" id="patients-remaining"></div></li>
<li class="list-group-item">Total transfers: <div class="inline" id="total-transfers"></div></li>
<li class="list-group-item">Overflow transfers: <div class="inline" id="overflow-transfers"></div></li>
<li class="list-group-item">Unique paths: <div class="inline" id="total-unique-paths"></div></li>
</ul>
</div>
</div>
<div class="tab-pane fade show" role="tabpanel" aria-labelledby="network-tab-link"id="network-tab">
<div id="networkcontainer">
<!-- help text -->
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">The patient flow network</div>
<div class="card-body">
<p class="card-text">Nodes represent wards and directed edges represent the movement of patients between wards. Edge weight (thickness) is the relative proportion of all transfers that went through each edge. Use the analysis buttons below to scale node size based on centrality.</p>
</div>
</div>
</center>
<div id="network-controls">
<h4>Network analysis</h4>
<button class="btn btn-primary" onclick="cy.fit()">Reset view</button>
<button class="btn btn-primary" onclick="network_analysis('reset')">Reset analysis</button>
<button id="total" class="btn btn-primary" onclick="network_analysis('total')">Degree</button>
<button id="indegree" class="btn btn-primary" onclick="network_analysis('indegree')">Indegree</button>
<button id="outdegree" class="btn btn-primary" onclick="network_analysis('outdegree')">Outdegree</button>
<button id="betweenness" class="btn btn-primary" onclick="network_analysis('betweenness')">Betweenness</button>
<button id="closeness" class="btn btn-primary" onclick="network_analysis('closeness')">Closeness</button>
</div>
<div id="cy"></div>
</div>
</div>
<div role="tabcard" class="tab-pane" id="waiting-tab">
<div id="performance-charts">
<!-- help text -->
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Emergency performance</div>
<div class="card-body">
<p class="card-text">Analyse the distribution of length of stay in any ward, including emergency department waiting time.</p>
</div>
</div>
</center>
<select id="wait-plot-list"></select>
<button class="btn btn-primary" onclick="select_wait_plot_ward()">Select</button>
<div class="plotcontainer" id="waiting">
<canvas id="waiting-plot" class="plot"></canvas>
<!-- canvas element will be deleted in JS and created with this ID -->
</div>
</div>
</div>
<div role="tabcard" class="tab-pane" id="occupancy-tab">
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Ward occupnacy</div>
<div class="card-body">
<p class="card-text">Analyse the occupancy of all wards over time. Occupancy is shown as the % of beds in use per ward. Click the lengend to show/hide wards.</p>
</div>
</div>
</center>
<div class="plotcontainer" id="occupancy">
<canvas id="occupancy-plot" class="plot"></canvas>
<!-- canvas element will be deleted in JS and created with this ID -->
</div>
</div>
<div role="tabcard" class="tab-pane" id="top-paths-tab">
<!-- help text -->
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Observed paths</div>
<div class="card-body">
<p class="card-text">Analyse the actual paths patients take through your hosptial.</p>
</div>
</div>
</center>
<div class="card card-default">
<h5 class="card-header">Most common paths</h5>
<!-- Table -->
<table class="table table-bordered" id="top-paths-list"></table>
</div>
</div>
<div role="tabcard" class="tab-pane" id="path-distribution-tab">
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Path length</div>
<div class="card-body">
<p class="card-text">Analyse the frequency of paths by length</p>
</div>
</div>
</center>
<div class="plotcontainer" id="path-length">
<canvas id="path-length-plot" class="plot"></canvas>
<!-- canvas element will be deleted in JS and created with this ID -->
</div>
</div>
<div role="tabcard" class="tab-pane" id="queue-tab">
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Ward queue length</div>
<div class="card-body">
<p class="card-text">Analyse the number of patients waiting for admission to each ward over time. Click the lengend to show/hide wards.</p>
</div>
</div>
</center>
<div class="plotcontainer" id="queues">
<canvas id="queues-plot" class="plot"></canvas>
<!-- canvas element will be deleted in JS and created with this ID -->
</div>
</div>
<div role="tabcard" class="tab-pane" id="delay-tab">
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Causes of delay</div>
<div class="card-body">
<p class="card-text">Delays that arise within wards might be due to a shortage of staff or resources.</p>
</div>
</div>
</center>
<div id="delay-table-container">
<table class="table table-bordered" id="delay-table"></table>
</div>
</div>
<div role="tabcard" class="tab-pane" id="history-tab">
<center>
<div class="card mb-3 border-primary" style="max-width: 30rem;">
<div class="card-header bg-primary text-white">Simulation history</div>
<div class="card-body">
<p class="card-text">Monitor the performance of your hospital over consecutive simulations. You can reload any previous configuration from the history table. Note that as occupancy only counts admitted patients, the Emergency ward is not included.</p>
</div>
</div>
</center>
<div class="row">
<div class="col-md-6">
<select id='history-plot-select'>
<option value='Mean emergency wait time' selected="selected">Mean emergency wait</option>
<option value='Percent under 4h'>Percent under 4h</option>
<option value='Mean total occupancy'>Mean total occupancy</option>
<option value='Length of stay efficiency'>Length of stay efficiency</option>
<option value='Staff time efficiency'>Staff time efficiency</option>
<option value='Resource use efficiency'>Resource use efficiency</option>
<option value='Total cost'>Total cost</option>
<option value='Score'>Score</option>
</select>
<button class="btn btn-primary" onclick="update_history_plot()">Plot</button>
<div id='history-plot-container'></div>
</div>
<div class="col-md-6">
<div id='summary-plot-container'></div>
</div>
</div>
<div id="history-table-container">
<table class="table table-bordered" id="history-table"></table>
</div>
</div>
</div> <!-- end of tab content -->
</div>
<div class="spacer"></div>
<!-- Modal -->
<div class="modal fade" id="change-hospital-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Change to a different hospital</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- <p>Select one of the preset hospitals:</p>
<p>
<select id="select-hospital-preset">
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
<button type="button" id="file-upload-btn" class="btn btn-primary" onclick="change_preset()">Change preset</button>
<p>
<p>
<b>or</b>
</p>
-->
<p>
Upload a custom configuration file:<input type="file" id="file_upload">
<output id="file_list"></output>
<button type="button" id="file-upload-btn" class="btn btn-primary" onclick="upload_config()">Upload</button>
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="src/lib/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="src/lib/bootstrap-4.1.2-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="src/plot.js"></script>
<script type="text/javascript">
new_simulator_session(patient_config, ward_config, 'cy')
prng_seed = Math.random().toString()
//Math.seedrandom('hello.');
set_prng_seed(prng_seed) //also updates window.prng_seed
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
network_tab()
})
</script>
</body>
</html>