-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1433 lines (1250 loc) · 75.1 KB
/
index.html
File metadata and controls
1433 lines (1250 loc) · 75.1 KB
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="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="favicon.ico">
<title>ePiE</title>
<!-- libraries -->
<script src="lib/leaflet.js"></script>
<script src="lib/xlsx.full.min.js"></script>
<script src="lib/math.js"></script>
<!-- <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script> -->
<!-- <script src="https://unpkg.com/leaflet/dist/leaflet.js"></script> -->
<!-- stylesheets -->
<link rel="stylesheet" href="css/leaflet.css"/>
<link rel="stylesheet" href="css/style.css"/>
<!-- global variables -->
<script>
// UI state vars
var current_tab = 'Welcome_screen';
var basinMapCreated = false;
var lockedTabs = {Welcome_screen: false, File_browser: false, API_properties: false, Basin_select: false, Run_process: false, Map_results: false};
lockedTabs['Welcome_screen'] = false;
// global setup var
var selected_basins = [];
var selected_basins_names = [];
selected_basins.splice(0,selected_basins.length)
selected_basins_names.splice(0,selected_basins_names.length)
// chem properties table data
var APIExcelTemplateFullPath = "./data/model_inputs/API_template.xlsx";
// base path of hydrological data (end with "/"!)
var baseHydroDataPath = "../data/resources/basins_js2/";
// global vars holding big pts, hl and flow data
var global_pts_data = null;
var global_hl_data = null;
var global_flow_data = null;
// variable to hold ePiE results
var epie_results = null;
// var epie_results_geom = null;
</script>
<!-- functions -->
<script src="assets/openTab.js"></script>
<script src="assets/copyOverAPI_ID.js"></script>
<script src="assets/copyOverAPI_ID.js"></script>
<script src="assets/saveTabValues.js"></script>
<script src="assets/editTabValues.js"></script>
<script src="assets/openCloseCollapsible.js"></script>
<script src="assets/getFlowSelection.js"></script>
<script src="assets/populationPerCapConversion.js"></script>
<script src="assets/createBasinMap.js"></script>
<script src="assets/completeChemProperties.js"></script>
<script src="assets/getExcelAPIDataTemplate.js"></script>
<script src="assets/loadExcelData.js"></script>
<script src="assets/getSetChemProperties.js"></script>
<script src="assets/simpleTreat4_0.js"></script>
<script src="assets/accessBasinDB.js"></script>
<script src="assets/generateConsumptionTable.js"></script>
<script src="assets/getCountriesConsPop.js"></script>
<script src="assets/checkTabLocks.js"></script>
<script src="assets/getSetAllSettings.js"></script>
<script src="assets/createOutputMap.js"></script>
<script src="assets/createPNECOutputMap.js"></script>
<script src="assets/calculateBasinStatistics.js"></script>
<script src="assets/calculateRiskStatistics.js"></script>
<script src="assets/setAllPNECvals.js"></script>
<script src="assets/saveStatsToExcel.js"></script>
<script src="assets/saveStatsToExcelRisks.js"></script>
<!-- epie -->
<script type="module" src="assets/epie/RunModelePiE.js"></script>
<!-- local epie data -->
<script src="data/basin_geo/Basin.js"></script>
<script src="data/model_inputs/example_chem.js"></script>
<script src="data/resources/basins_js2/BasinIndex.js"></script>
<!-- new UI reformatting style -->
<style>
:root {
--bg: #f7f8fa;
--sidebar-bg: #ffffff;
--card-bg: #ffffff;
--border: #e5e7eb;
--text-dark: #1f2937;
--text-muted: #6b7280;
--accent: #2563eb;
}
body {
margin: 0;
font-family: Arial, sans-serif;
background: var(--bg);
display: flex;
height: 100vh;
overflow-y: hidden !important;
color: var(--text-dark);
}
/* Sidebar */
.sidebar {
min-width: 180px;
width: 200px !important;
background: var(--sidebar-bg);
border-right: 1px solid var(--border);
padding: 20px 16px;
display: flex;
flex-direction: column;
gap: 24px;
opacity: 0.1; /* start with low opacity, will be set to 1 after disclaimer is accepted */
}
.sidebar h1 {
margin: 0;
font-size: 20px;
font-weight: bold;
padding: 5px 12px;
}
.sidebar nav {
display: flex;
flex-direction: column;
gap: 12px;
}
.sidebar button {
padding: 10px 12px;
font-size: 14px;
border: none;
background: none;
text-align: left;
color: var(--text-muted);
border-radius: 8px;
cursor: pointer;
position: relative;
transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.sidebar button::after {
content: "";
position: absolute;
left: 0;
bottom: -2px;
width: 100%;
height: 2px;
background: var(--accent);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.25s ease;
border-radius: 2px;
}
.sidebar button:hover {
background: #f3f4f6;
color: var(--text-dark);
transform: translateX(4px);
}
.sidebar button:hover::after {
transform: scaleX(1.0);
left: 5px;
width: calc(100% - 10px);
}
.sidebar button:hover {
background: #f3f4f6;
color: var(--text-dark);
}
/* Main layout */
.main {
flex: 1;
display: flex;
flex-direction: column;
padding: 24px;
overflow: auto;
overflow-x: hidden;
opacity: 0.1; /* start with low opacity, will be set to 1 after disclaimer is accepted */
}
.page-title {
font-size: 26px;
margin-bottom: 24px;
font-weight: bold;
}
/* Grid layout with cards */
.grid {
display: grid;
grid-template-columns: 50% 1fr;
gap: 24px;
/* height: calc(100vh - 200px); */
height: auto;
}
/* Card panels */
.card {
max-width: 1350px;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.card h3 {
margin-top: 0;
font-size: 18px;
margin-bottom: 16px;
}
a {
color: #374151; /* darker gray—still subtle, more visible */
text-decoration: none;
position: relative;
padding: 2px 0;
background: #f3f4f6; /* soft highlight matching your UI */
transition: color 0.25s ease, background 0.25s ease;
border-radius: 4px;
}
a::after {
content: "";
position: absolute;
left: 0;
bottom: -1px;
width: 100%;
height: 2px; /* more noticeable */
background: #2563eb; /* your accent blue */
transform: scaleX(0);
transform-origin: left;
transition: transform 0.25s ease;
}
a:hover {
color: #1f2937; /* stronger text color */
background: #f3f4f6; /* soft highlight matching your UI */
border-radius: 4px;
}
a:hover::after {
transform: scaleX(1);
}
/* Subtle Animations */
.card {
transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
transform: translateY(0px);
/* box-shadow: 0 4px 12px rgba(0,0,0,0.06); */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
/* Fade-in on load */
body {
opacity: 0;
animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Smooth slide-in panels */
.sidebar {
animation: slideInLeft 0.6s ease;
}
@keyframes slideInLeft {
from { transform: translateX(-30px); opacity: 0; }
to { transform: translateX(0); opacity: 0.1; }
}
.main {
animation: slideInUp 1.2s ease;
}
@keyframes slideInUp {
from { transform: translateY(20px); opacity: 0; }
to { transform: translateY(0); opacity: 0.1; }
}
/* disclaimer + acknowledgments banner */
.disclaimer_grid {
background-color: #ebf6dd; padding: 10px;max-width: 1360px; overflow: hidden;
border-radius: 12px; display: grid;grid-template-columns: 1fr 1fr 1fr 1fr 5fr; gap: 5px;
}
.disclaimer_logo {
background-color: #00000000;text-align: center;padding: 10px;font-size: 1px;
}
.disclaimer_txt {
background-color: #00000000;text-align: left;padding: 2px;font-size: 11px;padding-top: 10px;
}
@media (max-width: 1700px) {
.disclaimer_txt {
padding-top: 5px;
}
}
@media (max-width: 1400px) {
.disclaimer_txt {
background-color: #00000000;text-align: left;padding: 3px;font-size: 10px;
}
.disclaimer_grid {
gap: 3px;
}
}
/* if screenwidth < 1200px */
@media (max-width: 1200px) {
.disclaimer_grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.disclaimer_txt {
background-color: #00000000;text-align: center;padding: 10px;font-size: 10px; grid-column-start: 1;grid-column-end: 5;
}
}
/* mobileWarning */
#mobileWarning{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ffffff;
border: 2px solid #ff0000;
border-radius: 12px;
padding: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
text-align: center;
z-index: 1000;
width: 80%;
max-width: 400px;
display: none;
}
/* if screenwidth < 900px */
@media (max-width: 900px) {
#mobileWarning{
display: block;
}
.main, .sidebar {
opacity: 0.1;
}
}
/* Custom checkbox */
.checkbox-container {
display: flex;
align-items: center;
gap: 10px;
font-family: Arial, sans-serif;
font-size: 16px;
cursor: pointer;
margin-top: 5px;
margin-bottom: 5px;
}
/* Hide default checkbox */
.checkbox-container input {
display: none;
}
/* Custom checkbox */
.checkmark {
width: 20px;
height: 20px;
border: 2px solid #1f2937;
border-radius: 6px;
position: relative;
transition: all 0.2s ease;
}
/* Checked background */
.checkbox-container input:checked + .checkmark {
background-color: #2563eb;
}
/* Check icon */
.checkmark::after {
content: "";
position: absolute;
display: none;
}
/* Show check */
.checkbox-container input:checked + .checkmark::after {
display: block;
}
/* Check shape */
.checkbox-container .checkmark::after {
left: 6px;
top: 2px;
width: 5px;
height: 10px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.checkbox-container:hover .checkmark {
border-color: #2563eb;
}
</style>
</head>
<body>
<div id="mobileWarning">
<h2>Warning: ePiE is not optimized for mobile devices or small screens</h2>
<p>Please use a desktop or laptop computer to access the full functionality of the ePiE application.</p>
<p>We apologize for any inconvenience.</p>
</div>
<div id="disclaimerWarning">
<h2 style="margin-top:0px;margin-bottom:0.5em;">Legal disclaimer</h2>
<p>By accessing or using the ePiE web application, including the data contained therein, you agree to the terms of this Disclaimer. If you do not agree, you must not use the ePiE web application.</p>
<p>This web application is continuously in development and subject to change. It is maintained and controlled by the Department of Environmental Science from Radboud University in The Netherlands. The application was developed within the context of the IMI2 PREMIER project. Access to the application is being provided in furtherance of the IMI2 PREMIER objectives.</p>
<p>Use of the web application is at your own risk. The web application is provided "as is" without warranty of any kind, express or implied. Neither Radboud University nor any of the IMI2 PREMIER CONSORTIUM members accept any responsibility or liability whatsoever (including, but not limited to, any direct or consequential loss or damage) arising from or in connection with the access to and use of the web application, or the quality, accuracy and/or the completeness of the data contained in the web application.</p>
<p>Use of the ePiE web application is not permitted for commercial purposes.</p>
<p>Users must provide appropriate acknowledgment in accordance with applicable scientific standards when using results of the web application in publications, presentations, or other forms of dissemination.</p>
<p>PREMIER has received funding from the Innovative Medicines Initiative 2 Joint Undertaking (JU) under grant agreement No 875508. The JU receives support from the EU’s Horizon 2020 research and innovation programme and the European Federation of Pharmaceutical Industries and Associations (EFPIA). The JU is not responsible for any use that may be made of the information this web application contains.</p>
<h2 style="margin-top:0px;margin-bottom:0.5em;">Privacy policy</h2>
<p>The ePiE web application does not store any personal data or user information. All data is processed and displayed in the browser only, and no information is sent to any server, the data will be cleared from the browser's memory when the user closes the application.</p>
<label class="checkbox-container">
<input id="agreeCheckbox" type="checkbox"><span class="checkmark"></span>I have read the disclaimer.
</label>
<!-- Agree / Disagree -->
<!-- If you like you can add a line of the storage of privacy related data. I guess you know better than I do what to say there. -->
<button id="agreeDisclaimer" class="action_button" onclick="removeDisclaimer()">Accept</button>
<button id="disagreeDisclaimer" class="action_button" onclick="window.location.href='https://imi-premier.eu/';">Decline</button>
</div>
<div class="sidebar">
<h1>ePiE</h1>
<nav>
<button id="tablink_Welcome_screen" class="tablinks" onclick="openTabWrapper(event, 'Welcome_screen')">Welcome</button>
<!-- <button id="tablink_File_browser" class="tablinks" onclick="openTabWrapper(event, 'File_browser')">File Browser</button> -->
<button id="tablink_API_properties" class="tablinks" onclick="openTabWrapper(event, 'API_properties')">API properties</button>
<button id="tablink_Degradation_select" class="tablinks" onclick="openTabWrapper(event, 'Degradation')">WWTP removal</button>
<button id="tablink_Basin_select" class="tablinks" onclick="openTabWrapper(event, 'Basin_select')">River basin</button>
<button id="tablink_Consumption_select" class="tablinks" onclick="openTabWrapper(event, 'Consumption')">Consumption data</button>
<button id="tablink_Run_process" class="tablinks" onclick="openTabWrapper(event, 'Run_process')">Run ePiE</button>
<button id="tablink_Map_results" class="tablinks" onclick="openTabWrapper(event, 'Map_results')">Map results</button>
<button id="tablink_Basin_result_stats" class="tablinks" onclick="openTabWrapper(event, 'Basin_result_stats')">Output statistics</button>
<button id="tablink_PNEC_Map_results" class="tablinks" onclick="openTabWrapper(event, 'PNEC_Map_results')">Map risks</button>
<button id="tablink_Risk_result_stats" class="tablinks" onclick="openTabWrapper(event, 'Risk_result_stats')">Risk statistics</button>
<button id="tablink_full_settings" class="tablinks" onclick="openTabWrapper(event, 'full_settings')">View Settings</button>
</nav>
</div>
<!-- <div class="tabbuffer"></div> -->
<div class="main"><div class="page-title">XXX</div>
<div id="Welcome_screen" class="tabcontent"><div class="grid">
<div class="card" style="grid-column: span 2;">
<h3>About</h3>
<p style="margin-bottom: 16px; max-width: 1250px;">ePiE is a spatially explicit model that estimates concentrations
of
active pharmaceutical ingredients (APIs) in surface waters across Europe (<a
href="https://pubs.acs.org/doi/10.1021/acs.est.8b03862" target="_blank">Oldenkamp et al. 2018</a>).
Based on relatively few data entries such as national consumption data, compound properties and environmental fate
parameters,
the ePiE model estimates average pharmaceutical concentrations in European river catchments.
This application was developed by Selwyn Hoeks at Radboud University supported by the PREMIER project to
facilitate the use of the ePiE model.
</p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Instructions</h3>
<p>By clicking through the different tabs at the top of the page, you can parameterize and run the ePiE model. For
defining the API properties there are two options:</p>
<!-- <p><b>Contact details:</b> selwyn.hoeks@ru.nl</p> -->
<ul>
<li style="margin-top: 8px">You can make use of a pre-defined list of APIs for which the model is already parametrized (used by <a
href="https://pubs.acs.org/doi/10.1021/acs.est.8b03862" target="_blank">Oldenkamp et al. 2018</a>).
This can be done by downloading the template using the "Get Excel template" button on the API properties tab.</li>
<li style="margin-top: 8px">The ePiE model can be parameterized by for new APIs by providing the required data entries. </li>
</ul>
<p style="margin-bottom:0px;display:none;">
A comprehensive manual can be found here: <a
href="https://shoeks.github.io/static_html/workinprogress.html" target="_blank">manual</a></p>
<p style="display:none;">
More details about the model equations can be found here: <a
href="https://pubs.acs.org/doi/abs/10.1021/acs.est.8b03862" target="_blank">technical details</a></p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Model version</h3>
<!-- <p>Please check the following link to check if a more recent version is available:
<a href="https://shoeks.github.io/ePiE_desktopApp/" target="_blank">check for updates</a>
</p> -->
<p style="margin-bottom: 2px;">Current version: <b id="appversionbox">2.0</b></p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Questions & support</h3>
<p>For any questions, please contact Selwyn Hoeks via email: <a href="mailto:selwyn.hoeks@ru.nl">selwyn.hoeks@ru.nl</a>.</p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Acknowledgement & disclaimer</h3>
<div class="disclaimer_grid">
<div class="disclaimer_logo">
<img src="assets/disclaimer_banner/RU_logo_NL.png" alt="RADBOUD" style="max-height: 40px;" />
</div>
<div class="disclaimer_logo">
<img src="assets/disclaimer_banner/IMILogo2014-HorizPos.png" alt="IMI" style="max-height: 40px;" />
</div>
<div class="disclaimer_logo">
<img src="assets/disclaimer_banner/Efpia_Logo.png" alt="EFPIA" style="max-height: 40px;" />
</div>
<div class="disclaimer_logo">
<img src="assets/disclaimer_banner/Flag_of_Europe.png" alt="Europe" style="max-height: 40px;" />
</div>
<div class="disclaimer_txt">
This project has received funding from the Innovative Medicines Initiative 2 Joint Undertaking (JU) under grant agreement No 875508.
The JU receives support from the European Union's Horizon 2020 research and innovation programme and EFPIA.
Disclaimer: This presentation reflects only the author's view, and the JU is not responsible for any use that may be made of the information it contains herein.
</div>
</div>
</div>
</div></div>
<div id="File_browser" class="tabcontent">
<div class="container mt-2">
<h4>{{ path }}</h4>
<div class="form-group mt-4 mb-2">
<input v-model="searchString" class="form-control form-control-sm" placeholder="File search" />
</div>
<FilesViewer :files="filteredFiles" :nested="nested" @back="back" @folderclick="open($event.name)" />
</div>
</div>
<div id="API_properties" class="tabcontent"><div class="grid">
<div class="card" style="grid-column: span 2;">
<h3>Instructions</h3>
<!-- <p>API specific physicochemical and environmental fate parameters can be entered here (using the tables below). Alternatively, API parameters can be loaded from an Excel file. An Excel template can be retrieved from the button below.</p> -->
<p style="max-width: 1250px;">
In this tab, the API's physicochemical properties as well as fate properties need to be specified.
API properties can be entered manually using the tables below or loaded from an Excel file. An Excel template with
the values for 36 example APIs can be retrieved from the button 'Get Excel template'.
The Excel template includes a pre-defined list of APIs for which the model is already parametrized, these can be
used directly, modified or replaced by new APIs.
<!-- In addition, the Excel template includes a metadata sheet with explanations for each parameter as well as the corrosponding unit. -->
</p>
<ol style="max-width: 800px;">
<li>For a new API you need to provide at least input values for Table 1 (compound properties), either fill them
manually using the "Edit table" button or load the parameters from an Excel file.</li>
<li>Values specified in Table 2 (fate parameters) can be filled when known or estimated using build-in QSARs by
clicking the 'Calculate default values' button above Table 2.</li>
</ol>
<p>
All values need to be filled in both tables need to be filled to continue.
</p>
<!-- <p style="margin-top: 10px; margin-bottom: 0px;">Initial API properties</p> -->
<div style="margin-bottom: 1px;">
<button type="button" class="action_button" onclick="getExcelAPIDataTemplateWrapper()">Get Excel template</button>
<button type="button" class="action_button" id="uploadChemExcel" onclick="loadExcelData()">Read Excel data</button>
<div id="selectorContainer" style="display:none;">
<p>Select API in uploaded Excel file:</p>
<select id="rowExcelSelector"></select>
</div>
</div>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Table 1 - API properties</h3>
<p>Please hover over the table headers to get an explanation of each parameter. If the table is too wide, please scroll horizontally to see all columns.</p>
<div style="margin-bottom: 1px;">
<button type="button" class="action_button" id="edit" onclick="editTabValues()">Edit table</button>
<button type="button" class="action_button" id="save" onclick="saveTabValues()">Save table</button>
<!-- <button type="button" class="action_button" onclick="addAPItableRow()">Insert row</button> -->
<!-- <button type="button" class="action_button" onclick="removeLastAPItableRow()">Remove row</button> -->
<div id="API_table1_help_box" class="help_box_holder_style" style="display: inline-block;">
<p class="help_box_style" style="visibility: hidden;" id="t1_h1">Name of the active pharmaceutical ingredient (API)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h2">CAS number (API identifier)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h3">Chemical class of the API (neutral/acid/base)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h4">Molecular weight (g/mol)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h5">Octanol/water partitioning coefficient of the neutral form (-)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h6">Vapour pressure at 25 °C (Pa)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h7">Solubility in water at 25 °C (mg/L)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h8">Acid dissociation coefficient (-)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h9">Fraction of dose excreted unchanged via urine (-)</p>
<p class="help_box_style" style="visibility: hidden;" id="t1_h10">First order biodegradation rate constant for secondary treatment (per second)</p>
</div>
</div>
<form class="API_table_form" id="form_table1_chem" style="overflow-x: auto;">
<table id="API_table" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<th class="api tableHeader" id="t1_c1" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">API<br>
<p>(id)</p>
<!-- <span class="secondSpan">Name of the active pharmaceutical ingredient (API)</span> -->
</span> </th>
<th class="api tableHeader" id="t1_c2" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)">
<span class="firstSpan">CAS<br><p>(number)</p>
<!-- <span class="secondSpan">CAS number</span> -->
</span> </th>
<th class="api tableHeader" id="t1_c3" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">class<br>
<p>(neutral/acid/base)</p>
<!-- <span class="secondSpan">Chemical class of the API <p class="hover_unit">(neutral/acid/base)</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c4" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">MW<br>
<p>(g/mol)</p>
<!-- <span class="secondSpan">Molecular weight (for APIs that are salts: preferably entermolecular weight of free acid/base) <p class="hover_unit">(g/mol)</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c5" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">KOW_n<br>
<p>(-)</p>
<!-- <span class="secondSpan">Octanol/water partitioning coefficient of the neutral form<p class="hover_unit">-</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c6" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Pv<br><p>(Pa)</p>
<!-- <span class="secondSpan">Vapour pressure at 25 °C <p class="hover_unit">Pa</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c7" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">S<br>
<p>(mg/L)</p>
<!-- <span class="secondSpan">Solubility in water at 25 °C <p class="hover_unit">mg/L</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c8" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">pKa<br>
<p>(-)</p>
<!-- <span class="secondSpan">Acid dissociation coefficient <p class="hover_unit">-</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c9" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">f_uf<br>
<p>(-)</p>
<!-- <span class="secondSpan">Fraction of dose excreted unchanged via urine <p class="hover_unit">-</p></span> -->
</span> </th>
<th class="api tableHeader" id="t1_c10" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">k_bio_wwtp<br>
<p>(s-1)</p>
<!-- <span class="secondSpan">First order biodegradation rate constant for secondary treatment <pclass="hover_unit">unit</p></span> -->
</span> </th>
<!-- <th class="api tableHeader">metab</th>
<th class="api tableHeader">API_metab</th> -->
</tr>
<tr>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="name_row1" value="Ibuprofen" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="cas_row1" value="15687-27-1" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="class_row1" value="acid" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="MW_row1" value="206.2808" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="KOW_n_row1" value="9332.543" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="Pv_row1" value="0.0248" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="S_row1" value="21" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="pKa_row1" value="4.85" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="f_uf_row1" value="0.2" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField" type="text" id="k_bio_wwtp_row1" value="0.0" readonly /></td>
<!-- <td><input style="width: 100px;" class="tableField" type="text" id="metab_1" value="0" readonly /></td>
<td><input style="width: 100px;" class="tableField" type="text" id="API_metab_1" value="" readonly /></td> -->
</tr>
</tbody>
</table>
</form>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Table 2 - API-specific fate parameters</h3>
<!-- <p>tabcontent.</p> -->
<!-- <p style="margin-top: 40px; margin-bottom: 0px;">Complete API properties</p> -->
<!-- <p style="margin-top: 10px; margin-bottom: 0px;">Derived API properties</p> -->
<div style="margin-bottom: 1px;">
<button id="runAPIcompletebtn" type="button" class="action_button" onclick="runAPICompleteWrapper()">Calculate
default values</button>
<button type="button" class="action_button" id="edit" onclick="editTabValues()">Edit table</button>
<button type="button" class="action_button" id="save2" onclick="saveTabValues()">Save table</button>
<!-- <button type="button" class="action_button" onclick="addAPItableRow()">Insert row</button> -->
<!-- <button type="button" class="action_button" onclick="removeLastAPItableRow()">Remove row</button> -->
<div id="API_table2_help_box" class="help_box_holder_style" style="display: inline-block;">
<!-- table 2 t2 -->
<p class="help_box_style" style="visibility: hidden;" id="t2_h1">Name of the active pharmaceutical ingredient (API)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2_h2">Sewage-solids water partitioning coefficient of neutral form (L water/kg solids)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2_h3">Activated sludge-solids water partitioning coefficient of neutral form (L water/kg solids)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2_h4">Sediment-water partitioning coefficient of neutral form (L water/kg sediment)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2_h5">Soil organic carbon-water partition coefficient of the neutral form (L water/kg solids)</p>
<!-- table 2 alt t2a -->
<p class="help_box_style" style="visibility: hidden;" id="t2a_h1">Name of the active pharmaceutical ingredient (API)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2a_h2">Octanol/water partitioning coefficient of the alternative form (-)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2a_h3">Sewage-solids water partitioning coefficient of alternative form (L water/kg solids)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2a_h4">Activated sludge-solids water partitioning coefficient of alternative form (L water/kg solids)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2a_h5">Sediment-water partitioning coefficient of alternative form (L water/kg sediment)</p>
<p class="help_box_style" style="visibility: hidden;" id="t2a_h6">Soil organic carbon-water partition coefficient of the alternative form (L water/kg solids)</p>
</div>
</div>
<form class="API_table_form" id="form_table2_chem" style="overflow-x: auto;">
<table id="API_table2" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<!-- Kp_ps; Kp_as; Kp_susp; Kp_sd; KOC; k_bio_wwtp; k_bio_sw1; T_bio_sw; k_bio_sd1; T_bio_sd; k_hydro_sw; T_hydro_sw; k_hydro_sd; T_hydro_sd; lambda_solar; k_photo12_sw; -->
<th class="api2 tableHeader2" id="t2_c1" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">API<br>
<p>(id)</p>
<!-- <span class="secondSpan"> Name of the active pharmaceutical ingredient (API) </span> -->
</span> </th>
<!--<th class="api2 tableHeader2"> <span class="firstSpan">KOW_n<br><p>(-)</p><span class="secondSpan">Octanol/water partitioning coefficient of the neutral form<p class="hover_unit">-</p></span></span> </th> -->
<th class="api2 tableHeader2" id="t2_c2" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Kp_ps_n<br>
<p>(L/kg)</p>
<!-- <span class="secondSpan">Sewage-solids water partitioning coefficient of neutral form <p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2 tableHeader2" id="t2_c3" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Kp_as_n<br>
<p>(L/kg)</p>
<!-- <span class="secondSpan">Activated sludge-solids water partitioning coefficient of neutral form <p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2 tableHeader2" id="t2_c4" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Kp_sd_n<br>
<p>(L/kg)</p>
<!-- <span class="secondSpan">Sediment-solids water partitioning coefficient of neutral form <p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2 tableHeader2" id="t2_c5" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)">
<span class="firstSpan">KOC_n<br><p>(L/kg)</p>
<!-- <span class="secondSpan"> ... <p class="hover_unit">...</p></span> -->
</span> </th>
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">k_bio_wwtp_n<br><p>(s-1)</p><span class="secondSpan">First order biodegradation rate constant secondary treatment of neutral form <p class="hover_unit">s-1</p></span></span> </th> -->
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">k_bio_sw1_n<br><p>(s-1)</p><span class="secondSpan">Pseudo-first order experimental biodegradation rate constant in surface water of neutral form <p class="hover_unit">s-1</p></span></span> </th>-->
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">T_bio_sw_n<br><p>(K)</p><span class="secondSpan">Temperature at which kbio in surface water was derived of neutral form <p class="hover_unit">K</p></span></span> </th> -->
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">k_hydro_sw_n<br><p>(s-1)</p><span class="secondSpan">First order experimental hydrolysis rate constant in surface water of neutral form <p class="hover_unit">s-1</p></span></span> </th> -->
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">T_hydro_sw_n<br><p>(K)</p><span class="secondSpan">Temperature at which khydro in surface water was derived of neutral form <p class="hover_unit">K</p></span></span> </th> -->
<!-- <th class="api2 tableHeader2"> <span class="firstSpan">lambda_solar_n<span class="secondSpan">... <p class="hover_unit">... </p></span></span> </th>
<th class="api2 tableHeader2"> <span class="firstSpan">k_photo12_sw_n<span class="secondSpan">... <p class="hover_unit">... </p></span></span> </th>
<th class="api2 tableHeader2"> <span class="firstSpan">T_photo12_sw_n<span class="secondSpan">... <p class="hover_unit">K</p></span></span> </th> -->
</tr>
<tr>
<td><input style="width: 120px;text-align: center;" class="tableField2" type="text" id="API_ID_tab2_row1" value="" readonly /></td>
<!--<td><input style="width: 120px;" class="tableField2" type="text" id="KOW_n_row1" value="" readonly /></td>-->
<td><input style="width: 120px;text-align: center;" class="tableField2" type="text" id="Kp_ps_n_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2" type="text" id="Kp_as_n_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2" type="text" id="Kp_sd_n_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2" type="text" id="KOC_n_row1" value="" readonly /></td>
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="k_bio_wwtp_n_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="k_bio_sw1_n_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="T_bio_sw_n_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="k_hydro_sw_n_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="T_hydro_sw_n_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2" type="text" id="lambda_solar_n_row1" value="" readonly /></td>
<td><input style="width: 120px;" class="tableField2" type="text" id="k_photo12_sw_n_row1" value="" readonly /></td>
<td><input style="width: 120px;" class="tableField2" type="text" id="T_photo12_sw_n_row1" value="" readonly /></td> -->
</tr>
</tbody>
</table>
</form>
<form class="API_table_form" id="form_table2alt_chem" style="overflow-x: auto;">
<table id="API_table2alt" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<!-- Kp_ps; Kp_as; Kp_susp; Kp_sd; KOC; k_bio_wwtp; k_bio_sw1; T_bio_sw; k_bio_sd1; T_bio_sd; k_hydro_sw; T_hydro_sw; k_hydro_sd; T_hydro_sd; lambda_solar; k_photo12_sw; -->
<th class="api2 tableHeader2alt" id="t2a_c1" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">API<br>
<p>(id)</p>
<!-- <span class="secondSpan">Name of the active pharmaceutical ingredient (API)</span> -->
</span> </th>
<th class="api2alt tableHeader2alt" id="t2a_c2" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">KOW_alt<br>
<p>(-)</p>
<!-- <span class="secondSpan">Octanol/water partitioning coefficient of the alternative form<p class="hover_unit">-</p></span> -->
</span> </th>
<th class="api2alt tableHeader2alt" id="t2a_c3" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Kp_ps_alt<br>
<p>(L/kg)</p>
<!-- <span class="secondSpan">Sewage-solids water partitioning coefficient of alternative form<p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2alt tableHeader2alt" id="t2a_c4" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)">
<span class="firstSpan">Kp_as_alt<br><p>(L/kg)</p>
<!-- <span class="secondSpan">Activated sludge-solids water partitioning coefficient of alternative form <p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2alt tableHeader2alt" id="t2a_c5" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">Kp_sd_alt<br>
<p>(L/kg)</p>
<!-- <span class="secondSpan">Sediment-solids water partitioning coefficient of alternative form <p class="hover_unit">L water/kg solids</p></span> -->
</span> </th>
<th class="api2alt tableHeader2alt" id="t2a_c6" onmouseover="helpBoxT1(this)" onmouseout="helpBoxT1Out(this)"> <span class="firstSpan">KOC_alt<br>
<p>(-)</p>
<!-- <span class="secondSpan"> ... <p class="hover_unit">...</p></span> -->
</span> </th>
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">k_bio_wwtp_alt<br><p>(s-1)</p><span class="secondSpan">First order biodegradation rate constant secondary treatment of alternative form <p class="hover_unit">s-1</p></span></span> </th> -->
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">k_bio_sw1_alt<br><p>(s-1)</p><span class="secondSpan">Pseudo-first order experimental biodegradation rate constant in surface water of alternative form <p class="hover_unit">s-1</p></span></span> </th> -->
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">T_bio_sw_alt<br><p>(K)</p><span class="secondSpan">Temperature at which kbio in surface water was derived of alternative form <p class="hover_unit">K</p></span></span> </th> -->
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">k_hydro_sw_alt<br><p>(s-1)</p><span class="secondSpan">First order experimental hydrolysis rate constant in surface water of alternative form <p class="hover_unit">s-1</p></span></span> </th> -->
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">T_hydro_sw_alt<br><p>(K)</p><span class="secondSpan">Temperature at which khydro in surface water was derived of alternative form <p class="hover_unit">K</p></span></span> </th> -->
<!-- <th class="api2alt tableHeader2alt"> <span class="firstSpan">lambda_solar_n<span class="secondSpan">... <p class="hover_unit">... </p></span></span> </th>
<th class="api2alt tableHeader2alt"> <span class="firstSpan">k_photo12alt_sw_n<span class="secondSpan">... <p class="hover_unit">... </p></span></span> </th>
<th class="api2alt tableHeader2alt"> <span class="firstSpan">T_photo12alt_sw_n<span class="secondSpan">... <p class="hover_unit">K</p></span></span> </th> -->
</tr>
<tr>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="API_ID_tab2alt_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="KOW_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="Kp_ps_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="Kp_as_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="Kp_sd_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;text-align: center;" class="tableField2alt" type="text" id="KOC_alt_row1" value="" readonly /></td>
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="k_bio_wwtp_alt_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="k_bio_sw1_alt_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="T_bio_sw_alt_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="k_hydro_sw_alt_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="T_hydro_sw_alt_row1" value="" readonly /></td> -->
<!-- <td><input style="width: 120px;" class="tableField2alt" type="text" id="lambda_solar_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;" class="tableField2alt" type="text" id="k_photo12_sw_alt_row1" value="" readonly /></td>
<td><input style="width: 120px;" class="tableField2alt" type="text" id="T_photo12_sw_alt_row1" value="" readonly /></td> -->
</tr>
</tbody>
</table>
</form>
</div>
<!-- <div style="margin-bottom: 2px;margin-top: 10px;">
<button type="button" class="action_button" onclick="OpenCloseCollapsible('api_tab2_prop_info')">More information</button>
<div id="api_tab2_prop_info" class="collapsible_content">
<p>Needs further work:</p>
<p><b>Kp_ps_n</b> explanation...</p>
<p><b>Kp_as_n</b> explanation...</p>
<p><b>Kp_sd_n</b> explanation...</p>
<p>Source: ...</p>
</div>
</div> -->
<div class="debugging" style="background-color: #999999; margin-top: 10px;">
<div style="height: 0px;"></div>
<hr> <!-- --------------------------------------------- -->
<div style="height: 10px;"></div>
<h4 style="color:orange;">DEV</h4>
<p id="api_complete_cmd_path" style="margin-top: 10px; margin-bottom: 10px;" class="debugging">paths</p>
<p id="api_complete_cmd_out" style="margin-top: 10px; margin-bottom: 10px;" class="debugging">out</p>
</div>
</div></div>
<div id="Basin_select" class="tabcontent"><div class="grid">
<div class="card" style="grid-column: span 2;">
<h3>River basin selection</h3>
<p style="max-width: 1250px;">
Use the map below to select one or multiple river basins to compute surface water concentrations for.
You can remove already selected basins by clicking on them for a second time or by clicking on their ID listed
below the map.
</p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Instructions</h3>
<ol style="max-width: 800px;">
<li>Select one or multiple basins, the selected basins list below the map shows which basins ePiE will be run for.</li>
<li>Select the desired flow conditions from the drop down menu at the bottom of the screen.</li>
</ol>
<p>
The basin map can be reloaded when needed (for example when the map does not load properly).
</p>
<!-- <p>tabcontent.</p> -->
<div style="display: block;justify-content: left; width: 1345 px; max-width: 1365px; ">
<button id="reload_basin_map_btn" type="button" onclick="createBasinMapWrapper()">Reload basin map</button>
<div style="float:right;margin-top: 0px; margin-bottom: 0px;float: right;" id="hooveringBasinDiv">
<div id="basinhoveridbox">None</div>
</div>
</div>
<div style="height: 10px; width: 100%;"></div>
<div id="osm_map"></div>
<div id="mapBasinholder">
<div id="mapBasin"></div>
</div>
<div style="margin-top: 5px; margin-bottom: 3px;" id="selected_basins_p">Selected basins:</div>
<ul id="selected_basins_list"></ul>
</div>
<!-- <div style="height: 1px;"></div><hr><div style="height: 5px;"></div> -->
<div class="card" style="grid-column: span 2;">
<h3>Select flow conditions</h3>
<p style="max-width: 1250px;">ePiE has the option to make predictions for the longterm yearly average flow, minimum
and maximum flow conditions for the years 2000-2015.
The default option is average yearly flow. Use the drop-down menu below to change the flow conditions.</p>
<div id="prnt_slct_flow_div" style="display: flex; justify-content: left; margin-top: 10px; padding-top: 10px;">
<p style="margin-top: 0px;">Set flow condition: </p>
<form style="margin-top: -5px;">
<label for="flow"></label>
<select onchange="getFlowSelection()" name="flow" id="flow">
<option value="Average">Average yearly flow</option>
<option value="Min">Minimum yearly flow</option>
<option value="Max">Maximum yearly flow</option>
</select>
<!-- <button type="button" style="margin-left: 10px;" class="action_button" onclick="getFlowSelection()">Confirm</button> -->
</form>
<p style="margin-top: 0px;">Selected flow: </p>
<p id="prnt_slct_flow" style="font-weight: 300;">Average</p>
</div>
</div>
</div></div>
<div id="Degradation" class="tabcontent"><div class="grid">
<div class="card" style="grid-column: span 2;">
<h3>WWTP removal</h3>
<!-- <p>Use SimpleTreat 4.0 to retreive estimates for primary and secondary removal fractions, alternatively the values calculated by SimpleTreat 4.0 can be overwritten in the table below.</p> -->
<p style="max-width: 1250px;">Within the ePiE model, locations and specifications of European wastewater treatment
plants (WWTPs) are based on the 'Urban Waste Water Treatment Database' (UWWTD).
Please note that therefore, small treatment plants (less then 2000 population equivalents) are not integrated into
ePiE.
To account for wastewater treatment within ePiE, removal fractions per API are required for each individual
treatment step within a WWTP.
Primary and secondary removal rates can be estimated via SimpleTreat 4.0 (based on compound properties) or entered
manually (e.g. based on experimental or literature data).
<!-- Removal fractions for advanced treatment steps can be entered manually (if applicable) but are not strictly required to compute results within ePiE. -->
</p>
</div>
<div class="card" style="grid-column: span 2;">
<h3>Instructions:</h3>
<ul style="max-width: 800px;">
<li>Run SimpleTreat 4.0, possible when the tables on the previous tab are all filled.</li>
<li>Or, click "Edit table" and fill the removal fractions manually. Removal fractions need to be between 0 and 1. </li>
</ul>
<p>Use the "More information" button below to learn more about the definitions of individual treatment steps.</p>
<button type="button" class="action_button" onclick="OpenCloseCollapsible('simpletreatinfo')">More information</button>
<div id="simpletreatinfo" class="collapsible_content">
<p>The definitions of individual treatment steps used within ePiE are based on the EU Urban Waste Water Treatment
Directive and the in OECD glossary:</p>
<p><b>Primary treatment</b> refers to the “treatment of urban wastewater by a physical and/or chemical process
involving settlement of suspended solids, or other processes in which the BOD5 of the incoming waste water is
reduced by at least 20 % before discharge and the total suspended solids of the incoming waste water are reduced
by at least 50 %”.</p>
<p><b>Secondary treatment</b> is the second step in most waste treatment systems during which bacteria consume the
organic parts of the wastes. This is accomplished by bringing the sewage, bacteria and oxygen together in
trickling filters or within an activated sludge process. Secondary treatment removes all floating and settleable
solids and about 90 per cent of the oxygen—demanding substances and suspended solids. Disinfection by
chlorination is the final stage of the secondary treatment process. </p>
<!-- <p><b>Tertiary treatment</b> is the advanced treatment process, following secondary treatment of wastewater, that produces high—quality water. Tertiary treatment includes removal of nutrients such as phosphorus and nitrogen and practically all suspended and organic matter from wastewater.</p> -->
<!-- <p><b>Advanced treatment</b> technology (wastewater) refers to processes capable of reducing specific constituents in wastewater not normally achieved by other treatment options. It covers all unit operations that are not considered to be mechanical or biological, for example, chemical coagulation, flocculation and precipitation, break- point chlorination, stripping, mixed-media filtration, micro-screening, selective ion exchange, activated carbon absorption, reverse osmosis, ultrafiltration and electroflotation. Advanced treatment processes may be used in conjunction with mechanical and biological treatment operations.</p> -->
<p>Source: Glossary of Environment Statistics, Studies in Methods, Series F, No. 67, United Nations, New York,
1997</p>
</div>
</div>
<!-- <div style="height: 10px;"></div><hr><div style="height: 10px;"></div> -->
<div class="card" style="grid-column: span 2;">
<h3>Table 3 - Removal due to primary and secondary treatment steps</h3>
<div style="margin-bottom: 1px;">
<button id="simpletreat40_btn" class="action_button" type="button" style="margin-bottom: 1rem;margin-top: 10px;"
onclick="runSimpleTreat4()">Run SimpleTreat 4.0</button>
<button type="button" class="action_button" id="edit" onclick="editTabValues()">Edit table</button>
<button type="button" class="action_button" id="save3" onclick="saveTabValues()">Save table</button>
<!-- <button type="button" class="action_button" onclick="addAPItableRow()">Insert row</button> -->
<!-- <button type="button" class="action_button" onclick="removeLastAPItableRow()">Remove row</button> -->
</div>
<form class="API_table_form" style="max-width: 800px; overflow-x: auto;">
<table id="API_table_degradation" cellspacing="0" cellpadding="4">
<tbody>
<tr>
<th class="api2 tableHeader3"> <span class="firstSpan">API (ID)
<!-- <span class="secondSpan">Explanation1</span> -->
</span>
</th>
<th class="api2 tableHeader3"> <span class="firstSpan">Primary removal fraction
<!-- <span class="secondSpan">Explanation1</span> -->
</span>
</th>
<th class="api2 tableHeader3"> <span class="firstSpan">Secondary removal fraction
<!-- <span class="secondSpan">Explanation2</span> -->
</span>
</th>