-
Notifications
You must be signed in to change notification settings - Fork 4
/
publications.html
198 lines (162 loc) · 5.15 KB
/
publications.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
---
layout: default
title: Publications
---
<html id="top">
<head>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FQRDTXMLDY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FQRDTXMLDY');
</script>
<style>
.yearList li{
width: 12.5%;
float: left;
display: inline;
}
.text-align h1 {
color:white; font-family: 'Heebo', sans-serif; bottom: 0; right: 0; position: absolute; margin-right: 40px;
}
.main p{
text-align: center;
}
@media (max-width: 900px) {
.text-align h1 {
color:white; font-size: 20px; font-family: 'Heebo', sans-serif; bottom: 0; right: 0; position: absolute; margin-right: 20px;
}
}
i {
font-size: 22px;
}
hr{
color: rgb(0,191,111);
}
.arrow-container {
position: fixed;
bottom: 50px;
right: 150px;
cursor: pointer;
color: rgb(0,191,111);
z-index: 10;
}
.fa-arrow-up{
font-size: 40px;
}
footer {
z-index: 9;
}
#unselectable{
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: pointer;
}
@media (max-width: 800px) {
.text-align{
width: 300px;
}
}
@media only screen and (min-width: 800px) and (max-width: 1000px) {
.text-align{
width: 500px;
}
}
@media (min-width: 1000px) {
.text-align{
width: 700px;
}
}
.text-align{
box-shadow: 0 1px 6px rgb(255,255,255,0.3), 0 1px 4px rgba(255,255,255,0.2);
background-color:rgb(0,191,111);
position: absolute;
bottom: 0;
right: 0;
height: 100px;
}
</style>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<links>
<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=Heebo:wght@900&display=swap" rel="stylesheet"> </links>
<scripts>
<script src="https://kit.fontawesome.com/f8a9821c7d.js" crossorigin="anonymous"></script>
</scripts>
</head>
<body id="publications">
<div class="main">
{% assign my_array = "" | split: ',' %}
<section class="heading" style="background-color: rgb(49,48,48);height: 25vh; position: relative;">
<div class="container" >
<div class="text-align" >
<h1 >PUBLICATIONS</h1>
</div>
</section>
<div class="container" style="margin-top: 75px;" id="years">{% assign my_counter = 0 %}
<p style="width: fit-content;">The genomics centre has published in the most prestigious and scientific journals for the entire world. Our goal is to improve the global understanding of infectious diseases and improve healthcare and learning worldwide.</p>
<h3 style="display: inline;">Search for publications by year</h3>
<div class="container" style="height: 100px; margin-top: 50px;">
<ul class="yearList" style="height: 100px;list-style: none;box-sizing: border-box;
text-align: center;
padding: 0; " >
{% for pub in site.data.publications %}
{% unless my_array contains pub.article_year %}
{% assign my_array = my_array | push: pub.article_year | sort | reverse %}
{% endunless %}
{% endfor %}
{% for item in my_array %}
<li>
<a class="{{item}}" id="unselectable" > {{item}}</a>
</li>
{% endfor %}
</ul>
</ul>
</div>
{% for year in my_array %}
<div class="divvy" id="{{ year }}" style="display:none; ">
<ul style="list-style: none;box-sizing: border-box;
text-align: center;
padding: 0; ">
{% for publication in site.data.publications %}
{% if publication.article_year == year %}
<li style="border: 1px solid rgb(0,191,111); margin-bottom: 50px; padding: 20px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);" ><h4 style="margin-bottom: 40px;">{{ publication.article_title }}</h4>
<p>{{publication.article_authors}}</p>
<p>{{publication.article_publication}}</p>
<div class="buttons" style="margin:10px;">
<button type="button" class="btn btn-outline-dark" onclick="window.location.href='{{publication.article_link}}'">Link to paper
<i class="fa-solid fa-right-from-bracket "></i></button>
</div>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
</div>
<div class="arrow-container" onclick="document.getElementById('top').scrollIntoView()">
<i class="fas fa-arrow-up" title="Back to the top"></i>
</div>
</div>
</div>
<script>
for (let i =2001; i<2025;i++){
$("."+i).click(function(event) {
$(".divvy").each(function(){
$(this).slideUp(500)
});
var id = $('#'+i)
id.slideDown(2000)
})
}
</script>
</body>