-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
171 lines (170 loc) · 6.89 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
---
layout: default
title: Home
libraries:
- title: CBS microdata
file: cbs.csv
- title: LISS panel
file: liss.csv
encoding: UTF-8
heading: The ODISSEI code library contains a collection of scripts detailing data processing and analysis steps of projects using LISS panel data and CBS (Statistics Netherlands) microdata. Some of the projects receive funding via [ODISSEI](https://odissei-data.nl).
subheading: If you have comments, reach out to the [ODISSEI FAIR support team](mailto:[email protected]).
submission_text: Please submit an issue using the Submission code issue template on the [GitHub repository](https://github.com/odissei-data/ODISSEI-code-library) or send an email to the [ODISSEI FAIR support team](mailto:[email protected]).
---
<!-- Bootstrap navigation bar -->
<main x-data="{ activeTab: 'CBS microdata' }">
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm">
<div class="container-fluid">
<a class="navbar-brand fw-bold" href="#">
<img src="{{'/assets/img/logo.png' | relative_url}}" class="img-fluid" />
</a>
<div class="dropdown">
<button class="btn btn-outline btn-lg btn-secondary dropdown-toggle text-decoration-none" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="d-none d-md-inline" x-text="activeTab"></span>
<div class="d-inline d-md-none"><svg width="32" height="32" fill="#0ba4b3" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M64 96h384v48H64zm0 136h384v48H64zm0 136h384v48H64z"/></svg></div>
</button>
<ul class="dropdown-menu">
{% for library in page.libraries %}
<li><a href="#tables" class="dropdown-item" @click="activeTab = '{{library.title}}'; window.href='#tables';">{{ library.title }}</a></li>
{% endfor %}
</ul>
</div>
</div>
</nav>
<div
class="mb-5 hero-bg"
>
<div
class="py-5"
style="background-color: rgba(0, 0, 0, 0.75)"
>
<div class="container-fluid">
<div class="row row-cols-1 row-cols-lg-2 flex align-items-center g-5">
<div class="col">
<h1 class="text-white fs-1">ODISSEI Code Library</h1>
<p class="text-white fs-4">ODISSEI FAIR support team</p>
<p class="text-white fs-5 mb-3" style="color: #0ba4b3 !important">
<span class="fw-bold">Erasmus University Rotterdam - ODISSEI</span> ·
<a
href="mailto:{{site.email}}"
style="color: #0ba4b3 !important"
>{{site.email}}</a
>
</p>
<h2 class="text-white">Welcome</h2>
{% assign heading = page.heading | markdownify %}
{% assign subheading = page.subheading | markdownify %}
<div class="heading-container">
{{ heading }}
</div>
<div class="heading-container">
{{ subheading }}
</div>
</div>
<div class="col">
<div class="d-flex justify-content-center">
<div class="bg-white rounded rounded-3 p-5 shadow shadow-sm" style="max-width: 640px;">
<h3>
Do you want to submit your own project and code to be added to the library?
</h3>
<p>
{{page.submission_text | markdownify}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid mb-5" id="tables">
<ul class="nav nav-pills mb-5">
{% for library in page.libraries %}
<li class="nav-item fw-bold">
<button
:class="{ 'nav-link active': activeTab === '{{library.title}}', 'nav-link': activeTab !== '{{library.title}}' }"
@click="activeTab = '{{library.title}}'"
class="fs-3"
>{{library.title}}</button>
</li>
{% endfor %}
</ul>
</ul>
<!-- LISS -->
<!-- Headers: Title, Project lead, Code language, Publication, Data, Link to data, ODISSEI grant -->
<div class="table-responsive" x-show="activeTab === 'LISS panel'">
<table class="table table-striped table-hover table-bordered" id="lissTable">
<thead>
<tr>
<th>#</th>
<th width="30%">Title</th>
<th>Project lead</th>
<th>Code language</th>
<th>Publication</th>
<th>Data</th>
<th>Link to data</th>
<th>ODISSEI grant</th>
</tr>
</thead>
<tbody>
{% for row in site.data.liss %}
<tr>
<td>{{forloop.index}}</td>
<td><a target="_blank" href='{{ row["code"] }}'>{{ row["title"] }}</a></td>
<td><a target="_blank" href='{{ row["orcid"] }}'>{{row["project_lead"]}}</a</td>
<td>{{ row["programming language"] }}</td>
<td><a target="_blank" href='{{ row["publication"] }}'>doi</a></td>
<td>{{ row["ldata"] }}</a></td>
<td width="10%">
{% assign links = row["link_data"] | split: ";" %}
{% for link in links %}
<a href="{{link}}">{{ link }}</a>
{% endfor %}
</td>
<td>{{row["ODISSEI_grant"]}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- CBS -->
<div class="table-responsive" x-show="activeTab === 'CBS microdata'">
<!--Titles: Title, Project lead, Code language, Publication, Data, CBS project nr., ODISSEI grant -->
<table class="table table-striped table-hover table-bordered" id="cbsTable">
<thead>
<tr>
<th>#</th>
<th width="30%">Title</th>
<th>Project lead</th>
<th>Code Language</th>
<th>Publication</th>
<th>Data used</th>
<th>Data produced</th>
<th>CBS project nr.</th>
<th>ODISSEI grant</th>
</tr>
</thead>
<tbody>
{% for row in site.data.cbs %}
<tr>
<td>{{ forloop.index }}</td>
<td width="30%"><a target="_blank" href='{{ row["code"] }}'>{{ row["title"] }}</a></td>
<td width="10%">{{ row["project_lead"] }}</td>
<td width="10%">{{ row["programming language"] }}</td>
<td width="10%"><a target="_blank" href='{{ row["publication"] }}'>doi</a></td>
<td width="10%">{{ row["data used"] }}</td>
<td width="10%">
{% assign links = row["data produced"] | split: ";" %}
{% for link in links %}
<a href="{{link}}">{{ link }}</a>
{% endfor %}
</td>
<td width= "5%">{{ row["CBS_project_nr"] }}</td>
<td width="10%">{{ row["ODISSEI_grant"] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</main>