forked from Priesemann-Group/priesemann-group.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
211 lines (188 loc) · 7.33 KB
/
index.html
File metadata and controls
211 lines (188 loc) · 7.33 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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
<!-- Academicon Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jpswalsh/academicons@1/css/academicons.min.css">
<!-- Own css -->
<link rel="stylesheet" href="./assets/css/main.css">
<!-- 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=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap"
rel="stylesheet">
<title>Prof. Dr. Viola Priesemann</title>
<!--
<link rel="icon" href="./img/viola_32x32.png" type="image/png">
-->
<!-- load content dynamically script-->
<script src="./assets/js/loadcontent.js"></script>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="./assets/js/plotting.js"></script>
<!-- Bootstrap-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous"></script>
</head>
<body>
<!-- Sidebar toggle button (ALWAYS visible) -->
<button type="button" class="sidebar-toggle" aria-label="Toggle sidebar">
<i class="bi-list"></i>
</button>
<div class="container-fluid">
<div class="row">
<!-- Sidebar with picture, general links and navigation -->
<div id="sidebar" class="sidebar-dynamic text-light bg-dark">
<img src="./assets/img/viola_400x400.jpg" class="rounded-circle">
<h4>Prof. Dr. Viola Priesemann</h4>
<!--div class="links">
<a class="icon-link" href="https://scholar.google.de/citations?user=5oK8Ek4AAAAJ&hl=de">
<i class="ai ai-google-scholar"></i>
</a>
<a class="icon-link" href="https://arxiv.org/a/0000-0001-8905-5873.html">
<i class="ai ai-arxiv"></i>
</a>
<a class="icon-link" href="https://orcid.org/0000-0001-8905-5873">
<i class="ai ai-orcid"></i>
</a>
<a class="icon-link" href="https://twitter.com/violapriesemann">
<i class="bi bi-twitter"></i>
</a>
<a class="icon-link" href="https://github.com/Priesemann-Group/">
<i class="bi bi-github"></i>
</a>
</div-->
<div class="title">
<hr>
<h5>Physics, Complex Systems & Neural Networks</h5>
</div>
<nav id="navbar" class="navbar navbar-dark bg-dark text-light">
<ul class="nav flex-column">
<li class="nav-item">
<a id="navlink_research" class="nav-link" href="#research">Research Topics</a>
</li>
<li class="nav-item">
<a id="navlink_group" class="nav-link" href="#group">Group members</a>
</li>
<li class="nav-item">
<a id="navlink_blogs" class="nav-link" href="#blogs">Blogs</a>
</li>
<li class="nav-item">
<a id="navlink_cv" class="nav-link" href="#cv">CV</a>
</li>
<li class="nav-item">
<a id="navlink_collaborations" class="nav-link" href="#collaborations">Collaborations</a>
</li>
<li class="nav-item">
<a id="navlink_contact" class="nav-link" href="#contact">Contacts</a>
</li>
<!--<li class="nav-item">
<a id="navlink_talksntravel" class="nav-link" href="#talksntravel">Talks & Travel</a>
</li>-->
</ul>
</nav>
<footer>
<hr>
<div class="footer">
<div class="address">
MPI for Dynamics and<br>
Self-Organization<br>
Am Fassberg 17<br>
D – 37077 Göttingen
</div>
<div class="address">
© PriesemannLab<br>
<a id="navlink_impressum" class="nav-link" style="padding: 0;" href="#impressum">Impressum</a>
<a id="navlink_datenschutz" class="nav-link" style="padding: 0;" href="#datenschutz">Datenschutz</a>
</div>
</div>
</footer>
</div>
<!-- Content is loaded dynamically into here-->
<div id="content" class="col no-padding ">
</div>
</div>
</div>
</body>
<!-- SIDEBAR & NAVIGATION TOGGLE SCRIPT -->
<script>
document.addEventListener("DOMContentLoaded", function () {
// --- SIDEBAR TOGGLE ---
const sidebar = document.getElementById("sidebar");
const toggleBtn = document.querySelector(".sidebar-toggle");
const toggleIcon = toggleBtn.querySelector("i");
function openSidebar() {
sidebar.classList.add("sidebar-open");
toggleBtn.classList.add("open");
document.body.classList.add("sidebar-active");
toggleIcon.classList.remove("bi-list");
toggleIcon.classList.add("bi-x");
}
function closeSidebar() {
sidebar.classList.remove("sidebar-open");
toggleBtn.classList.remove("open");
document.body.classList.remove("sidebar-active");
toggleIcon.classList.remove("bi-x");
toggleIcon.classList.add("bi-list");
}
toggleBtn.addEventListener("click", function (e) {
e.stopPropagation();
if (sidebar.classList.contains("sidebar-open")) {
closeSidebar();
} else {
openSidebar();
}
});
// Close sidebar when clicking outside
document.getElementById("content").addEventListener("click", function () {
if (window.innerWidth <= 1000) {
if (sidebar.classList.contains("sidebar-open")) closeSidebar();
}
});
// Start opened or closed depending on window size
if (window.innerWidth <= 1000) {
closeSidebar();
} else {
openSidebar();
}
// --- DYNAMIC NAVIGATION ---
const allLinks = Array.from(document.querySelectorAll(".nav-link"))
.map(link => link.id.replace("navlink_", ""))
.filter(Boolean);
function getCurrentPage() {
const queryString = window.location.hash;
if (queryString.length > 0 && allLinks.includes(queryString.substring(1))) {
return queryString.substring(1);
} else {
return current_active;
}
}
function onHashChange() {
current_active = getCurrentPage();
if (typeof loadcontent === "function") {
loadcontent(current_active);
}
allLinks.forEach(link => {
const li = document.querySelector(`#navlink_${link}`)?.parentElement;
if (li) li.classList.toggle("active", link === current_active);
});
if (window.innerWidth <= 1000) {
closeSidebar(); // Optionally close after nav
}
}
// Initial load
var current_active = "research";
current_active = getCurrentPage();
window.addEventListener("hashchange", onHashChange);
var event = new Event('hashchange');
window.dispatchEvent(event);
});
</script>
</html>