-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgathering.html
387 lines (337 loc) · 13.6 KB
/
gathering.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>CHINESE OPEN SCIENCE NETWORK</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.11.2/css/all.css">
<link rel="stylesheet" href="css/google_fonts.css">
<!-- Google Fonts Roboto -->
<!-- <link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
/> -->
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- MDB -->
<link rel="stylesheet" href="css/mdb.min.css" />
<link rel="stylesheet" href="css/mermaid.min.css" />
<!-- Custom styles -->
<link rel="stylesheet" href="css/custom.css" />
<style>
</style>
</head>
<body>
<header>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary text-white mb-4">
<a class="navbar-brand" href="index.html">
<img
src="img/logo_w.png"
height="50"
alt=""
loading="lazy"
/>
</a>
<!-- Toggle button -->
<button
class="navbar-toggler"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<i class="fas fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link text-white" href="index.html">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="index.html#Members">Members</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="https://github.com/Chinese-Open-Science-Network/site/issues" target="_blank">Articles</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="https://github.com/Chinese-Open-Science-Network/site/labels/Resources" target="_blank">Resources</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="events.html">Events</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="positions.html">Positions</a>
</li>
<li class="nav-item active">
<a class="nav-link text-white" href="#">Gathering</a>
</li>
</ul>
<button type="button" class="btn btn-outline-light btn-rounded btn-sm mr-2"><a href="http://addevent.open-sci.cn" target="_blank" class="text-white">Add event</a></button>
<button type="button" class="btn btn-outline-light btn-rounded btn-sm mr-2"><a href="http://addposition.open-sci.cn" target="_blank" class="text-white">Add position</a></button>
<button type="button" class="btn btn-outline-light btn-rounded btn-sm mr-5"><a href="http://addgathering.open-sci.cn" target="_blank" class="text-white">Add gathering</a></button>
</div>
</nav>
</header>
<div class="container mb-4">
<div class="row mr-1">
<!-- Card deck -->
<div class="card-deck">
<!-- Card -->
<div class="card mb-4">
<!--Card content-->
<div class="card-body latest_article1">
<!--Title-->
<h4 class="card-title">科研交流🎓</h4>
<div class="accordion accordion-flush" id="accordionFlushExample">
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingOne">
<button
class="accordion-button collapsed"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#flush-collapseOne"
aria-expanded="false"
aria-controls="flush-collapseOne"
>
欧洲华人心理学与脑科学学生学者群
</button>
</h2>
<div
id="flush-collapseOne"
class="accordion-collapse collapse"
aria-labelledby="flush-headingOne"
data-mdb-parent="#accordionFlushExample"
>
<div class="accordion-body">
<p>Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
richardson ad squid. </p>
<!-- <img class="w-75" src="img/GENG, Haiyang.jpg"> -->
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingTwo">
<button
class="accordion-button collapsed"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#flush-collapseTwo"
aria-expanded="false"
aria-controls="flush-collapseTwo"
>
Accordion Item #2
</button>
</h2>
<div
id="flush-collapseTwo"
class="accordion-collapse collapse"
aria-labelledby="flush-headingTwo"
data-mdb-parent="#accordionFlushExample"
>
<div class="accordion-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
richardson ad squid.
</div>
</div>
</div>
<div class="accordion-item">
<h2 class="accordion-header" id="flush-headingThree">
<button
class="accordion-button collapsed"
type="button"
data-mdb-toggle="collapse"
data-mdb-target="#flush-collapseThree"
aria-expanded="false"
aria-controls="flush-collapseThree"
>
Accordion Item #3
</button>
</h2>
<div
id="flush-collapseThree"
class="accordion-collapse collapse"
aria-labelledby="flush-headingThree"
data-mdb-parent="#accordionFlushExample"
>
<div class="accordion-body">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry
richardson ad squid.
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Card -->
<!-- Card -->
<div class="card mb-4 ">
<!--Card content-->
<div class="card-body latest_article2">
<!--Title-->
<h4 class="card-title">吃喝玩乐👻</h4>
<!--Text-->
<p class="card-text">设计中,欢迎留言建议 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
<a href="#!" class="card-link">Read more</a>
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<!-- <button type="button" class="btn btn-outline-primary btn-md">Read more</button> -->
</div>
</div>
<!-- Card -->
<!-- Card -->
<div class="card mb-4">
<!--Card content-->
<div class="card-body latest_article2">
<!--Title-->
<h4 class="card-title">不想孤单💌</h4>
<!--Text-->
<p class="card-text">设计中,欢迎留言建议 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>
<a href="#!" class="card-link">Read more</a>
<!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
<!-- <button type="button" class="btn btn-outline-primary btn-md">Read more</button> -->
</div>
</div>
<!-- Card -->
</div>
<!-- Card deck -->
</div>
</div>
<!-- Footer -->
<footer class="page-footer font-small blue pt-4 bg-primary text-white">
<!-- Footer Links -->
<div class="container-fluid text-center text-md-left">
<!-- Grid row -->
<div class="row">
<!-- Grid column -->
<div class="col-md-6 mt-md-0 mt-3">
<!-- Content -->
<h5 class="text-uppercase">CHINESE OPEN SCIENCE NETWORK</h5>
<ul class="list-group list-group-horizontal d-flex justify-content-center">
<li class="list-group-item border-0 bg-primary"><a target="_blank" href="https://github.com/Chinese-Open-Science-Network" class="nav-link text-white"><i class="fab fa-github"></i></a></li>
<li class="list-group-item border-0 bg-primary"><a target="_blank" href="https://twitter.com/OpenSciChina" class="nav-link text-white"><i class="fab fa-twitter"></i></a></li>
<li class="list-group-item border-0 bg-primary"><a target="_blank" href="https://www.youtube.com/channel/UC5M4-E8pkO4vJT9K7rT72Uw" class="nav-link text-white"><i class="fab fa-youtube"></i></a></li>
<li class="list-group-item border-0 bg-primary"><a target="_blank" href="https://space.bilibili.com/252509184" class="nav-link text-white">Bilibili</a></li>
<li class="list-group-item border-0 bg-primary"><a target="_blank" href="https://osf.io/9d7y4/" class="nav-link text-white">OSF</a></li>
</ul>
</div>
<!-- Grid column -->
<hr class="clearfix w-100 d-md-none pb-3">
<!-- Grid column -->
<div class="col-md-6 mb-md-0 mb-3">
<!-- Links -->
<h5 class="text-uppercase">Partners</h5>
<ul class="list-group">
<li class="list-group-item border-0 bg-primary">
<a target="_blank" href="https://www.cos.io/" class="text-white">Center for Open Science</a>
</li>
<li class="list-group-item border-0 bg-primary">
<a target="_blank" href="https://curatescience.org/" class="text-white">Curate Science</a>
</li>
<li class="list-group-item border-0 bg-primary">
<a target="_blank" href="https://capbs.github.io/2020/" class="text-white">CAPBS 2020</a>
</li>
</ul>
</div>
<!-- Grid column -->
</div>
<!-- Grid row -->
</div>
<!-- Footer Links -->
<!-- Copyright -->
<div class="footer-copyright text-center py-3" style="color: rgba(255,255,255,0.6); background-color: rgba(0, 0, 0, 0.2)">
The website is designed by: <a class="text-white" href="https://github.com/ray306" target="_blank">Jinbiao Yang</a> @ Chinese Open Science Network</a> </br> © 2020 Copyright:<a class="text-white" href="https://mdbootstrap.com/education/bootstrap/" target="_blank"> MDBootstrap.com </a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
<!-- jQuery -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<script type="text/javascript" src="js/airtable.browser.js"></script>
<script type="text/javascript" src="https://unpkg.com/gridjs"></script>
<script>
var Airtable = require('airtable');
var base = new Airtable({apiKey: 'keyH8BSM9AqwRF3ci'}).base('app8DGX3kOX4zctv3');
base('Table 1').select({
maxRecords: 10,
filterByFormula: "NOT({Status} = 'Close')",
view: "Grid view"
}).eachPage(function page(records, fetchNextPage) {
const grid = new gridjs.Grid({
columns: [
{
name: 'Lab',
attributes: (cell) => {
return {
'data-cell-content': cell,
'style': 'font-weight: bolder'
};
}
},
{
name: 'Location',
attributes: (cell) => {
return {
'data-cell-content': cell,
'style': 'width: 80px'
};
}
},
{
name: 'Position',
attributes: (cell) => {
return {
'data-cell-content': cell,
'style': 'width: 70px'
};
}
},
{
name: 'Created',
attributes: (cell) => {
return {
'data-cell-content': cell,
'style': 'width: 80px'
};
}
},
{
name: 'URL',
attributes: (cell) => {
return {
'data-cell-content': cell,
'style': 'width: 40px'
};
}
},
'Detail'],
data: records.map(row => [
row.get('Lab'),
row.get('Place'),
row.get('Tags').join(", "),
row.get('Created'),
(row.get("URL")!=undefined ? gridjs.html('<a class="" href='+row.get("URL")+'>Link</a>') : ''),
row.get('Detail'),
]),
style: {
th: {
'background-color': '#4285f4',
color: '#fff',
},
},
pagination: true,
sort: true,
search: true,
}).render(document.getElementById("wrapper"));
}, function done(err) {
if (err) { console.error(err); return; }
});
</script>
</body>
</html>