-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
2470 lines (2330 loc) · 129 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
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<!--<link rel="stylesheet" href="Chart.css" />-->
<link rel="stylesheet" href="styles.css">
<link href="css/fontawesome.min.css" rel="stylesheet">
<link href="css/regular.min.css" rel="stylesheet">
<link href="css/solid.min.css" rel="stylesheet">
<link href="css/brands.min.css" rel="stylesheet"> <!--font awesome-->
<meta name="theme-color" content="#7B8092">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="apple-touch-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon-180x180.png" />
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/12.9__iPad_Pro_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/11__iPad_Pro__10.5__iPad_Pro_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/10.5__iPad_Air_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/10.2__iPad_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="splash_screens/iPhone_13_Pro_Max__iPhone_12_Pro_Max_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="splash_screens/iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/iPhone_11__iPhone_XR_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="splash_screens/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_landscape.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/12.9__iPad_Pro_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/11__iPad_Pro__10.5__iPad_Pro_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/10.5__iPad_Air_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/10.2__iPad_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="splash_screens/iPhone_13_Pro_Max__iPhone_12_Pro_Max_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="splash_screens/iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/iPhone_11__iPhone_XR_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="splash_screens/iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_portrait.png">
<link rel="apple-touch-startup-image" media="screen and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_portrait.png">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<link rel="manifest" href="manifest.json">
<meta charset="utf-8">
<meta name="description" content="Simple and free TIVA simulator">
<meta name="keywords" content="simtiva, tiva, tci, free, simulator, calculator, terence, luk, propofol, remifentanil, alfentanil, app, smartphones, apple, android">
<meta name="author" content="Terence Luk">
<title>SimTIVA | Free TIVA Simulation App to Simulate Target-Controlled Infusion | Simple TCI Calculator</title>
</head>
<body class="" id="windowbody">
<div id="rescuebuttons">
<a class="button frontpage" onclick="displayModalOptions();"><i class="fas fa-cog fa-fw" style="padding-right: 6px"></i>Options</a>
<a class="button frontpage" onclick="rescue();"><i class="fas fa-life-ring fa-fw " style="padding-right:6px"></i>Rescue</a>
<a class="button frontpage" onclick="load();"><i class="fas fa-save fa-fw " style="padding-right:6px"></i>Load file</a>
</div>
<div id="modalAbout" class="modal">
<div class="modal-content" id="modalAboutcontent">
<div class="modal-header">ABOUT<span class="close" onClick="hidemodal('modalAbout')">×</span></div>
<div class="modal-body" style="overflow-y:auto; height: 70vh; font-size:90%">
<h1>SimTIVA is a computer simulation program to simulate delivery of total intravenous anaesthesia (TIVA) using a target-controlled infusion (TCI) pump. This progressive web app (PWA) is designed for use on smartphones, tablets and computers.</h1>
<br><b>Written by Terence Luk, 2023</b>. This work is licensed under GNU General Public License v3.0. Read more about the project <a href='https://simtiva.blogspot.com/' target='_blank'>here</a>, or contact me on <a href='https://twitter.com/simtiva_app' target='_blank'>Twitter/X</a> for ideas, suggestions or comments. Your advice is greatly appreciated!
<br>
<br><b>Contributors</b>
<br>George Zhong (@propofoldream)
<br>Eric Ng
<br>David Lam
<br>
<br>This is an open source project and the source code is published on <a href='https://github.com/luktinghin/simtiva/' target='_blank'>GitHub</a>.
<br>Last updated 28/8/2024 (V4.81) Build 111.
<br>
<br>The purposes are: (1) <i> To simulate TCI/TIVA for educational purposes</i>, and (2) <i>Potentially, to help deliver TCI/TIVA in a low resource setting with no TCI pumps available.</i>
<br>Coding is done in Javascript. The code to the mathematical calculations are based on "STANPUMP", which is freely available from the link below. The pharmacokinetic models available in this program are Marsh, Schnider, Paedfusor and Eleveld for propofol, and Minto and Eleveld for remifentanil. For instructions on using this app, visit the 'Help' page. For documentation of the pharmacological details, visit the 'Documentation' page.
<br>
<br>Contact us via our <a href="https://simtiva.blogspot.com/p/feedback.html" target="_blank">blog</a> page, or get in touch on <a href='https://twitter.com/simtiva_app' target='_blank'>Twitter/X</a>.
<div class="collapsible">Licenses & Legal</div>
<div class="collapsiblecontent">
Acknowledgments: this project is made possible with the following-
<br>
<br><b>STANPUMP by Steven L. Shafer</b>
<br>Freely available at <a href="http://opentci.org/code/stanpump" target="_blank">OpenTCI-STANPUMP</a>
<br>
<br><b>Chart.js</b>
<br><a href="http://chartjs.org" target="_blank">Chart.js</a> is open source and available under the MIT license.
<br>
<br><b>Font Awesome Free</b>
<br>SIL OFL 1.1 license applies to all icons packaged as font files. <a href="https://github.com/FortAwesome/Font-Awesome" target="_blank">Source/License</a>
<br>
<br><b>WHO Child Growth Standards</b>
<br>Copyright World Health Organization (WHO), 2021; all rights reserved. Growth chart data (weight & length for age and BMI) from <a href='https://www.who.int/tools/child-growth-standards/standards' target='_blank'>WHO website</a> used for data validation. Computational method using LMS method described <a href='https://www.who.int/growthref/computation.pdf' target='_blank'>here</a>.
<br>
<br><b>LZ-String</b>
<br>Copyright Pieroxy (2013) under MIT license, from <a href='https://pieroxy.net/blog/pages/lz-string/index.html' target='_blank'>pieroxy.net</a>, used for Javascript string compression.
<br>
<br><span style="color:#ccc">Source Sans font: Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries, licensed under the SIL Open Font License, Version 1.1 (http://scripts.sil.org/OFL).</span>
</div>
<div style="padding-top:1rem;">
<a class="button wide" onclick="hideallmodal();">Back</a>
<a class="button muted right" id="btn_disclaimer2" onclick="displayDisclaimer();">Disclaimer</a><button onclick="importDialog()" style="opacity:0">Hi</button>
</div>
</div>
</div>
</div>
<!--startmodal-->
<div id="modalInitial" class="modal">
<div class="modal-content" id="modalInitialcontent">
<div class="modal-header">Enter patient data<!--<span class="close notcondensed" onClick="hideallmodal()">×</span>--><img onclick="displayAbout();" src="apple-touch-icon-180x180.png" style="position:absolute;right:6px;width:44px;cursor:pointer"></div>
<div class="modal-body">
<div class="paedimode_selector">
<a class="button_paedimode active" id="paedimode0" onclick="switchpaedimode(0);">Adult</a><!--
--><a class="button_paedimode" id="paedimode1" onclick="switchpaedimode(1);">Paediatric</a>
</div>
<table class="table-Init">
<tr class="fr" id="row_age_adultmode">
<td >Age (y) <i class="far fa-question-circle tooltip"><span class="tooltiptext" style="width: 80px; line-height:20px">0-100y</span></i></td>
<td><input type="number" inputmode="decimal" id="inputAge" min="0.1" max="99" step="0.1" placeholder=" " onkeyup="sendToValidate(0)" required/></td>
</tr>
<tr class="fr" id="row_age_paedimode" style="display:none">
<td>Age <i class="far fa-question-circle tooltip"><span class="tooltiptext">Actual chronological age</span></i></td>
<td>
<input type="number" inputmode="decimal" id="inputAgePaedi" placeholder=" " onkeyup="sendToValidate(0)"/>
<select id="select_age_unit">
<option value="d">Days</option>
<option value="w">Weeks</option>
<option value="m" selected>Months</option>
<option value="y">Years</option>
</select>
</tr>
<tr id="row_PMA_paedimode" style="display:none">
<td><span style="letter-spacing: -0.5px">Post-menstrual age </span><i class="far fa-question-circle tooltip"><span class="tooltiptext" style="">Covariate for Eleveld; affects clearance in <6mo</span></i>
</td>
<td>
<div id="PMA_td">
<div id="PMA_entry"><input type="number" inputmode="decimal" id="inputPMA" placeholder=" "/>weeks</div>
<div id="PMA_explanation" onclick="displayWarning('Post-menstrual age', 'Covariate for Eleveld model, affects clearance in <6 months old. Optional entry, omit for full term.')">What's this?</div>
</div>
</td>
</tr>
<tr>
<td>Weight (kg) <i class="far fa-question-circle tooltip"><span class="tooltiptext">0-200kg, validation with BMI & weight-for-age</span></i></td>
<td><input type="number" inputmode="decimal" id="inputBW" min="0.1" max="200" step="0.01" placeholder=" " onkeyup="sendToValidate(0)" required/></td>
</tr>
<tr id="row_height">
<td>Height (cm) <i class="far fa-question-circle tooltip"><span class="tooltiptext">0-250cm, required for Schnider/Eleveld</span></i></td>
<td><input type="number" inputmode="decimal" id="inputBH" min="0.1" max="250" step="0.1" placeholder=" " onkeyup="sendToValidate(0)" ></td>
</tr>
<tr id="row_gender"><td>Gender</td>
<td>
<select id="select_gender" onchange="sendToValidate(0)" >
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</td>
</tr>
<tr><td>Model <i class="far fa-question-circle tooltip2"><span class="tooltiptext">Paedfusor: for children. Marsh/Schnider/Minto: for adults.</span></i></td>
<td>
<select id="select_model" onchange="sendToValidate(0)" >
<option value="Marsh">Propofol (Marsh)</option>
<option value="Schnider">Propofol (Schnider)</option>
<option value="Paedfusor">Propofol (Paedfusor)</option>
<option value="Eleveld" selected>Propofol (Eleveld)</option>
<option value="Minto">Remifentanil (Minto)</option>
<option value="Eleveld-Remifentanil">Remifentanil (Eleveld)</option>
<option value="Maitre">Alfentanil (Maitre)</option>
<option value="Shafer">Fentanyl (Shafer)</option>
<option value="Complex">Complex (Dual mode)</option>
</select>
<select id="select_model_paedi" onchange="sendToValidate(0)" style="display:none">
<option value="Paedfusor">Propofol (Paedfusor)</option>
<option value="Eleveld" selected>Propofol (Eleveld)</option>
<option value="Eleveld-Remifentanil">Remifentanil (Eleveld)</option>
<option value="Complex">Complex (Dual mode)</option>
</select>
</td>
</tr>
<tr id="row_eleveldopioid"><td style="letter-spacing:-0.5px">Concomitant opioid</span></td>
<td>
<select id="select_eleveldopioid">
<option value="1">Yes, with opioid</option>
<option value="0">No, propofol alone</option>
</select>
</td>
</tr>
<tr id="row_remidilution"><td style="letter-spacing:-0.5px">Concentration <span style="font-size: 85%">(mcg/ml)</span></td>
<td>
<select id="select_remidilution" onchange="change_remidilution(this.value)">
<option value="5">5mcg/ml</option>
<option value="10">10mcg/ml</option>
<option value="20" selected>20mcg/ml</option>
<option value="25">25mcg/ml</option>
<option value="40">40mcg/ml</option>
<option value="50">50mcg/ml</option>
<option value="custom">Custom</option>
</select>
<div id="custom_remidilution" onclick="popup_dilution('remidilution','remifentanil')">
<span id="remidilution">_</span>mcg/ml
</div>
</td>
</tr>
<tr id="row_alfendilution"><td style="letter-spacing:-0.5px">Concentration <span style="font-size: 85%">(mcg/ml)</span></td>
<td>
<select id="select_alfendilution" onchange="change_alfendilution(this.value)">
<option value="100" selected>100mcg/ml</option>
<option value="500">500mcg/ml</option>
<option value="custom">Custom</option>
</select>
<div id="custom_alfendilution" onclick="popup_dilution('alfendilution','alfentanil')">
<span id="alfendilution">_</span>mcg/ml
</div>
</td>
</tr>
<tr id="row_fen_weightadjusted"><td>Weight adjusted? <i class="far fa-question-circle tooltip3"><span class="tooltiptext">If YES: PK model adjusted to BW according to Shibutani, 2004; recommended for obese.</span></i></td>
<td>
<select id="select_fen_weightadjusted">
<option value="0" >No</option>
<option value="1" selected>Yes</option>
</select>
</td>
</tr>
<tr id="row_fendilution"><td style="letter-spacing:-0.5px">Concentration <span style="font-size: 85%">(mcg/ml)</span></td>
<td>
<select id="select_fendilution" onchange="change_fendilution(this.value)">
<option value="5">5mcg/ml</option>
<option value="10" selected>10mcg/ml</option>
<option value="20">20mcg/ml</option>
<option value="25">25mcg/ml</option>
<option value="50">50mcg/ml</option>
<option value="custom">Custom</option>
</select>
<div id="custom_fendilution" onclick="popup_dilution('fendilution','fentanyl')">
<span id="fendilution">_</span>mcg/ml
</div>
</td>
</tr>
<tr id="row_dexmededilution"><td>Drug dilution (mcg/ml)</td>
<td>
<input type="number" inputmode="decimal" id="inputDexmedeDilution" value="4">
</td>
</tr>
<!--
<tr><td>File Name</td>
<td>
<input id="inputFileName1" value="" class="formTextInput" placeholder="Optional, Max 32 char.">
</td>
</tr>
-->
<!--<tr><td>Debug: Enter Sim Speed (1=default)</td><td><input type="number" id="simspeed" value="1"></td></tr>-->
</table>
<div id="valCard" class="">
<div id="valLeft"></div>
<div id="valRight">
<div style="position:relative">
<div id="valRightContainer1" class="">
Waiting for input.
</div>
<div id="valRightContainer2" class="valClose">
BMI: <span id="bmiDisplay"></span><span id="bmiForAgeDisplay"></span>
<div id="wfaDiv">Weight for age: <span id="wfaDisplay"></span>
</div>
</div>
</div>
</div>
</div>
<div id="validationDisplay">
</div>
<div>
<a class="button invert disabled" id="btn_initProceed">Proceed</a>
<a class="button muted right" id="btn_disclaimer" onclick="displayDisclaimer();">Disclaimer</a>
<a class="button muted right" id="btn_about" onclick="displayAbout2();"><span style="padding-right: 6px"><i class="fas fa-question-circle"></i></span>Help</a>
</div>
</div>
</div>
</div>
<div id="modalScreen2" class="modal">
<div class="modal-content" id="modalScreen2content">
<div class="modal-header" id="page2title"><!--<span class="close notcondensed" onClick="hideallmodal()">×</span>--></div>
<div class="modal-body">
<div id="patientCard">
<div id="patientLeft">
</div>
<div id="patientRight">
<div id="patientRightUp"></div>
<div id="patientRightDown" style="font-size:70%; border-top:1px solid rgb(167 203 168); padding-top:3px; margin-top:3px; margin-right:5px"></div>
</div>
<div id="patientEdit">
<div onclick="toPageOne();">EDIT</div>
</div>
</div>
<!--<div id="drugCard">
<div id="drugLeft">
</div>
<div id="drugRight">
</div>
<div id="drugEdit">
<div onclick="toPageTwo();">EDIT</div>
</div>
</div>
-->
<div id="simplemodeselection" style="padding-top:1rem; padding-bottom:0.5rem; text-align:center; border:2px solid #ccc; border-radius:9px;box-shadow:inset 0 4px 0 0 rgba(0,0,0,0.15);">Choose one of the following:<br>
<a class="button huge" onclick="initcpt();hideallmodal();document.getElementById('card_controlpanel').style.display='block';"><span style="border-bottom:1px solid LightCoral">CP</span> TARGETING<i class="fas fa-tint fa-fw" style="color:LightCoral;"></i></a>
<br>
<a class="button huge" onclick="initcet();hideallmodal();document.getElementById('card_controlpanel').style.display='block';"><span style="border-bottom:1px solid green">CE</span> TARGETING<i class="fas fa-brain fa-fw" style="color:green;"></i></a>
<br>
<a class="button huge" onclick="initmanual(0);hideallmodal();document.getElementById('card_controlpanel').style.display='block';">MANUAL<i class="fas fa-syringe fa-fw" style="color:rgb(81 203 238)"></i></a>
<br>
<a class="button huge" onclick="initcetbolus(0);hideallmodal();">INTERMITTENT BOLUS<i class="fas fa-hourglass-half fa-fw" style="color:#c19f14"></i></a>
</div>
<div id="complexmodeselection0" style="margin-top: 10px; border:2px solid #ccc; border-radius:9px;box-shadow:inset 0 4px 0 0 rgba(0,0,0,0.15); padding: 0px 5px;">
<table class="" style="width:100%">
<tr class="fr" style="height: 4rem; vertical-align:bottom">
<td style="width:38%">
<div style="font-size: 10px; border-bottom: 2px solid rgb(255,210,80); transform:translateX(-7px); padding-left:7px; width: 50px; background: rgba(255,210,80,0.7)">Drug 1</div>
<div style=" font-size: 20px; font-weight:bold;">PROPOFOL</div></td>
<td>
<select id="model_propofol">
<option value="Marsh">Marsh</option>
<option value="Schnider">Schnider</option>
<option value="Paedfusor">Paedfusor</option>
<option value="Eleveld" selected>Eleveld</option>
</select>
</td>
</tr>
<tr>
<td>Infusion mode</td>
<td>
<select id="mode_propofol">
<option value="0">CP Targeting</option>
<option value="1" selected>CE Targeting</option>
<option value="2">Manual</option>
<option value="3">Intermittent Bolus</option>
</select>
</td>
</tr>
</table>
</div>
<div id="complexmodeselection1" style="margin-top: 10px;border:2px solid #ccc; border-radius:9px;box-shadow:inset 0 4px 0 0 rgba(0,0,0,0.15); padding: 0px 5px;">
<table class="" style="width:100%">
<tr class="fr" style="height: 4rem; vertical-align:bottom">
<td style="width:38%">
<div style="font-size: 10px; border-bottom: 2px solid rgb(0,129,255); transform:translateX(-7px); padding-left:7px; width: 50px; background: rgba(0,129,255,0.7)">Drug 2</div>
<div style=" font-size: 20px; font-weight:bold; ">OPIOID</div>
</td>
<td>
<select id="model_opioid" onchange="
if (this.value==='Shafer') {
document.getElementById('row_fen_weightadjusted1').style.display='table-row';
document.getElementById('select_opioiddilution').value = 10;
} else {
if (this.value=='Maitre') {
document.getElementById('select_opioiddilution').value = 100;
} else {
document.getElementById('select_opioiddilution').value = 20;
}
document.getElementById('row_fen_weightadjusted1').style.display='none';
}
">
<option value="Minto">Remifentanil (Minto)</option>
<option value="Eleveld-Remifentanil">Remifentanil (Eleveld)</option>
<option value="Maitre">Alfentanil (Maitre)</option>
<option value="Shafer">Fentanyl (Shafer)</option>
</select>
</td>
</tr>
<tr id="row_opioiddilution"><td>Concentration</td>
<td>
<select id="select_opioiddilution" onchange="change_opioiddilution(this.value)">
<option value="5">5mcg/ml</option>
<option value="10">10mcg/ml</option>
<option value="20" selected>20mcg/ml</option>
<option value="25">25mcg/ml</option>
<option value="40">40mcg/ml</option>
<option value="50">50mcg/ml</option>
<option value="100">100mcg/ml</option>
<option value="custom">Custom</option>
</select>
<div id="custom_opioiddilution" onclick="
if (document.getElementById('model_opioid').value == 'Shafer') {
popup_dilution('opioiddilution','fentanyl');
} else if (document.getElementById('model_opioid').value == 'Maitre') {
popup_dilution('opioiddilution','alfentanil');
} else {
popup_dilution('opioiddilution','remifentanil');
}
">
<span id="opioiddilution">_</span>mcg/ml
</div>
</td>
</tr>
<tr id="row_fen_weightadjusted1">
<td>Weight adjusted?<!--<i class="far fa-question-circle tooltip3"><span class="tooltiptext">If YES: PK model adjusted to BW according to Shibutani, 2004; recommended for obese.</span></i>--></td>
<td>
<select id="select_fen_weightadjusted1">
<option value="0" >No</option>
<option value="1" selected>Yes</option>
</select>
</td>
</tr>
<tr>
<td>Infusion mode</td>
<td>
<select id="mode_opioid">
<option value="0">CP Targeting</option>
<option value="1" selected>CE Targeting</option>
<option value="2">Manual</option>
<option value="3">Intermittent Bolus</option>
</select>
</td>
</tr>
</table>
</div>
<div id="complexbuttons" style="padding-top:10px">
<a class="button wide invert" id="btn_proceedComplex" onclick="proceedComplex();">Proceed</a>
<a class="button wide muted right" id="btn_backComplex" onclick="toPageOne();">Back</a>
</div>
</div>
</div>
</div>
<div id="modalLoad" class="modal">
<div class="modal-content" id="modalLoadcontent">
<div class="modal-header" id="modalLoadTitle">LOAD SIM FILE<span id="load_about_btn" style="display: inline" onclick="displayloadabout();"><i class="fas fa-question-circle"></i></span></div>
<div class="modal-body" style="padding-bottom:0">
<span id="modalLoadDescription">Select a SIM-FILE to load:</span>
<div id="fileselection">
<input type='file' id='myFile' onchange='previewFile()' style='width: 100%' accept='.csv,.CSV,text/csv'/>
</div>
<div id="loadfile_container">
</div>
<div id="modalLoadHugeButtons">
Select source:
<a class="button huge" style="width:100%" onclick="loadSourceExt();">IMPORT FROM EXTERNAL <i class="fas fa-file-csv fa-fw"></i></a>
<div style="padding-left:12px"><i>This will import a previously saved SimTIVA database file (.csv)</i></div>
<div style="height:20px"></div>
<a class="button huge" style="width:100%" onclick="loadSourceLocal()">LOAD LOCAL SIMFILE <i class="fas fa-file-alt fa-fw"></i></a>
<div style="padding-left:12px"><i>This will load sim-files saved on device. You can also manage & export local sim-files.</i></div>
<div style="height:20px"></div>
<div> <a class="button muted right" onclick="toPageOneFromLoad();">Back</a></div>
<div style="height:30px"></div>
</div>
<div id="modalLoadNormalButtons">
<a class="button wide invert" id="btn_load" onclick="init_rescue(selected_uid);">Load Selection</a>
<a class="button muted right" onclick="toPageOneFromLoad();">Back</a>
<a class="button muted right" id="btn_manageFiles" onclick="manageFileList();">Manage</a>
<div><a class="button hide" id="btn_export" onclick="exportFunction()">Export all</a></div>
</div>
<div id="modalLoadImportButtons">
<a class="button wide invert disabled" id="btn_load_import" onclick="init_rescue(selected_uid,true)">Load Selection</a>
<a class="button muted right" onclick="toPageOneFromLoad();">Back</a>
</div>
</div>
</div>
</div>
<div id="modalWarning" class="modal alt">
<div class="modal-content alt" id="modalWarningcontent">
<div class="modal-header alt"><span class="title">Please wait</span><span class="close alt" onClick="hidewarningmodal()">×</span></div>
<div class="modal-body alt">SimTIVA is loading up...</div>
</div>
</div>
<div id="modalReset" class="modal">
<div class="modal-content" id="modalResetcontent">
<div class="modal-header">RELOAD</div>
<div class="modal-body" style="">
This will remove all patient data and start SimTIVA all over again. Are you sure?
<div style="padding-top:1rem; text-align:center">
<a class="button wide" onclick="location.reload();">Yes</a>
<a class="button wide" onclick="hideallmodal();">No</a>
</div>
</div>
</div>
</div>
<div id="modalRetrospective" class="modal">
<div class="modal-content" id="modalRetrospectivecontent">
<div class="modal-header">RETROSPECTIVE</div>
<div class="modal-body" style="">
<div style="padding:10px 0px">COURSE CORRECTION:
<br>This is to confirm that <span id="minsago">_</span> mins ago, i.e. at <span id="timeXago">_</span>...
<br> - Bolus <span id="displayRetroBolus">_</span>mg was given, and
<br> - Infusion rate was changed to <span id="displayRetroInfusion">_</span>ml/h.</div>
<div style="padding:10px 0px">WARNING:
<br>Once you have confirmed this action, the CET/CPT targeting scheme will be automatically cleared. You need to enter a new target in CET/CPT mode as soon as possible.</div>
<div style="padding-top:1rem; text-align:center">
<a class="button wide invert" onclick="confirmretrospective();">Confirm</a>
<a class="button" onclick="hideallmodal();hidemodal('modalRetrospective')">Cancel</a>
</div>
</div>
</div>
</div>
<div id="modalHistory" class="modal">
<div class="modal-content" id="modalHistorycontent">
<div class="modal-header">PAST SCHEMES</div>
<div class="modal-body" id="modalHistorytext">
</div>
</div>
</div>
<div id="modalExport" class="modal">
<div class="modal-content" id="modalExportcontent">
<div class="modal-header">EXPORT</div>
<div class="modal-body" id="">
This will export data to .CSV (comma-separated values): a file that can be opened in any spreadsheet program. The data can be used to plot graphs.
<br>
<br>Choose a time resolution (default is 10s) - which is the interval on the x-axis (lower value means more frequent data points). Choose the maximum duration of data capture (default is current time, in seconds); you can set this to up to two hours (7200s) beyond current time.
<table class="table-control" style="border-radius:9px; background:rgba(128,128,128,0.2);margin-top:10px">
<tr class="fr">
<td>Time resolution (s)</td>
<td><input type="number" inputmode="decimal" id="inputResolution" value="10" min="0" max="100000" step="1" placeholder=" " ></td>
</tr>
<tr>
<td>Max duration (s)</td>
<td><input type="number" inputmode="decimal" id="inputMaxDuration" min="0" max="1000000" step="1" placeholder=" "></td>
</table>
<br>
<div style="padding-top:1rem; text-align:center">
<a class="button wide invert" onclick="output(document.getElementById('inputResolution').value*1,document.getElementById('inputMaxDuration').value*1);hideallmodal();">Confirm</a><a class="button" onclick="hideallmodal();">Cancel</a>
<a id="downloadfile" style="display:none;">HERE</a>
</div>
</div>
</div>
</div>
<div id="modalHelp" class="modal">
<div class="modal-content" id="modalHelpcontent">
<div class="modal-header">HELP<span class="close" onClick="hidemodal('modalHelp')">×</span></div>
<div class="modal-body" style="overflow-y:auto; height:70vh;">
<b>Instructions for use</b>
<br>This is the Quick Start Guide. For details, please visit the separate User Manual.
<br><b>1.</b> Enter patient data on the first screen you see.
<br><b>2.</b> Choose a model
<br><b>3.</b> There are four modes: CP targeting, CE targeting, manual infusion, and intermittent bolus.
<br><b>4.</b> In addition, there is a Complex mode, which allows simultaneous simulation of propofol and an opioid.
<br>
<br><b>CP/CE targeting mode</b>
<br><b>1.</b> Enter desired CP/CE target.
<br><img src="preview.gif" style="width:100%; max-width:600px" loading="lazy">
<br><b>2.</b> While you are entering your target, a <span style="color:blue">blue</span> preview box will appear. This will guide your initial bolus and infusion rate.
<br><b>3.</b> Press Start, when your syringe pump setup is ready to go.
<br><b>4.</b> The predicted CP and CE will appear on top part of the screen. The 'Graph' section will preview CP/CE of the infusion regimen and the 'Scheme' section will guide you through the next rate changes to achieve and maintain your desired target concentration.
<br><img src="preview2.gif" style="width:100%; max-width:600px" loading="lazy">
<br><b>5.</b> When the next rate change is imminent, a <span style="color:red">red</span> reminder box will appear to notify you of the changes. Make the necessary change on your syringe pump.
<br>
<br><b>Intermittent Bolus Mode</b>
<br>In some settings, such as a short case in a remote location, or in low resource environment, it may not be possible to use any syringe pump at all. With the intermittent bolus mode, a series of repeated small manual boluses are generated, to simulate a target-controlled infusion as close as possible. The accuracy of the repeated intermittent manual bolus scheme is affected by the fluctuation of CE.
<br>
<br><b>Complex mode</b>
<br>In this mode, you may run two-drug simulations simultaneously. For each drug, the functions for CP or CE targeting, manual infusion, or intermittent bolus mode are preserved. In addition, you may explore the pharmacodynamic (PD) interaction between propofol and opioid, as propofol and opioid demonstrate intense synergism. Probability of tolerance to laryngoscopy (PTOL) is used as a measure of potency of propofol-opioid combination. Isobologram charts illustrate the propofol-opioid combinations to achieve the same pharmacodynamic effect.
<br>
<br><b>NB.</b> For the <span style="color:blue">blue</span> preview box, dosage recommendations may be slightly inaccurate because TCI is time-dependent: the moment you enter the target concentration, the preview starts to calculate; but this moment lags behind the moment of real target delivery when you click the 'Update Cpt/Cet' button.
<div style="padding-top:1rem; text-align:center">
<a class="button wide" onclick="hideallmodal();">Back</a>
</div>
</div>
</div>
</div>
<div id="modalDocumentation" class="modal">
<div class="modal-content" id="modalDocumentationcontent">
<div class="modal-header">DOCUMENTATION<span class="close" onClick="hidemodal('modalDocumentation')">×</span></div>
<div class="modal-body" style="overflow-y:auto; height:70vh;">
<b>Principles of TCI</b>
<br>TCI, or target-controlled infusions, allow an anaesthetist to enter a desired 'target' concentration to be achieved in the patient's plasma or brain into a computer-programmed syringe pump that utilizes pharmacokinetic models which receive covariates such as age and body weight and then the pump will deliver the desired 'target' concentration accurately, via typically a bolus followed by a decreasing infusion rate. In this SIMTIVA app, it only recommends a bolus/infusion regimen that simulates TCI, but it does not function as a syringe pump, so you have to manually adjust the drug dosages.
<br>
<br>The principles, practices and explanations for the pharmacokinetic models are available from this resource: Guidelines for the safe practice of total intravenous anaesthesia (TIVA), by the Association of Anaesthetists and the Society for Intravenous Anaesthesia. <a href="https://doi.org/10.1111/anae.14428" target="_blank">https://doi.org/10.1111/anae.14428</a>
<br>
<br>A pharmacokinetic model is a mathematical description of the distribution, metabolism and elimination of a drug in the body. The pharmacokinetic behaviour of most anaesthetic drugs used for TIVA can be predicted with a three‐compartment model. The drug is administered into the central compartment (V1), which represents the initial volume of distribution. The second (V2) and third (V3) compartments are mathematical constructs explaining rapid and slow redistribution of drug from V1 into highly perfused and less well perfused tissues, respectively. Rate constants describe the proportion of drug moving between compartments. A summary of the models used for propofol is available from this resource: Principles of total intravenous anaesthesia: basic pharmacokinetics and model descriptions by Al-Rifai Z et al. <a href="https://doi.org/10.1093/bjaceaccp/mkv021" target="_blank">https://doi.org/10.1093/bjaceaccp/mkv021</a> In this app, the specific model parameters (vc, v2-3, k10 and other rate constants, ke0) are given in the 'Model parameters' section after initial data entry.
<br>
<br>List of references for models:
<br>Marsh - (BJA 1991;67:41-8), 'fast' ke0 (Anesthesiology 2000;92:399-406)
<br>Schnider - (Anesthesiology 1998;88:1170-82)
<br>Paedfusor - (BJA 2003;91(4)507-513), Tpeak method (age-dependent: 0.91min-1 at 1y to 0.15min-1 at 16y) (BJA 2008;100(4):509-516)
<br>Eleveld (Propofol) - (BJA 2018:120:942-959)
<br>Minto - (Anesthesiology 1997;86:10-23)
<br>Eleveld (Remifentanil) - (Anesthesiology 2017;126:1005-18)
<div class="collapsible">Model calculations in details</div>
<div class="collapsiblecontent">
<b>Marsh</b>
<br>vc = 0.228 * mass;
<br>k10 = 0.119;
<br>k12 = 0.112;
<br>k13 = 0.0419;
<br>k21 = 0.055;
<br>k31 = 0.0033;
<br>ke0 = 1.21;
<br>
<br><b>Schnider</b>
<br>vc = 4.27;
<br>v2 = 18.9-0.391*(age-53);
<br>v3 = 238;
<br>cl1 = 1.89+0.0456*(mass-77)-0.0681*(lbm-59)+0.0264*(height-177);
<br>cl2 = 1.29-0.024*(age-53);
<br>cl3 = 0.836;
<br>k10 = cl1 / vc;
<br>k12 = cl2 / vc;
<br>k13 = cl3 / vc;
<br>k21 = cl2 / v2;
<br>k31 = cl3 / v3;
<br>ke0 = 0.456;
<br>
<br><b>Paedfusor</b>
<br>k12 = 0.114;
<br>k13 = 0.0419;
<br>k21 = 0.055;
<br>k31 = 0.0033;
<br>ke0 = 1.03*Math.exp(-0.12*age);
<br>if (age<13) { vc = 0.458 * mass; k10 = 0.153 * Math.pow(mass, -0.3);}
<br> else if (age>=13 && age<14) {vc = 0.4 * mass; k10 = 0.0678;}
<br> else if (age>=14 && age<15) {vc = 0.342 * mass; k10 = 0.0792;}
<br> else if (age>=15 && age<16) {vc = 0.284 * mass; k10 = 0.0954;}
<br> else if (age>=16) {vc = 0.229 * mass; k10 = 0.119;}
<br>
<br><b>Eleveld (Propofol)</b>
<div class="imageholder">
<img src="eleveld1.gif" class="imagecontent" loading="lazy"><img src="eleveld2.gif" class="imagecontent" loading="lazy">
</div>
<br>
<br><b>Minto</b>
<br>vc = 5.1-0.0201*(age-40)+0.072*(lbm-55)
<br>v2=9.82-0.0811*(age-40)+0.108*(lbm-55)
<br>v3=5.42
<br>cl1=2.6-0.0162*(age-40)+0.0191*(lbm-55)
<br>cl2=2.05-0.0301*(age-40)
<br>cl3=0.076-0.00113*(age-40)
<br>ke0=0.595-0.007*(age-40)
<br>
<br><b>Eleveld (Remifentanil)</b>
<div class="imageholder">
<img src="eleveld-r.png" class="imagecontent" loading="lazy">
</div>
</div>
<div style="padding-top:1rem; text-align:center">
<a class="button wide" onclick="hideallmodal();">Back</a>
</div>
</div>
</div>
</div>
<div id="modalShare" class="modal">
<div class="modal-content" id="modalSharecontent">
<div class="modal-header">SHARE / SAVE<span class="close" onClick="hidemodal('modalShare')">×</span></div>
<div class="modal-body">
<div>File Name (Max 32 char.)</div>
<div><input id="inputFileName" class="shareinput" onkeyup="updatedatatext()" placeholder="(optional)"></div>
<div id="sharecontainer">
<div id="shareimagecontainer">
<div style="margin:0; padding:0; height: calc(35vh + 2rem); text-align: center">
<span style="font-size:80%; opacity:0.7; letter-spacing: 1px; font-weight: bold">
IMAGE PREVIEW
</span>
<img id="shareimage">
</div>
<div style="text-align:center; padding-bottom:10px"><a class="button tinybutton" id="btn_shareimg" onclick="outputimage(1,document.getElementById('inputFileName').value);"><i class="fas fa-share-square fa-fw"></i>Share</a><a class="button tinybutton" id="btn_downloadimg" onclick="outputimage(0,document.getElementById('inputFileName').value);"><i class="fas fa-file-download fa-fw"></i>Download</a></div>
</div><!--
--><div id="sharedatacontainer">
<div style="margin:0; padding:0; height: calc(35vh + 2rem); text-align: center; position: relative; overflow:hidden">
<span style="font-size:80%; opacity:0.7; letter-spacing: 1px; font-weight: bold">
DATA/WEB LINK
</span>
<textarea readonly id="sharedatatext"></textarea>
<div id="copycheckmark"><i class="fas fa-check fa-fw"></i>copied</div>
</div>
<div style="text-align:center; padding-bottom: 10px"><a class="button tinybutton" id="btn_shareweblink" onclick="shareViewURL();"><i class="fas fa-link fa-fw"></i>Share</a><a class="button tinybutton" id="btn_copydatatext" onclick="copyfunction();"><i class="fas fa-clipboard fa-fw"></i>Copy</a></div>
</div>
</div> <!--end sharecontainer -->
</div>
</div>
</div>
<div id="modalAnnotate" class="modal">
<div class="modal-content" id="modalAnnotatecontent">
<div class="modal-header" id="modalAnnotatetitle">ADD EVENT<span class="close" onClick="hidemodal('modalAnnotate')">×</span></div>
<div class="modal-body">
<div style="font-weight:bold; font-style:italic">
Enter time of event:
</div>
<table class="time-select-container">
<tr style="opacity:0.7">
<td class="hidehours">Hrs</td>
<td class="hidehours"></td>
<td>Min</td>
<td></td>
<td>Sec</td>
<td></td>
</tr>
<tr>
<td class="hidehours" style="cursor: pointer" onclick="deltahours(1);"><i class="fas fa-chevron-up"></i></td>
<td class="hidehours"></td>
<td style="cursor: pointer" onclick="deltaminutes(1);"><i class="fas fa-chevron-up"></i></td>
<td></td>
<td style="cursor: pointer" onclick="deltaseconds(1)"><i class="fas fa-chevron-up"></i></td>
<td></td>
</tr>
<tr>
<td class="hidehours">
<select id="hh" class="time-select">
<option value="0">00</option>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
</select>
</td>
<td class="hidehours"> : </td>
<td>
<select id="mm" class="time-select">
<option value="0">00</option>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
</td>
<td> : </td>
<td>
<select id="ss" class="time-select">
<option value="0">00</option>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
</td>
<td><a style = "cursor: pointer" onclick="setnow(Math.floor(time_in_s));"> Now</a></td>
</tr>
<tr>
<td class="hidehours" style="cursor: pointer" onclick="deltahours(-1)"><i class="fas fa-chevron-down"></i></td>
<td class="hidehours"></td>
<td style="cursor: pointer" onclick="deltaminutes(-1)"><i class="fas fa-chevron-down"></i></td>
<td></td>
<td style="cursor: pointer" onclick="deltaseconds(-1)"><i class="fas fa-chevron-down"></i></td>
<td></td>
</tr>
</table>
<div style="padding-top: 18px; font-weight:bold; font-style:italic">
Enter event note:
</div>
<textarea id="addeventtext"></textarea>
<div style="padding-top:18px">
<a class="button invert" id="btn_submitevent" onclick="createEvent2(-1);">SUBMIT</a>
<a class="button muted right" onclick="modal=document.getElementById('modalAnnotate');hideallmodal()">CANCEL</a>
<a class="button muted right" onclick="deleteevent();" id="btn_deleteevent" style="display:none">DELETE</a>
</div>
</div>
</div>
</div>
<div id="modalJump" class="modal">
<div class="modal-content" id="modalJumpcontent">
<div class="modal-header" id="modalJumptitle">Jump to time<span class="close" onClick="hidemodal('modalJump')">×</span></div>
<div class="modal-body">
<div style="font-weight:bold; font-style:italic">
Choose an action
</div>
<select id="timeFxTimeMode" onchange="setnow2(Math.floor(time_in_s))" style="width:100%">
<option value="0">Move forward (relative to present)</option>
<option value="1">Move backward (relative to present)</option>
<option value="2" selected>Jump to time point</option>
</select>
<table class="time-select-container">
<tr style="opacity:0.7">
<td class="">Hrs</td>
<td class=""></td>
<td>Min</td>
<td></td>
<td>Sec</td>
<td></td>
</tr>
<tr>
<td class="" style="cursor: pointer" onclick="deltahours2(1);"><i class="fas fa-chevron-up"></i></td>
<td class=""></td>
<td style="cursor: pointer" onclick="deltaminutes2(1);"><i class="fas fa-chevron-up"></i></td>
<td></td>
<td style="cursor: pointer" onclick="deltaseconds2(1)"><i class="fas fa-chevron-up"></i></td>
<td></td>
</tr>
<tr>
<td class="">
<select id="hh2" class="time-select">
<option value="0">00</option>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
</select>
</td>
<td class=""> : </td>
<td>
<select id="mm2" class="time-select">
<option value="0">00</option>
<option value="1">01</option>
<option value="2">02</option>
<option value="3">03</option>
<option value="4">04</option>
<option value="5">05</option>
<option value="6">06</option>
<option value="7">07</option>
<option value="8">08</option>
<option value="9">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>