-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (155 loc) · 6.38 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
172
173
174
175
176
177
178
<!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/[email protected]/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/[email protected]/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>
<!-- Bootstrap-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj"
crossorigin="anonymous">
</script>
</head>
<body>
<button type="button" class="mobile-navigator-toggle d-xl-none"><i class="bi bi-list"></i></button>
<div class="container-fluid">
<div class="row">
<!-- Sidebar with picture, general links and navigation -->
<div id="sidebar" class="d-none d-md-flex col-md-3 col-xl-2 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_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>
<script>
// get all possible links (assuming that the links are in the as the navbar)
const allLinks = Array.from(document.querySelectorAll(".nav-link")).map(link => link.id.replace("navlink_", ""));
// get the current page via has
function getCurrentPage() {
const queryString = window.location.hash;
if (queryString.length > 0 && allLinks.includes(queryString.substring(1))) {
return queryString.substring(1);
}
else{
return current_active;
}
}
// load new content
window.addEventListener("hashchange",()=>{
current_active = getCurrentPage();
loadcontent(current_active);
// Set active link
const activeLink = document.querySelector(`#navlink_${current_active}`).parentElement;
activeLink.classList.add("active");
allLinks.forEach(link => {
if (link !== current_active) {
var linkElement = document.querySelector(`#navlink_${link}`).parentElement;
linkElement.classList.remove("active");
}
});
// Disable mobile active
sidebar = document.getElementById("sidebar");
sidebar.classList.remove("mobile-navigator-active");
});
// Initial load
var current_active = "research";
document.on
current_active = getCurrentPage();
var event = new Event('hashchange');
window.dispatchEvent(event);
// Responsive sidebar mobile
// See semohr.github.io
var navbar_btn = document.getElementsByClassName("mobile-navigator-toggle")
navbar_btn[0].onclick = function(e){
//Toggle header class
sidebar = document.getElementById("sidebar")
sidebar.classList.toggle("mobile-navigator-active");
//Repalce icon with cross (x)
navbar_btn[0].children[0].classList.toggle("bi-list");
navbar_btn[0].children[0].classList.toggle("bi-x");
//Toggle overflow i.e scrolling
document.body.classList.toggle("prevent-scrolling");
};
</script>
</html>