-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrials.html
169 lines (165 loc) · 7.82 KB
/
trials.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
<!DOCTYPE html>
<html lang="en">
<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">
<!--Favicon-->
<link rel="icon" type="image/png" sizes="32x32" href="src/images/favicon-32x32.png">
<!--Bootstrap-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-0evHe/X+R7YkIZDRvuzKMRqM+OrBnVFBL6DOitfPri4tjfHxaWutUpFmBp4vmVor" crossorigin="anonymous">
<!--Google fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap" rel="stylesheet">
<!--For python-->
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<!--Internal links-->
<link rel="stylesheet" href="/src/trials.css">
<script src="src/welcome.js" defer></script>
<title>Clinical Trials | Tree of Life</title>
</head>
<body>
<div class="container-fluid">
<nav class="navbar navbar-expand-xl navbar-light sticky-top" style="background-color: #F7F6FB;">
<a class="navbar-brand" href="https://www.merckgroup.com/en">
<img class="merck-logo" src="/src/images/merck_logo.png" alt="Merck Logo">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="welcome.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="match.html">Match</a>
</li>
<li class="nav-item">
<a class="nav-link" href="patients.html">Patient List</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="trials.html">Clinical Trials</a>
</li>
<li class="nav-item">
<img src="/src/images/avatar.png" alt="avatar" class="avatar-img">
<a class="profile" href="profile.html">Dr Sunshine</a>
</a>
</li>
</ul>
</div>
</nav>
<h1>Clinical Trials</h1>
<div class="intro">Here you can see all the current Clinical Trials.</div>
<table>
<thead>
<tr>
<th>Trial</th>
<th>Phase</th>
<th>Diversity Index</th>
<th>Completion</th>
</tr>
</thead>
<tbody>
<tr>
<td><img class="patient-avatar" src="/src/images/trial1-avatar.png" alt=""></td>
<td>I</td>
<td class="medium">
<py-script>
#Calculating the Diversity Index
def compute(species):
numSum = 0
totalPopulation = 0
for sp in species:
numSum += (sp*(sp-1))
totalPopulation += sp
return 1-numSum/(totalPopulation*(totalPopulation-1))
print(round(compute([30,70]), 2))
</py-script>
</td>
<td>60%</td>
</tr>
<tr>
<td><img class="patient-avatar" src="/src/images/trial2-avatar.png" alt=""></td>
<td>III</td>
<td class="medium">
<py-script>
#Calculating the Diversity Index
def compute(species):
numSum = 0
totalPopulation = 0
for sp in species:
numSum += (sp*(sp-1))
totalPopulation += sp
return 1-numSum/(totalPopulation*(totalPopulation-1))
print(round(compute([40,60]), 2))
</py-script>
</td>
<td>20%</td>
</tr>
<tr>
<td><img class="patient-avatar" src="/src/images/trial3-avatar.png" alt=""></td>
<td>II</td>
<td class="high">
<py-script>
#Calculating the Diversity Index
def compute(species):
numSum = 0
totalPopulation = 0
for sp in species:
numSum += (sp*(sp-1))
totalPopulation += sp
return 1-numSum/(totalPopulation*(totalPopulation-1))
print(round(compute([300,335, 365]), 2))
</py-script>
</td>
<td>40%</td>
</tr>
<tr>
<td><img class="patient-avatar" src="/src/images/trial4-avatar.png" alt=""></td>
<td>I</td>
<td class="low">
<py-script>
#Calculating the Diversity Index
def compute(species):
numSum = 0
totalPopulation = 0
for sp in species:
numSum += (sp*(sp-1))
totalPopulation += sp
return 1-numSum/(totalPopulation*(totalPopulation-1))
print(round(compute([100,5]), 2))
</py-script>
</td>
<td>80%</td>
</tr>
</tbody>
</table>
<div class="match-text">
<p>When you are ready make a match below!</p>
<a href="match.html"><button>Match!</button></a>
</div>
<footer>
This web page was made by
<a href="https://github.com/Bishu11" target=”_blank”>Bishu11</a>,
<a href="https://github.com/cslylla" target=”_blank”>cslylla</a>,
<a href="https://github.com/Divya1205" target=”_blank”>Divya1205</a> and
<a href="https://snezhanabogeva.myportfolio.com/work" target=”_blank”>Snezhana</a>
</footer>
</div>
<!--For bootstrap-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</body>
</html>